Rule Execution Server API

com.ibm.rules.engine.ruleflow.runtime
Interface RuleflowObserver

All Superinterfaces:
Observer

public interface RuleflowObserver
extends Observer

Use a RuleflowObserver instance to observe events specific to a RuleflowEngine instance. To observe the overall state of an Engine, see EngineObserver.


Method Summary
 void ruleFlowEnded(Observable engine, Task task, RuleflowEngineOutput output)
          Called when a flow is about to finish executing.
 void ruleFlowStarted(Observable engine, Task task, RuleflowEngineInput input)
          Called when a flow is about to be executed.
 void taskEnded(Observable engine, Task task, EngineOutput output)
          Called when a Task has finished executing.
 void taskStarted(Observable engine, Task task, EngineInput input)
          Called when a Task is about to start execution.
 

Method Detail

taskStarted

void taskStarted(Observable engine,
                 Task task,
                 EngineInput input)
Called when a Task is about to start execution.

Parameters:
engine - The event source.
task - The Task that will start.
input - The EngineInput object used by this RuleflowEngine.

taskEnded

void taskEnded(Observable engine,
               Task task,
               EngineOutput output)
Called when a Task has finished executing.

Parameters:
engine - The event source.
task - The Task that has finished.
output - The EngineOutput object produced by the code>RuleflowEngine.

ruleFlowStarted

void ruleFlowStarted(Observable engine,
                     Task task,
                     RuleflowEngineInput input)
Called when a flow is about to be executed. A flow is either the execution of a single rule task or function, or the execution of a flow task. Flow task execution involves the execution of other tasks.

Parameters:
engine - The event source.
task - The Task that models the flow.
input - The RuleflowEngineInput object used by the Engine.

ruleFlowEnded

void ruleFlowEnded(Observable engine,
                   Task task,
                   RuleflowEngineOutput output)
Called when a flow is about to finish executing. A flow is either the execution of a single rule task or function, or the execution of a flow task. Flow task execution involves the execution of other tasks.

Parameters:
engine - The event source.
task - The Task that models the flow.
output - The RuleflowEngineOutput produced by the Engine.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013