public class BpmnPlanExecutor extends Object implements IPlanExecutor, Serializable
Constructor and Description |
---|
BpmnPlanExecutor()
Create a new BPMN plan executor.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup(BDIInterpreter interpreter,
Object rplan)
Called on termination of a plan.
|
Object |
createPlanBody(BDIInterpreter interpreter,
Object rcapability,
Object rplan)
Create the body of a plan.
|
void |
eventWaitFor(BDIInterpreter interpreter,
Object rplan)
Block a plan until an event matching the wait abstraction occurs.
|
boolean |
executeAbortedStep(BDIInterpreter interpreter,
Object rplan)
Execute a step of the plans aborted() code.
|
boolean |
executeFailedStep(BDIInterpreter interpreter,
Object rplan)
Execute a step of the plans failed() code.
|
boolean |
executePassedStep(BDIInterpreter interpreter,
Object rplan)
Execute a step of the plans passed() code.
|
boolean |
executePlanStep(BDIInterpreter interpreter,
Object rcapability,
Object rplan)
Execute a step of a plan.
|
boolean |
executeStep(BDIInterpreter interpreter,
Object rcapa,
Object rplan,
String steptype)
Execute a step of a BPMN plan.
|
Object |
getMonitor(Object rplan)
Get the monitor of a plan.
|
void |
interruptPlanStep(Object rplan)
Interrupt a plan step during execution.
|
public Object createPlanBody(BDIInterpreter interpreter, Object rcapability, Object rplan) throws Exception
createPlanBody
in interface IPlanExecutor
rplan
- The rplan.Exception
public boolean executeStep(BDIInterpreter interpreter, Object rcapa, Object rplan, String steptype) throws Exception
Exception
public boolean executePlanStep(BDIInterpreter interpreter, Object rcapability, Object rplan) throws Exception
executePlanStep
in interface IPlanExecutor
Exception
public boolean executePassedStep(BDIInterpreter interpreter, Object rplan) throws Exception
executePassedStep
in interface IPlanExecutor
Exception
public boolean executeFailedStep(BDIInterpreter interpreter, Object rplan) throws Exception
executeFailedStep
in interface IPlanExecutor
Exception
public boolean executeAbortedStep(BDIInterpreter interpreter, Object rplan) throws Exception
executeAbortedStep
in interface IPlanExecutor
Exception
public void interruptPlanStep(Object rplan)
interruptPlanStep
in interface IPlanExecutor
rplan
- The plan handle.public void eventWaitFor(BDIInterpreter interpreter, Object rplan)
eventWaitFor
in interface IPlanExecutor
public void cleanup(BDIInterpreter interpreter, Object rplan)
cleanup
in interface IPlanExecutor
public Object getMonitor(Object rplan)
getMonitor
in interface IPlanExecutor
Copyright © 2012. All Rights Reserved.