AnsweredAssumed Answered

Getting task properties with beanShell

Question asked by matjazmuhic on Nov 29, 2010
I have a javascript which runs a workflow and sets the tasks parameter like this:


workflow.parameters["agtm:requiredApprovalPercent"] = chosenConf.properties["agfo:wfRequiredApprovalPercent"];

Here's task definition:


<type name="agtm:submitForReviewTask3">
   <parent>bpm:startTask</parent>
   <properties>
    <property name="agtm:requiredApprovalPercent">
     <title>Required approval percent</title>
     <type>d:int</type>
    </property>
   </properties>
   <mandatory-aspects>
    <aspect>bpm:assignees</aspect>
   </mandatory-aspects>
  </type>

How do I get that property (agtm:requiredApprovalPercent) value inside beanShell script?

Outcomes