11-14-2014 08:20 AM
{
'processDefinitionId':'xxxxx',
'variables' : [
{'name' : 'myVar', 'value' : 'something'}
]
}
<serviceTask id="console" activiti:type="shell" >
<extensionElements>
<activiti:field name="command" stringValue="echo" />
<activiti:field name="arg1" stringValue="${scriptVar}" />
</extensionElements>
</serviceTask>
11-26-2014 03:51 PM
11-27-2014 02:32 AM
11-27-2014 03:20 AM
HashMap<String, Object> variables = new HashMap<String, Object>();
variables.put("textToPrint", "Hello World!");
ProcessInstance pi = runtimeService.startProcessInstanceByKey("echoShellWindowsWithVariable", variables);
<serviceTask id="shellEcho" activiti:type="shell">
<extensionElements>
<activiti:field name="command" stringValue="cmd" />
<activiti:field name="arg1" stringValue="/c" />
<activiti:field name="arg2" stringValue="echo" />
<activiti:field name="arg3" expression="${textToPrint}" />
<activiti:field name="wait" stringValue="true" />
<activiti:field name="outputVariable" stringValue="resultVar"/>
</extensionElements>
</serviceTask>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.