/** * Builds any end actions to execute when the flow ends. * @throws FlowBuilderException an exception occurred building the flow */ public void buildEndActions() throws FlowBuilderException { getFlow().getEndActionList().addAll(parseActions(flowModel.getOnEndActions())); }
private void parseAndAddEndActions(Element element, Flow flow) { Element endElement = getChildElementByTagName(element, END_ACTIONS_ELEMENT); if (endElement != null) { flow.getEndActionList().addAll(parseAnnotatedActions(endElement)); } }
/** * Builds any end actions to execute when the flow ends. * @throws FlowBuilderException an exception occurred building the flow */ public void buildEndActions() throws FlowBuilderException { getFlow().getEndActionList().addAll(parseActions(flowModel.getOnEndActions())); }
/** * Builds any end actions to execute when the flow ends. * @throws FlowBuilderException an exception occurred building the flow */ public void buildEndActions() throws FlowBuilderException { getFlow().getEndActionList().addAll(parseActions(flowModel.getOnEndActions())); }
flowDetails.put("stateCount", def.getStateCount()); var acts = StreamSupport.stream(def.getEndActionList().spliterator(), false) .map(Object::toString) .collect(Collectors.toList());
public void testAddActions() { flow.getStartActionList().add(new TestMultiAction()); flow.getStartActionList().add(new TestMultiAction()); flow.getEndActionList().add(new TestMultiAction()); assertEquals(2, flow.getStartActionList().size()); assertEquals(1, flow.getEndActionList().size()); }
public void testEnd() { TestAction action = new TestAction(); flow.getEndActionList().add(action); MockRequestControlContext context = new MockRequestControlContext(flow); LocalAttributeMap<Object> sessionOutput = new LocalAttributeMap<>(); flow.end(context, "finish", sessionOutput); assertEquals(1, action.getExecutionCount()); }