02-18-2014 07:27 AM
02-19-2014 02:11 AM
02-19-2014 07:16 AM
02-20-2014 03:06 AM
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti="http://activiti.org/bpmn"
targetNamespace="Examples"
xmlns:tns="Examples">
<message id="newInvoice" name="newInvoiceMessage" />
<process id="process">
<startEvent id="theStart" />
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="messageCatch" />
<intermediateCatchEvent id="messageCatch">
<messageEventDefinition messageRef="newInvoice" />
</intermediateCatchEvent>
<sequenceFlow id="flow2" sourceRef="messageCatch" targetRef="task" />
<userTask id="task" name="Task" />
<sequenceFlow id="flow3" sourceRef="task" targetRef="theEnd" />
<endEvent id="theEnd" />
</process>
</definitions>
@Deployment
public void testSingleIntermediateMessageEvent() {
ProcessInstance pi = runtimeService.startProcessInstanceByKey("process");
List<String> activeActivityIds = runtimeService.getActiveActivityIds(pi.getId());
assertNotNull(activeActivityIds);
assertEquals(1, activeActivityIds.size());
assertTrue(activeActivityIds.contains("messageCatch"));
String messageName = "newInvoiceMessage";
Execution execution = runtimeService.createExecutionQuery()
.messageEventSubscriptionName(messageName)
.singleResult();
assertNotNull(execution);
runtimeService.messageEventReceived(messageName, execution.getId());
Task task = taskService.createTaskQuery()
.singleResult();
assertNotNull(task);
taskService.complete(task.getId());
}
02-20-2014 07:23 AM
02-21-2014 02:29 AM
start>task1>signal send>signal catch>task2>end.
Its seem to me a bug, what you think??No
02-21-2014 08:43 AM
02-21-2014 10:00 AM
02-21-2014 03:30 PM
02-21-2014 03:32 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.