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

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

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

Flow.createVariables介绍

[英]Create (setup) all known flow variables in flow scope.
[中]创建(设置)流范围中的所有已知流变量。

代码示例

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

/**
 * Start a new session for this flow in its start state. This boils down to the following:
 * <ol>
 * <li>Create (setup) all registered flow variables ({@link #addVariable(FlowVariable)}) in flow scope.</li>
 * <li>Map provided input data into the flow. Typically data will be mapped into flow scope using the registered
 * input mapper ({@link #setInputMapper(Mapper)}).</li>
 * <li>Execute all registered start actions ( {@link #getStartActionList()}).</li>
 * <li>Enter the configured start state ({@link #setStartState(State)})</li>
 * </ol>
 * @param context the flow execution control context
 * @param input eligible input into the session
 * @throws FlowExecutionException when an exception occurs starting the flow
 */
public void start(RequestControlContext context, MutableAttributeMap<?> input) throws FlowExecutionException {
  assertStartStateSet();
  createVariables(context);
  if (inputMapper != null) {
    MappingResults results = inputMapper.map(input, context);
    if (results != null && results.hasErrorResults()) {
      throw new FlowInputMappingException(getId(), results);
    }
  }
  startActionList.execute(context);
  startState.enter(context);
}

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

/**
 * Start a new session for this flow in its start state. This boils down to the following:
 * <ol>
 * <li>Create (setup) all registered flow variables ({@link #addVariable(FlowVariable)}) in flow scope.</li>
 * <li>Map provided input data into the flow execution control context. Typically data will be mapped into flow
 * scope using the registered input mapper ({@link #setInputMapper(AttributeMapper)}).</li>
 * <li>Execute all registered start actions ({@link #getStartActionList()}).</li>
 * <li>Enter the configured start state ({@link #setStartState(State)})</li>
 * </ol>
 * @param context the flow execution control context
 * @param input eligible input into the session
 * @throws FlowExecutionException when an exception occurs starting the flow
 */
public ViewSelection start(RequestControlContext context, MutableAttributeMap input) throws FlowExecutionException {
  createVariables(context);
  if (inputMapper != null) {
    inputMapper.map(input, context, null);
  }
  startActionList.execute(context);
  return startState.enter(context);
}

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

/**
 * Start a new session for this flow in its start state. This boils down to the following:
 * <ol>
 * <li>Create (setup) all registered flow variables ({@link #addVariable(FlowVariable)}) in flow scope.</li>
 * <li>Map provided input data into the flow. Typically data will be mapped into flow scope using the registered
 * input mapper ({@link #setInputMapper(Mapper)}).</li>
 * <li>Execute all registered start actions ( {@link #getStartActionList()}).</li>
 * <li>Enter the configured start state ({@link #setStartState(State)})</li>
 * </ol>
 * @param context the flow execution control context
 * @param input eligible input into the session
 * @throws FlowExecutionException when an exception occurs starting the flow
 */
public void start(RequestControlContext context, MutableAttributeMap<?> input) throws FlowExecutionException {
  assertStartStateSet();
  createVariables(context);
  if (inputMapper != null) {
    MappingResults results = inputMapper.map(input, context);
    if (results != null && results.hasErrorResults()) {
      throw new FlowInputMappingException(getId(), results);
    }
  }
  startActionList.execute(context);
  startState.enter(context);
}

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

/**
 * Start a new session for this flow in its start state. This boils down to the following:
 * <ol>
 * <li>Create (setup) all registered flow variables ({@link #addVariable(FlowVariable)}) in flow scope.</li>
 * <li>Map provided input data into the flow. Typically data will be mapped into flow scope using the registered
 * input mapper ({@link #setInputMapper(Mapper)}).</li>
 * <li>Execute all registered start actions ( {@link #getStartActionList()}).</li>
 * <li>Enter the configured start state ({@link #setStartState(State)})</li>
 * </ol>
 * @param context the flow execution control context
 * @param input eligible input into the session
 * @throws FlowExecutionException when an exception occurs starting the flow
 */
public void start(RequestControlContext context, MutableAttributeMap input) throws FlowExecutionException {
  assertStartStateSet();
  createVariables(context);
  if (inputMapper != null) {
    MappingResults results = inputMapper.map(input, context);
    if (results != null && results.hasErrorResults()) {
      throw new FlowInputMappingException(getId(), results);
    }
  }
  startActionList.execute(context);
  startState.enter(context);
}

相关文章