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

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

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

Flow.restoreVariables介绍

暂无

代码示例

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

/**
 * Resume a paused session for this flow in its current view state.
 * @param context the flow execution control context
 * @throws FlowExecutionException when an exception occurs during the resume operation
 */
public void resume(RequestControlContext context) throws FlowExecutionException {
  restoreVariables(context);
  getCurrentViewState(context).resume(context);
}

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

void endActiveFlowSession(String outcome, MutableAttributeMap<Object> output, RequestControlContext context) {
  FlowSessionImpl session = getActiveSessionInternal();
  listeners.fireSessionEnding(context, session, outcome, output);
  session.getFlow().end(context, outcome, output);
  flowSessions.removeLast();
  boolean executionEnded = flowSessions.isEmpty();
  if (executionEnded) {
    // set the root flow execution outcome for external clients to use
    this.outcome = new FlowExecutionOutcome(outcome, output);
    status = FlowExecutionStatus.ENDED;
  }
  listeners.fireSessionEnded(context, session, outcome, output);
  if (!executionEnded) {
    // restore any variables that may have transient references
    getActiveSessionInternal().getFlow().restoreVariables(context);
    // treat the outcome as an event against the current state of the new active flow
    context.handleEvent(new Event(session.getState(), outcome, output));
  }
}

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

/**
 * Resume a paused session for this flow in its current view state.
 * @param context the flow execution control context
 * @throws FlowExecutionException when an exception occurs during the resume operation
 */
public void resume(RequestControlContext context) throws FlowExecutionException {
  restoreVariables(context);
  getCurrentViewState(context).resume(context);
}

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

/**
 * Resume a paused session for this flow in its current view state.
 * @param context the flow execution control context
 * @throws FlowExecutionException when an exception occurs during the resume operation
 */
public void resume(RequestControlContext context) throws FlowExecutionException {
  restoreVariables(context);
  getCurrentViewState(context).resume(context);
}

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

void endActiveFlowSession(String outcome, MutableAttributeMap<Object> output, RequestControlContext context) {
  FlowSessionImpl session = getActiveSessionInternal();
  listeners.fireSessionEnding(context, session, outcome, output);
  session.getFlow().end(context, outcome, output);
  flowSessions.removeLast();
  boolean executionEnded = flowSessions.isEmpty();
  if (executionEnded) {
    // set the root flow execution outcome for external clients to use
    this.outcome = new FlowExecutionOutcome(outcome, output);
    status = FlowExecutionStatus.ENDED;
  }
  listeners.fireSessionEnded(context, session, outcome, output);
  if (!executionEnded) {
    // restore any variables that may have transient references
    getActiveSessionInternal().getFlow().restoreVariables(context);
    // treat the outcome as an event against the current state of the new active flow
    context.handleEvent(new Event(session.getState(), outcome, output));
  }
}

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

void endActiveFlowSession(String outcome, MutableAttributeMap output, RequestControlContext context) {
  FlowSessionImpl session = getActiveSessionInternal();
  listeners.fireSessionEnding(context, session, outcome, output);
  session.getFlow().end(context, outcome, output);
  flowSessions.removeLast();
  boolean executionEnded = hasEnded();
  if (executionEnded) {
    // set the root flow execution outcome for external clients to use
    this.outcome = new FlowExecutionOutcome(outcome, output);
  }
  listeners.fireSessionEnded(context, session, outcome, output);
  if (!executionEnded) {
    // restore any variables that may have transient references
    getActiveSessionInternal().getFlow().restoreVariables(context);
    // treat the outcome as an event against the current state of the new active flow
    context.handleEvent(new Event(session.getState(), outcome, output));
  }
}

相关文章