05-16-2013 04:07 AM
public class CustomServiceTask implements JavaDelegate {
private Expression a;
private Expression b;
@Override
public void execute(DelegateExecution execution) throws Exception {
a.getValue(execution);
b.getValue(execution);
}
}
<serviceTask id="javaService" name="Java service invocation"
activiti:class="CustomServiceTask">
<extensionElements>
<activiti:field name="a">
<activiti:expression>${varA}</activiti:expression>
</activiti:field>
<activiti:field name="b">
<activiti:expression>${varB}</activiti:expression>
</activiti:field>
</ extensionElements>
</ serviceTask>
…
<serviceTask id="javaService2" name="Java service invocation with other params"
activiti:class="CustomServiceTask">
<extensionElements>
<activiti:field name="a">
<activiti:expression>${varC}</activiti:expression>
</activiti:field>
<activiti:field name="b">
<activiti:expression>${varD}</activiti:expression>
</activiti:field>
</ extensionElements>
</ serviceTask>
05-21-2013 08:16 AM
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.