assertStepStateEvent((Object[]) testListener1.events.get(3), ExecutionState.RUNNING, null, 1, 1);
assertStepStateEvent((Object[]) testListener1.events.get(4), ExecutionState.SUCCEEDED, null, 1, 1);
}
public void testEventsFinishSubFlow() {
HashMap<String, INodeEntry> nodes = new HashMap<String, INodeEntry>();
NodeEntryImpl node1 = new NodeEntryImpl("test1");
nodes.put("test1", node1);
HashMap<String, INodeEntry> nodes2 = new HashMap<String, INodeEntry>();
NodeEntryImpl node2 = new NodeEntryImpl("test2");
nodes2.put("test2", node2);
test.beginWorkflowExecution(ExecutionContextImpl.builder().nodes(new NodeSetImpl(nodes)).build(), null);
test.beginWorkflowItem(1, testitem);
//sub workflow