クラス FlowExecutorImpl

java.lang.ObjectSE
org.springframework.webflow.executor.FlowExecutorImpl
実装されたすべてのインターフェース:
FlowExecutor

public class FlowExecutorImpl extends ObjectSE implements FlowExecutor
アプリケーション内のフローの実行を制御するための主要ファサードのデフォルト実装。

このオブジェクトは、クライアントのリクエストに応じて新しいフロー実行を作成して起動するとともに、既存の一時停止された実行(ユーザーイベントにレスポンスして再開されるのを待機していた実行)を再開するロールを担います。

このオブジェクトは、Spring Web Flow 実行システムへのファサードまたはエントリポイントであり、システム全体の使いやすさを向上させます。executor は実行を駆動するため、executor という名前が選択されました。

よく使用される設定可能なプロパティ
名前 説明 default
definitionLocator 実行するフロー定義を読み込むサービスロケーター。 なし
executionFactory 新しいフロー実行の作成を担当するファクトリ。 なし
executionRepository フロー実行の永続性を管理するリポジトリ。 なし
作成者:
Keith Donald, Erwin Vervaet, Colin Sampaleanu
関連事項:
  • コンストラクターの詳細

    • FlowExecutorImpl

      public FlowExecutorImpl(FlowDefinitionLocator definitionLocator, FlowExecutionFactory executionFactory, FlowExecutionRepository executionRepository)
      新しいフローエグゼキューターを作成します。
      パラメーター:
      definitionLocator - 実行するフロー定義にアクセスするためのロケータ
      executionFactory - フロー定義の実行を作成するためのファクトリ
      executionRepository - 一時停止されたフロー実行を永続化するためのリポジトリ
  • メソッドの詳細

    • getDefinitionLocator

      public FlowDefinitionLocator getDefinitionLocator()
      実行するフロー定義をロードするためのロケーターを返します。
    • getExecutionFactory

      public FlowExecutionFactory getExecutionFactory()
      フローの新しい実行を作成するために使用される抽象ファクトリを返します。
    • getExecutionRepository

      public FlowExecutionRepository getExecutionRepository()
      既存のフロー実行を永続ストアに保存、更新、読み込むために使用されるリポジトリを返します。
    • launchExecution

      public FlowExecutionResult launchExecution(StringSE flowId, MutableAttributeMap<?> input, ExternalContext context) throws FlowException
      インターフェースからコピーされた説明: FlowExecutor
      指定された ID を使用してフローの新しい実行を開始します。
      次で指定:
      インターフェース FlowExecutorlaunchExecution 
      パラメーター:
      flowId - フロー定義識別子。すべてのトップレベルフロー定義間で一意である必要があります (必須)。
      input - 起動時に新しい実行に渡す入力 (オプション)
      context - 呼び出し環境へのアクセス (必須)
      例外:
      FlowException
    • resumeExecution

      public FlowExecutionResult resumeExecution(StringSE flowExecutionKey, ExternalContext context) throws FlowException
      インターフェースからコピーされた説明: FlowExecutor
      指定された実行キーを使用してフロー実行を再開します。
      次で指定:
      インターフェース FlowExecutorresumeExecution 
      パラメーター:
      flowExecutionKey - フロー定義の一時停止実行のキー
      context - 呼び出し環境へのアクセス
      例外:
      FlowException