Class WfVertex
java.lang.Object
org.cristalise.kernel.graph.model.Vertex
org.cristalise.kernel.graph.model.GraphableVertex
org.cristalise.kernel.lifecycle.instance.WfVertex
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.cristalise.kernel.graph.model.GraphableVertex
mIsComposite -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort(AgentPath agent, ItemPath itemPath, TransactionKey transactionKey) abstract NextevaluateProperty(ItemPath itemPath, String propName, TransactionKey transactionKey) evaluatePropertyValue(ItemPath itemPath, Object propValue, TransactionKey transactionKey) protected ObjectevaluateScript(String scriptName, Integer scriptVersion, ItemPath itemPath, TransactionKey transactionKey) protected WfVertexFinds the last vertex starting from the actual vertex.protected GraphableVertexfindPair()Find the vertex with the same PairingID propertyDerive the path of the parent CompositeAct in which the script is runningabstract StringMethod getErrors.getWf()abstract booleanloop()abstract voidreinit(int idLoop) abstract voidrun(TransactionKey transactionKey) abstract voidrunFirst(TransactionKey transactionKey) Sets the activity available to be executed on start of Workflow or composite activity (when it is the first one of the (sub)process)abstract voidrunNext(TransactionKey transactionKey) abstract booleanverify()Method verify.Methods inherited from class org.cristalise.kernel.graph.model.GraphableVertex
addChild, deriveVersionNumber, getBuiltInProperty, getBuiltInProperty, getCentrePoint, getChildren, getChildrenEdges, getChildrenGraphModel, getCreationContext, getInEdgeIds, getInEdges, getInGraphables, getIsComposite, getIsLayoutable, getKeyValuePairs, getLayoutableChildren, getOtherPairingID, getOutEdgeIds, getOutEdges, getOutGraphables, getOutlinePoints, getPairingId, getParent, getPath, getProperties, isMyPair, search, setBuiltInProperty, setChildrenGraphModel, setIsComposite, setIsLayoutable, setKeyValuePairs, setParent, setProperties, updatePropertiesFromCollection, updatePropertiesFromCollectionMethods inherited from class org.cristalise.kernel.graph.model.Vertex
addInEdgeId, addOutEdgeId, clearTag, containsPoint, hasTag, isJoin, isLoop, moveAbsolute, removeInEdgeId, removeOutEdgeId, setInEdgeIds, setOutEdgeIds, setOutlinePoints, setTag
-
Constructor Details
-
WfVertex
public WfVertex()
-
-
Method Details
-
runFirst
Sets the activity available to be executed on start of Workflow or composite activity (when it is the first one of the (sub)process)- Throws:
InvalidDataException
-
runNext
- Throws:
InvalidDataException
-
reinit
- Throws:
InvalidDataException
-
run
- Throws:
InvalidDataException
-
abort
public void abort(AgentPath agent, ItemPath itemPath, TransactionKey transactionKey) throws AccessRightsException, InvalidTransitionException, InvalidDataException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, ObjectCannotBeUpdated, CannotManageException, InvalidCollectionModification -
verify
public abstract boolean verify()Method verify.- Returns:
- boolean
-
getErrors
Method getErrors.- Returns:
- String
-
loop
public abstract boolean loop()- Returns:
- boolean
-
getActContext
Derive the path of the parent CompositeAct in which the script is running- Returns:
- the path of the parent CompositeAct
-
addNext
-
evaluateProperty
public Object evaluateProperty(ItemPath itemPath, String propName, TransactionKey transactionKey) throws InvalidDataException, PersistencyException, ObjectNotFoundException -
evaluatePropertyValue
public Object evaluatePropertyValue(ItemPath itemPath, Object propValue, TransactionKey transactionKey) throws InvalidDataException, PersistencyException, ObjectNotFoundException -
evaluateScript
protected Object evaluateScript(String scriptName, Integer scriptVersion, ItemPath itemPath, TransactionKey transactionKey) throws ScriptingEngineException - Parameters:
scriptName-scriptVersion-itemPath-transactionKey-- Returns:
- the value returned by the Script
- Throws:
ScriptingEngineException
-
getWf
- Returns:
- the top level CompositeActivity, aka Workflow
-
findPair
Find the vertex with the same PairingID property- Parameters:
pairingID- the value of the PairingID property- Returns:
- the vertex or null if nothing was found
-
findLastVertex
Finds the last vertex starting from the actual vertex. It follows the outputs of he- Returns:
- the last vertex or null if there is no vertex after the actual vertex
-