Class Workflow
- All Implemented Interfaces:
C2KLocalObject
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cristalise.kernel.lifecycle.instance.WfVertex
WfVertex.Types -
Field Summary
Fields inherited from class org.cristalise.kernel.lifecycle.instance.Activity
active, mErrors, PREDEF_STEPS_ELEMENT, state, XPATH_TOKENFields inherited from class org.cristalise.kernel.graph.model.GraphableVertex
mIsComposite -
Constructor Summary
ConstructorsConstructorDescriptionWorkflow()Workflow(CompositeActivity domain, PredefinedStepContainer predef) -
Method Summary
Modifier and TypeMethodDescriptioncalculateJobs(AgentPath agent, ItemPath itemPath, int type) if type = 0 only domain steps will be queried if type = 1 only predefined steps will be queried else both will be queriedEach C2KLocalObject is stored with a path identifier starting with the ClusterType: DomainPath: /Path/Domain/Name ItemPath: /Path/Item AgentPath: /Path/Agent RolePath: /Path/Role/Name Properties: /Property/Name Workflow: /LifeCycle/workflow Collections: /Collection/Name/Version (default Name='last') Outcomes: /Outcome/SchemaName/SchemaVersion/EventID Viewpoints: /ViewPoint/SchemaName/Name (default Name='last') Events: /AuditTrail/EventID Jobs: /Job/JobIDEach object belongs to a specific type defined inClusterTypegetVertexTypeNameAndConstructionInfo() added by StevegetName()Gets the name of the C2KLocalObjectgetPath()getType()Returns the type.getVertexTypeNameAndConstructionInfo() added by StevegetWf()booleanvoidinitialise(ItemPath itemPath, AgentPath agent, TransactionKey transactionKey) requestAction(AgentPath agent, String stepPath, ItemPath itemPath, int transitionID, String requestData, String attachmentType, byte[] attachment, TransactionKey transactionKey) voidsetItemPath(ItemPath itemPath) voidsetItemUUID(String uuid) voidSets the name of the C2KLocalObjectbooleanverify()launch the verification of the subprocess()Methods inherited from class org.cristalise.kernel.lifecycle.instance.CompositeActivity
abort, addNext, addNext, calculateAllJobs, calculateJobs, getPossibleActs, hasActive, initChild, isFinishable, isFinishable, isStartable, newAtomChild, newChild, newChild, newChild, newCompChild, newExistingChild, newJoinChild, newSplitChild, reinit, request, run, runNext, setChildrenGraphModel, setFirstVertexMethods inherited from class org.cristalise.kernel.lifecycle.instance.Activity
addNext, getActive, getCurrentAgentName, getCurrentAgentRole, getDescription, getErrors, getErrorTransitionId, getNext, getState, getStateDate, getStateMachine, getStateMachine, getStateName, getTypeName, isFinished, loop, request, runActivityLogic, runFirst, setActive, setActiveDate, setStartDate, setState, setStateDate, setType, toStringMethods inherited from class org.cristalise.kernel.lifecycle.instance.WfVertex
evaluateProperty, evaluatePropertyValue, evaluateScript, findLastVertex, findPair, getActContextMethods 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, getProperties, isMyPair, search, setBuiltInProperty, 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
-
Workflow
public Workflow()- See Also:
-
Workflow
-
-
Method Details
-
getVertexTypeNameAndConstructionInfo
getVertexTypeNameAndConstructionInfo() added by Steve -
getEdgeTypeNameAndConstructionInfo
getVertexTypeNameAndConstructionInfo() added by Steve -
requestAction
public String requestAction(AgentPath agent, String stepPath, ItemPath itemPath, int transitionID, String requestData, String attachmentType, byte[] attachment, TransactionKey transactionKey) throws ObjectNotFoundException, AccessRightsException, InvalidTransitionException, InvalidDataException, ObjectAlreadyExistsException, PersistencyException, ObjectCannotBeUpdated, CannotManageException, InvalidCollectionModification -
getPath
- Overrides:
getPathin classGraphableVertex- See Also:
-
getName
Description copied from interface:C2KLocalObjectGets the name of the C2KLocalObject- Specified by:
getNamein interfaceC2KLocalObject- Returns:
- name of the C2KLocalObject
- See Also:
-
getType
Description copied from class:ActivityReturns the type.- Overrides:
getTypein classCompositeActivity- Returns:
- String
- See Also:
-
setName
Description copied from interface:C2KLocalObjectSets the name of the C2KLocalObject- Specified by:
setNamein interfaceC2KLocalObject- Parameters:
name- Name of the C2KLocalObject- See Also:
-
verify
public boolean verify()Description copied from class:CompositeActivitylaunch the verification of the subprocess()- Overrides:
verifyin classCompositeActivity- Returns:
- boolean
- See Also:
-
getWf
-
initialise
public void initialise(ItemPath itemPath, AgentPath agent, TransactionKey transactionKey) throws InvalidDataException - Throws:
InvalidDataException
-
getItemPath
-
setItemPath
-
setItemUUID
- Throws:
InvalidItemPathException
-
getItemUUID
-
calculateJobs
public ArrayList<Job> calculateJobs(AgentPath agent, ItemPath itemPath, int type) throws InvalidItemPathException, ObjectNotFoundException, InvalidDataException if type = 0 only domain steps will be queried if type = 1 only predefined steps will be queried else both will be queried -
hasGoodNumberOfActivity
public boolean hasGoodNumberOfActivity()- Overrides:
hasGoodNumberOfActivityin classCompositeActivity- See Also:
-
getClusterType
Description copied from interface:C2KLocalObjectEach object belongs to a specific type defined inClusterType- Specified by:
getClusterTypein interfaceC2KLocalObject- Returns:
- string id of the type
- See Also:
-
getClusterPath
Description copied from interface:C2KLocalObjectEach C2KLocalObject is stored with a path identifier starting with the ClusterType:- DomainPath: /Path/Domain/Name
- ItemPath: /Path/Item
- AgentPath: /Path/Agent
- RolePath: /Path/Role/Name
- Properties: /Property/Name
- Workflow: /LifeCycle/workflow
- Collections: /Collection/Name/Version (default Name='last')
- Outcomes: /Outcome/SchemaName/SchemaVersion/EventID
- Viewpoints: /ViewPoint/SchemaName/Name (default Name='last')
- Events: /AuditTrail/EventID
- Jobs: /Job/JobID
- Specified by:
getClusterPathin interfaceC2KLocalObject- Returns:
- The path identifier (i.e. primary key) of the object
-