public interface Instance extends UserAttributeContainer, PluginDataContainer, java.io.Serializable, LocalisedString
null instead of ''. If you set a field to ''
the next time it is loaded null may be returned. This is due
to the lack of Oracle to distinguish between '' and null.| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID
Generated ID for serialisation.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.UUID |
getBaseTemplateID()
Gets the ID of the template, this instance is based on.
|
long |
getCreationTime()
Gets the date (as long) this instance has been created.
|
ProcessConstants.EdgeState |
getEdgeState(int srcNodeID,
int destNodeID,
ProcessConstants.EdgeType edgeType)
Returns the state of the edge.
|
ProcessConstants.ExecutionMode |
getExecutionMode(int nodeID)
Returns the execution mode of the designated node, that is production mode,
component test mode or substituted test mode (the component is not called
at all but substituted).
|
java.util.UUID |
getID()
Returns the (logical) ID of the instance, which is system-wide unique.
|
QualifiedAgent |
getInitiatorAgent()
Returns the qualified agent who initiated the instance.
|
java.util.UUID |
getLogID()
Returns the (internal) ID of the instance, which is for internal and log
use only.
|
java.lang.String |
getName()
Returns the name of the instance.
|
int |
getNodeIteration(int nodeID)
If the node is inside of a loop block, this function returns the number of
the current iteration.
|
java.util.List<java.util.UUID> |
getNodeLWPInstanceID(int nodeID)
Returns (a list of) the IDs of the referenced instance of the current
iteration, if this light weight process represents one or more (in case of
variable parallelism) instances.
|
java.util.List<java.util.UUID> |
getNodeLWPInstanceID(int nodeId,
int iteration)
Returns (a list of) the IDs of the referenced instance of the designated iteration, if this
light weight process represents one or more (in case of variable parallelism) instances.
|
ProcessConstants.NodeState |
getNodeState(int nodeID)
Returns the state of the node with the given ID.
|
EBPInstanceReference |
getParentEBPReference()
Returns the reference to the super-instance, if this instance is a
sub-process.
|
QualifiedAgent |
getPerformingAgent(int nodeID)
Returns the qualified agent who is executing or has executed the activity,
null if no agent has been assigned yet due to the current
node state. |
QualifiedAgent |
getSupervisorAgent()
Returns the supervisor agent of the instance.
|
Template |
getTemplate()
Returns a reference to the template, which keeps the structural and element
data (i.e. all non-instance-specific data).
|
boolean |
isModified()
Returns true if the instance has been modified.
|
boolean |
isStructurallyModified()
Returns true if the instance has been modified structurally.
|
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValuegetPluginData, getPluginDatas, getSupportedPluginstoLocalisedStringstatic final long serialVersionUID
java.util.UUID getID()
java.util.UUID getLogID()
the logical ID this ID will
always stay the same, even in the case of instance-specific changes.java.lang.String getName()
boolean isModified()
boolean isStructurallyModified()
java.util.UUID getBaseTemplateID()
Template.getID() from {link
#getTemplate()}. In case of a modified template, this ID refers to the old
(unchanged) template while getTemplate() is the modified template.template.Template getTemplate()
getParentEBPReference() to retrieve the parent template. QualifiedAgent getSupervisorAgent()
QualifiedAgent getInitiatorAgent()
long getCreationTime()
EBPInstanceReference getParentEBPReference()
ProcessConstants.NodeState getNodeState(int nodeID)
nodeID
does not exist.nodeID - The ID of the node.java.lang.IllegalArgumentException - if nodeID does not exist.ProcessConstants.ExecutionMode getExecutionMode(int nodeID)
nodeID - The ID of the node of which to retrieve the execution mode.int getNodeIteration(int nodeID)
nodeID does not exist.nodeID - The ID of the node.java.lang.IllegalArgumentException - if nodeID does not exist.java.util.List<java.util.UUID> getNodeLWPInstanceID(int nodeID)
nodeID does not exist. If the instance
has not been started yet, the returned set will be empty. nodeID - The ID of the node, which has a LWP as executable business
process.java.lang.IllegalArgumentException - if nodeID does not exist.java.util.List<java.util.UUID> getNodeLWPInstanceID(int nodeId,
int iteration)
nodeId - The ID of the node, which has a LWP as executable business process.iteration - The iteration of the node for which to get the LWP(s).java.lang.IllegalArgumentException - if nodeID does not exist.ProcessConstants.EdgeState getEdgeState(int srcNodeID, int destNodeID, ProcessConstants.EdgeType edgeType)
srcNodeID - The ID of the start node.destNodeID - The ID of the end node.edgeType - The type of the edge.java.lang.IllegalArgumentException - if no edge could be found.QualifiedAgent getPerformingAgent(int nodeID)
null if no agent has been assigned yet due to the current
node state. Throws IllegalArgumentException if the node with the nodeID
nodeID does not exist.nodeID - The ID of the node of the activity.java.lang.IllegalArgumentException - if the node does not exist.