06-18-2013 10:01 AM
//is it call activity task?
if ("callActivity".equals(activiti.getProperty("type"))) {
CallActivityBehavior callactivityBehavior = (CallActivityBehavior) activiti.getActivityBehavior();
…
// if calling 'SendSignal' process
if (!"SendSignal".equals(callactivityBehavior.getProcessDefinitonKey())) {
try {
//use reflection to read private field dataInputAssociations
privDataInputAssociationsField = CallActivityBehavior.class.getDeclaredField("dataInputAssociations");
privDataInputAssociationsField.setAccessible(true);
dataInputAssociations = (List<AbstractDataAssociation>) privDataInputAssociationsField.get(callactivityBehavior);
for (AbstractDataAssociation data : dataInputAssociations) {
// is it 'taskId' input parameter?
if ("taskId".equals(data.getTarget())) {
HashMap<String, Object> values = new HashMap();
// remember idTask and its value
values.put("IDTask", idTask);
values.put("IDPreviousTask", data.getSourceExpression().getExpressionText());
06-19-2013 07:01 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.