03-05-2014 11:26 AM
….
<sequenceFlow id="flow1" sourceRef="start" targetRef="decision" />
<exclusiveGateway id="decision" name="pick task" default="goToThrowException" />
<sequenceFlow id="flow2" sourceRef="decision" targetRef="taskA" >
<conditionExpression>${activitiWorkflowService.evaluate(execution, "isTaskA")}</conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow3" sourceRef="decision" targetRef="taskB" >
<conditionExpression>${activitiWorkflowService.evaluate(execution, "isTaskB")}</conditionExpression>
</sequenceFlow>
<sequenceFlow id="goToThrowException" sourceRef="decision" targetRef="throwException"/>
<sequenceFlow id="flow4" sourceRef="throwException" targetRef="decisionEnd"/>
<serviceTask id="throwException" name="Throw error no task defined" activiti:class="com.path.activiti.ActivitiServiceTask" />
<exclusiveGateway id="decisionEnd" name="decision task END"/>
<sequenceFlow id="flow5" sourceRef="decisionEnd" targetRef="end" />
….
public void handleUnsupportedSpecialDoc() throws Exception{
throw new RuntimeException("unsupport task by workflow");
}
03-10-2014 06:23 AM
//No sequence flow could be found, not even a default one
throw new ActivitiException("No outgoing sequence flow of the exclusive gateway '"
+ execution.getActivity().getId() + "' could be selected for continuing the process");
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.