05-13-2011 01:15 AM
05-13-2011 02:57 AM
11-01-2011 03:34 PM
<serviceTask id="servicetask1" name="My Task Execution Service" activiti:delegateExpression="${testExpressionDelegate}">
<extensionElements>
<activiti:field name="field1">
<activiti:string>name</activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
public class MyTaskDelegate implements JavaDelegate {
@Autowired
private Service service;
private Expression field1;
/**
* @see org.activiti.engine.delegate.JavaDelegate#execute(org.activiti.engine.delegate.DelegateExecution)
*/
@Override
public void execute(DelegateExecution delegateExecution) throws Exception {
…
if (field1 != null) {
String field1AsString = (String) field1.getValue(delegateExecution);
…
}
}
11-02-2011 05:08 AM
11-02-2011 06:22 PM
<activiti:executionListener event="start" class="MyTaskListener">
public class MyTaskListener implements ExecutionListener {
private Expression field1;
@Override
public void notify(DelegateExecution paramDelegateExecution) throws Exception {
if (field1 != null) {
paramDelegateExecution.setVariableLocal("field1", field1.getExpressionText());
}
}
Object field1 = delegateExecution.getVariableLocal("field1");
03-12-2012 12:07 PM
04-23-2012 05:31 AM
09-19-2012 06:26 AM
11-24-2016 03:20 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.