Hi Martin,
My requirement is to use the variable set in the form as a argument in Shell task's command.
My bpm is as follows.
<process id="CreatePxeHyperVisor" name="Create Pxe For Hyper Visor" isExecutable="true">
<startEvent id="startcreatepxehyper" name="StartCreatePxeHyper"></startEvent>
<serviceTask id="createPxeHyperVisor" name="createPxeHyperVisor" activiti:type="shell">
<extensionElements>
<activiti:field name="command">
<activiti:string><![CDATA[/opt/misserver/scripts/create_esxi_pxe_configurations.sh]]></activiti:string>
</activiti:field>
<activiti:field name="arg1">
<activiti:string><![CDATA[-c]]></activiti:string>
</activiti:field>
<activiti:field name="arg2">
<activiti:string><![CDATA[/var/${SYSTEMNAME}_cluster_info.txt]]></activiti:string>
</activiti:field>
<activiti:field name="wait">
<activiti:string><![CDATA[true]]></activiti:string>
</activiti:field>
<activiti:field name="outputVariable">
<activiti:string><![CDATA[resultVar]]></activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
<endEvent id="endcreatepxehyper" name="EndCreatePxeHyper"></endEvent>
<sequenceFlow id="flow2" sourceRef="createPxeHyperVisor" targetRef="endcreatepxehyper"></sequenceFlow>
<userTask id="getSystemName" name="Get system name" activiti:assignee="kermit">
<extensionElements>
<activiti:formProperty id="systemName" name="System Name" variable="SYSTEMNAME" required="true"></activiti:formProperty>
</extensionElements>
</userTask>
<sequenceFlow id="flow3" sourceRef="startcreatepxehyper" targetRef="getSystemName"></sequenceFlow>
<sequenceFlow id="flow4" sourceRef="getSystemName" targetRef="createPxeHyperVisor"></sequenceFlow>
</process>
In the above i would like to use the SYSTEMNAME variable set using the User task form in the shell tasts arg2.
Regards,
Sandeep.J