01-11-2016 04:32 AM
<scriptTask id="scripttask1" name="Script Task" scriptFormat="groovy" activiti:autoStoreVariables="false">
<multiInstanceLoopCharacteristics isSequential="true">
<loopCardinality>100</loopCardinality>
<completionCondition>
${processHelper.shouldStop(currentIndex)}
</completionCondition>
</multiInstanceLoopCharacteristics>
<script>
execution.setVariable("" + currentIndex, currentIndex *
currentIndex)
execution.setVariable("currentIndex", currentIndex + 1)
</script>
</scriptTask>
public boolean shouldStop(int index) {
System.out.println("shouldStop called with [" + index + "]");
return index >= 10;
}
01-11-2016 04:32 AM
01-20-2016 04:43 PM
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.