org.jbpm.sim.jpdl
Class SimAction

java.lang.Object
  extended by org.jbpm.graph.def.Action
      extended by org.jbpm.sim.jpdl.SimAction
All Implemented Interfaces:
java.io.Serializable, ActionHandler, Parsable

public class SimAction
extends Action

The SimAction class adds behavior to check, if the action should be executed in a simulation run. Default behavior is: not execute. To execute an action during a simulation run, you have to configure either the attribute simulation with the value 'execute' or to add a element, which defines a special handler for the simulation. Another way is to define not a , but a , which is only executed in simulation runs

Author:
bernd.ruecker@camunda.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jbpm.graph.def.Action
actionDelegation, actionExpression, event, isAsync, isAsyncExclusive, isPropagationAllowed, name, processDefinition, referencedAction
 
Constructor Summary
SimAction()
           
 
Method Summary
 void execute(ExecutionContext executionContext)
           
 void read(org.dom4j.Element actionElement, JpdlXmlReader jpdlReader)
           
 
Methods inherited from class org.jbpm.graph.def.Action
acceptsPropagatedEvents, equals, getActionDelegation, getActionExpression, getEvent, getId, getName, getProcessDefinition, getReferencedAction, hashCode, isAsync, isAsyncExclusive, isPropagationAllowed, setActionDelegation, setActionExpression, setAsync, setAsyncExclusive, setEvent, setName, setProcessDefinition, setPropagationAllowed, setReferencedAction, toString, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimAction

public SimAction()
Method Detail

read

public void read(org.dom4j.Element actionElement,
                 JpdlXmlReader jpdlReader)
Specified by:
read in interface Parsable
Overrides:
read in class Action

execute

public void execute(ExecutionContext executionContext)
             throws java.lang.Exception
Specified by:
execute in interface ActionHandler
Overrides:
execute in class Action
Throws:
java.lang.Exception


Copyright © 2010 JBoss Community. All Rights Reserved.