|
jBPM distribution 6.0.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.workflow.instance.impl.NodeInstanceImpl
public abstract class NodeInstanceImpl
Default implementation of a RuleFlow node instance.
| Nested Class Summary | |
|---|---|
protected class |
NodeInstanceImpl.NodeInstanceTrigger
|
| Constructor Summary | |
|---|---|
NodeInstanceImpl()
|
|
| Method Summary | |
|---|---|
void |
cancel()
|
protected void |
executeAction(Action action)
This method is used in both instances of the extendednodeinstanceimpl
and actionnodeinstance instances in order to handle
exceptions thrown when executing actions. |
protected NodeInstance |
followConnection(Connection connection)
|
long |
getId()
The id of the node instance. |
int |
getLevel()
|
Map<String,Object> |
getMetaData()
|
Object |
getMetaData(String name)
|
Node |
getNode()
Return the node this node instance refers to. |
long |
getNodeId()
The id of the node this node instance refers to. |
NodeInstanceContainer |
getNodeInstanceContainer()
The node instance container that this node instance is part of. |
String |
getNodeName()
The name of the node this node instance refers to. |
WorkflowProcessInstance |
getProcessInstance()
The process instance that this node instance is executing in. |
String |
getUniqueId()
|
Object |
getVariable(String variableName)
|
abstract void |
internalTrigger(NodeInstance from,
String type)
|
boolean |
isInversionOfControl()
|
Context |
resolveContext(String contextId,
Object param)
|
ContextInstance |
resolveContextInstance(String contextId,
Object param)
|
void |
retrigger(boolean remove)
|
void |
setId(long id)
|
void |
setLevel(int level)
|
void |
setMetaData(String name,
Object data)
|
void |
setNodeId(long nodeId)
|
void |
setNodeInstanceContainer(NodeInstanceContainer nodeInstanceContainer)
|
void |
setProcessInstance(WorkflowProcessInstance processInstance)
|
void |
setVariable(String variableName,
Object value)
|
void |
trigger(NodeInstance from,
String type)
|
protected void |
triggerCompleted(String type,
boolean remove)
|
protected void |
triggerConnection(Connection connection)
|
void |
triggerNode(long nodeId)
|
protected void |
triggerNodeInstance(NodeInstance nodeInstance,
String type)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeInstanceImpl()
| Method Detail |
|---|
public void setId(long id)
public long getId()
NodeInstance
getId in interface NodeInstancepublic void setNodeId(long nodeId)
public long getNodeId()
NodeInstance
getNodeId in interface NodeInstancepublic String getNodeName()
NodeInstance
getNodeName in interface NodeInstancepublic int getLevel()
public void setLevel(int level)
public void setProcessInstance(WorkflowProcessInstance processInstance)
public WorkflowProcessInstance getProcessInstance()
NodeInstance
getProcessInstance in interface NodeInstancepublic NodeInstanceContainer getNodeInstanceContainer()
NodeInstance
getNodeInstanceContainer in interface NodeInstancepublic void setNodeInstanceContainer(NodeInstanceContainer nodeInstanceContainer)
public Node getNode()
NodeInstance
getNode in interface NodeInstancepublic boolean isInversionOfControl()
public void cancel()
public final void trigger(NodeInstance from,
String type)
public abstract void internalTrigger(NodeInstance from,
String type)
protected void executeAction(Action action)
extendednodeinstanceimpl
and actionnodeinstance instances in order to handle
exceptions thrown when executing actions.
action - An Action instance.
protected void triggerCompleted(String type,
boolean remove)
protected NodeInstance followConnection(Connection connection)
protected void triggerNodeInstance(NodeInstance nodeInstance,
String type)
protected void triggerConnection(Connection connection)
public void retrigger(boolean remove)
public void triggerNode(long nodeId)
public Context resolveContext(String contextId,
Object param)
public ContextInstance resolveContextInstance(String contextId,
Object param)
public Object getVariable(String variableName)
getVariable in interface NodeInstance
public void setVariable(String variableName,
Object value)
setVariable in interface NodeInstancepublic String getUniqueId()
public Map<String,Object> getMetaData()
public Object getMetaData(String name)
public void setMetaData(String name,
Object data)
|
jBPM distribution 6.0.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||