09-27-2012 09:31 AM
<serviceTask id="servicetask1" name="User Task" activiti:class="me.kafeitu.activiti.ErrorBoundaryEventAttachToTaskService"></serviceTask>
<boundaryEvent id="boundaryerror1" name="" cancelActivity="false" attachedToRef="servicetask1">
<errorEventDefinition errorRef="errorOne"></errorEventDefinition>
</boundaryEvent>
public class ErrorBoundaryEventAttachToTaskService implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
// TODO throw error for error boundary event
}
}
09-27-2012 10:59 AM
09-27-2012 12:13 PM
From the top of my head:
You can have a gateway after the task which has 2 paths: one normal and one having an intermediate-thow-event. In your service-task, you can set a variable which influence the gateway's chose path…
09-28-2012 07:09 AM
09-28-2012 09:18 AM
You can use the "throw BPMNError(…)" from inside the user task to have it caught in a catching-error-boundary event. See http://activiti.org/userguide/index.html#bpmnJavaServiceTask (thawing BPMNError).
Another option is to look at the part "Exception sequence flow" in http://activiti.org/userguide/index.html#bpmnJavaServiceTask
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.