org.springframework.webflow.engine.Flow.getEndActionList()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(116)

本文整理了Java中org.springframework.webflow.engine.Flow.getEndActionList()方法的一些代码示例,展示了Flow.getEndActionList()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flow.getEndActionList()方法的具体详情如下:
包路径:org.springframework.webflow.engine.Flow
类名称:Flow
方法名:getEndActionList

Flow.getEndActionList介绍

[英]Returns the list of actions executed by this flow when an execution of the flow ends. The returned list is mutable.
[中]返回流执行结束时此流执行的操作列表。返回的列表是可变的。

代码示例

代码示例来源:origin: org.springframework.webflow/spring-webflow

/**
 * 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()));
}

代码示例来源:origin: org.springframework/spring-webflow

private void parseAndAddEndActions(Element element, Flow flow) {
  Element endElement = getChildElementByTagName(element, END_ACTIONS_ELEMENT);
  if (endElement != null) {
    flow.getEndActionList().addAll(parseAnnotatedActions(endElement));
  }
}

代码示例来源:origin: spring-projects/spring-webflow

/**
 * 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()));
}

代码示例来源:origin: org.springframework.webflow/org.springframework.webflow

/**
 * 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()));
}

代码示例来源:origin: org.apereo.cas/cas-server-support-reports

flowDetails.put("stateCount", def.getStateCount());
var acts = StreamSupport.stream(def.getEndActionList().spliterator(), false)
  .map(Object::toString)
  .collect(Collectors.toList());

代码示例来源:origin: spring-projects/spring-webflow

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());
}

代码示例来源:origin: spring-projects/spring-webflow

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());
}

相关文章