org.jbpm.workflow.instance.node
Class SubProcessNodeInstance

java.lang.Object
  extended by org.jbpm.workflow.instance.impl.NodeInstanceImpl
      extended by org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl
          extended by org.jbpm.workflow.instance.node.StateBasedNodeInstance
              extended by org.jbpm.workflow.instance.node.SubProcessNodeInstance
All Implemented Interfaces:
Serializable, org.drools.runtime.process.EventListener, org.drools.runtime.process.NodeInstance, EventBasedNodeInstanceInterface

public class SubProcessNodeInstance
extends StateBasedNodeInstance
implements org.drools.runtime.process.EventListener

Runtime counterpart of a SubFlow node.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jbpm.workflow.instance.node.StateBasedNodeInstance
PARAMETER_MATCHER
 
Constructor Summary
SubProcessNodeInstance()
           
 
Method Summary
 void addEventListeners()
           
 void cancel()
           
 String[] getEventTypes()
           
 String getNodeName()
           
 long getProcessInstanceId()
           
protected  SubProcessNode getSubProcessNode()
           
 void internalSetProcessInstanceId(long processInstanceId)
           
 void internalTrigger(org.drools.runtime.process.NodeInstance from, String type)
           
 void processInstanceCompleted(ProcessInstance processInstance)
           
 void removeEventListeners()
           
 void signalEvent(String type, Object event)
           
 
Methods inherited from class org.jbpm.workflow.instance.node.StateBasedNodeInstance
addTimerListener, createTimerInstance, getEventBasedNode, getTimerInstances, internalSetTimerInstances, triggerCompleted, triggerCompleted
 
Methods inherited from class org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl
executeAction, getExtendedNode, triggerCompleted, triggerEvent
 
Methods inherited from class org.jbpm.workflow.instance.impl.NodeInstanceImpl
followConnection, getId, getMetaData, getNode, getNodeId, getNodeInstanceContainer, getProcessInstance, getUniqueId, getVariable, isInversionOfControl, resolveContext, resolveContextInstance, setId, setMetaData, setNodeId, setNodeInstanceContainer, setProcessInstance, setVariable, trigger, triggerConnection, triggerNodeInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubProcessNodeInstance

public SubProcessNodeInstance()
Method Detail

getSubProcessNode

protected SubProcessNode getSubProcessNode()

internalTrigger

public void internalTrigger(org.drools.runtime.process.NodeInstance from,
                            String type)
Overrides:
internalTrigger in class StateBasedNodeInstance

cancel

public void cancel()
Overrides:
cancel in class StateBasedNodeInstance

getProcessInstanceId

public long getProcessInstanceId()

internalSetProcessInstanceId

public void internalSetProcessInstanceId(long processInstanceId)

addEventListeners

public void addEventListeners()
Specified by:
addEventListeners in interface EventBasedNodeInstanceInterface
Overrides:
addEventListeners in class StateBasedNodeInstance

removeEventListeners

public void removeEventListeners()
Specified by:
removeEventListeners in interface EventBasedNodeInstanceInterface
Overrides:
removeEventListeners in class StateBasedNodeInstance

signalEvent

public void signalEvent(String type,
                        Object event)
Specified by:
signalEvent in interface org.drools.runtime.process.EventListener
Overrides:
signalEvent in class StateBasedNodeInstance

getEventTypes

public String[] getEventTypes()
Specified by:
getEventTypes in interface org.drools.runtime.process.EventListener
Overrides:
getEventTypes in class StateBasedNodeInstance

processInstanceCompleted

public void processInstanceCompleted(ProcessInstance processInstance)

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface org.drools.runtime.process.NodeInstance
Overrides:
getNodeName in class NodeInstanceImpl


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.