09-09-2011 03:21 PM
09-15-2011 08:44 AM
09-16-2011 01:01 PM
09-19-2011 04:36 AM
<serviceTask id="javaService"
name="Java service invocation"
activiti:class="com.bigfirm.decisions.UseTimerCallSubscriber">
</serviceTask>
public class UseTimerCallSubscriber implements ActivityBehavior {
public void execute(ActivityExecution execution) throws Exception {
boolean useTimer = (Boolean) execution.getVariable("useTimer");
PvmTransition transition = null;
if(useTimer){
transition = execution.getActivity().findOutgoingTransition("useTimerTransition");
} else {
transition = execution.getActivity().findOutgoingTransition("dontUseTimerTransition");
}
execution.take(transition);
}
}
09-19-2011 11:37 AM
09-20-2011 03:35 AM
Thanks for the reply but I don't understand. That just seems to get rid of the Exclusive gateway. You would still have two nodes CallSubWithTimer and CallSubWithoutTimer. The issue here is not the Exclusive Gateway, but to minimize duplicate tasks/nodes and paths.Hi Rue,
thanks,
Rue
09-20-2011 10:27 AM
09-20-2011 11:28 AM
09-21-2011 04:00 AM
TimerEntity timer = new TimerEntity(this);
timer.setDuedate(duedate);
to
if(executionEntity.getParentVariableScope().getVariable("useCallSubTimer")){
timer.setDuedate(duedate);
} else {
timer.setDuedate(new Date()); // do not use timer value
}
09-23-2011 10:32 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.