05-31-2011 12:57 PM
06-01-2011 05:43 PM
<process id="Proces1" name="proces1">
<startEvent id="startevent1" name="Start"></startEvent>
<userTask id="usertask1" name="User Form" activiti:assignee="none" activiti:formKey="FORM">
<documentation>User form</documentation>
</userTask>
<endEvent id="endevent1" name="End"></endEvent>
<boundaryEvent id="boundarytimer1" name="Timer" cancelActivity="true" attachedToRef="usertask1">
<timerEventDefinition>
<timeDuration>PT1H</timeDuration>
</timerEventDefinition>
</boundaryEvent>
<serviceTask id="servicetask1" name="Mail Notification" activiti:expression="${mailto}"></serviceTask>
<endEvent id="endevent2" name="End"></endEvent>
<sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="usertask1"></sequenceFlow>
<sequenceFlow id="flow2" name="" sourceRef="usertask1" targetRef="endevent1"></sequenceFlow>
<sequenceFlow id="flow3" name="" sourceRef="servicetask1" targetRef="endevent2"></sequenceFlow>
<sequenceFlow id="flow4" name="" sourceRef="boundarytimer1" targetRef="servicetask1"></sequenceFlow>
</process>
public void testExecutionIdWithBoundaryEvent() {
runtimeService.startProcessInstanceByKey("Proces1");
List<Execution> list = runtimeService.createExecutionQuery().list();
Execution mainExecution = list.get(0);
Execution boundaryExecution = list.get(1);
// Why user task is created under boundaryExecution.id
// assertNotNull(taskService.createTaskQuery()
// .executionId(mainExecution.getId()).singleResult());
assertNotNull(taskService.createTaskQuery()
.executionId(boundaryExecution.getId()).singleResult());
}
06-02-2011 04:07 AM
06-06-2011 04:11 AM
06-07-2011 11:43 AM
06-08-2011 05:41 AM
06-08-2011 08: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.