09-29-2012 01:59 PM
<callActivity id="callDoSomething" name="doSomething" calledElement="doSomething" activiti:async="true">
<extensionElements>
<activiti:in source="listElem" target="something"></activiti:in>
<activiti:in source="#{listElem.id}" target="businessKey"></activiti:in>
</extensionElements>
<multiInstanceLoopCharacteristics isSequential="false" activiti:collection="listSomething" activiti:elementVariable="listElem"></multiInstanceLoopCharacteristics>
</callActivity>
09-30-2012 02:35 AM
Hello,
is it possible to reference the elementVariable of an multiInstanceLoopCharacteristics in an expression in activiti:in?
<callActivity id="callDoSomething" name="doSomething" calledElement="doSomething" activiti:async="true">
<extensionElements>
<activiti:in source="listElem" target="something"></activiti:in>
<activiti:in source="#{listElem.id}" target="businessKey"></activiti:in>
</extensionElements>
<multiInstanceLoopCharacteristics isSequential="false" activiti:collection="listSomething" activiti:elementVariable="listElem"></multiInstanceLoopCharacteristics>
</callActivity>
I try to find an more or less non-intrusive way to define a "businessKey" as it is not possible to use the Activiti businessKey API due to the missing ability to set an business key after a process instance is started…
<process id="doSomething">
<extensionElements>
<activiti:executionListener event="start" delegateExpression="${setBusinessKeyOnStartProcessInstance}"></activiti:executionListener>
</extensionElements>
….
</process>
@Service
@Transactional
public class SetBusinessKeyOnStartProcessInstance implements ExecutionListener {
@Autowired
FooManager fooManager;
void notify(DelegateExecution execution) throws Exception {
Object businessKey = execution.getVariable("businessKey");
fooManager.updateBusinessKey(businessKey);
}
}
10-01-2012 03:08 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.