类 JsrStepState

    • 构造器详细资料

      • JsrStepState

        public JsrStepState​(Step step)
        参数:
        step - the step that will be executed
      • JsrStepState

        public JsrStepState​(java.lang.String name,
                            Step step)
        参数:
        name - for the step that will be executed
        step - the step that will be executed
    • 方法详细资料

      • handle

        public FlowExecutionStatus handle​(FlowExecutor executor)
                                   throws java.lang.Exception
        从接口复制的说明: State
        Handle some business or processing logic and return a status that can be used to drive a flow to the next State. The status can be any string, but special meaning is assigned to the static constants in FlowExecution. The context can be used by implementations to do whatever they need to do. The same context will be passed to all State instances, so implementations should be careful that the context is thread-safe, or used in a thread-safe manner.
        指定者:
        handle 在接口中 State
        覆盖:
        handle 在类中 StepState
        参数:
        executor - the context passed in by the caller
        返回:
        a status for the execution
        抛出:
        java.lang.Exception - if anything goes wrong