public class Workflow extends CompositeActivity implements C2KLocalObject
WfVertex.Typesactive, mErrors, state, XPATH_TOKENmIsComposite| Constructor and Description |
|---|
Workflow() |
Workflow(CompositeActivity domain,
PredefinedStepContainer predef) |
| Modifier and Type | Method and Description |
|---|---|
ArrayList<Job> |
calculateJobs(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 queried
|
String |
getClusterPath()
Each C2KLocalObject is stored with a path identifier starting with the ClusterType:
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
|
ClusterType |
getClusterType()
Each object belongs to a specific type defined in
ClusterType |
TypeNameAndConstructionInfo[] |
getEdgeTypeNameAndConstructionInfo()
getVertexTypeNameAndConstructionInfo() added by Steve
|
History |
getHistory() |
History |
getHistory(TransactionKey transactionKey)
Caches a History object for this Item, using the workflow as a transactionKey.
|
ItemPath |
getItemPath() |
String |
getItemUUID() |
String |
getName()
Gets the name of the C2KLocalObject
|
String |
getPath() |
String |
getType()
Returns the type.
|
TypeNameAndConstructionInfo[] |
getVertexTypeNameAndConstructionInfo()
getVertexTypeNameAndConstructionInfo() added by Steve
|
Workflow |
getWf() |
boolean |
hasGoodNumberOfActivity() |
void |
initialise(ItemPath itemPath,
AgentPath agent,
TransactionKey transactionKey) |
String |
requestAction(AgentPath agent,
AgentPath delegator,
String stepPath,
ItemPath itemPath,
int transitionID,
String requestData,
String attachmentType,
byte[] attachment,
TransactionKey transactionKey) |
void |
setItemPath(ItemPath itemPath) |
void |
setItemUUID(String uuid) |
void |
setName(String name)
Sets the name of the C2KLocalObject
|
boolean |
verify()
launch the verification of the subprocess()
|
abort, addNext, addNext, calculateAllJobs, calculateJobs, getPossibleActs, hasActive, initChild, newAtomChild, newChild, newChild, newChild, newCompChild, newExistingChild, newJoinChild, newSplitChild, refreshJobs, reinit, request, run, runNext, setChildrenGraphModel, setFirstVertexaddNext, getActive, getCurrentAgentName, getCurrentAgentRole, getDescription, getErrors, getErrorTransitionId, getNext, getState, getStateDate, getStateMachine, getStateMachine, getStateName, getTypeName, isFinished, loop, pushJobsToAgents, pushJobsToAgents, request, runActivityLogic, runFirst, setActive, setActiveDate, setStartDate, setState, setStateDate, setTypeevaluateProperty, evaluatePropertyValue, evaluateScript, findPair, getActContext, getOtherPairingID, isMyPairaddChild, deriveVersionNumber, getBuiltInProperty, getBuiltInProperty, getCentrePoint, getChildren, getChildrenEdges, getChildrenGraphModel, getCreationContext, getInEdgeIds, getInEdges, getIsComposite, getIsLayoutable, getKeyValuePairs, getLayoutableChildren, getOutEdgeIds, getOutEdges, getOutGraphables, getOutlinePoints, getParent, getProperties, search, setBuiltInProperty, setIsComposite, setIsLayoutable, setKeyValuePairs, setParent, setProperties, updatePropertiesFromCollection, updatePropertiesFromCollectionaddInEdgeId, addOutEdgeId, clearTag, containsPoint, hasTag, isJoin, isLoop, moveAbsolute, removeInEdgeId, removeOutEdgeId, setInEdgeIds, setOutEdgeIds, setOutlinePoints, setTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenforceValidNamepublic Workflow()
Object.Object()public Workflow(CompositeActivity domain, PredefinedStepContainer predef)
public History getHistory(TransactionKey transactionKey) throws InvalidDataException
transactionKey - the transaction transactionKeyInvalidDataException - inconsistent datapublic History getHistory() throws InvalidDataException
InvalidDataExceptionpublic TypeNameAndConstructionInfo[] getVertexTypeNameAndConstructionInfo()
public TypeNameAndConstructionInfo[] getEdgeTypeNameAndConstructionInfo()
public String requestAction(AgentPath agent, AgentPath delegator, String stepPath, ItemPath itemPath, int transitionID, String requestData, String attachmentType, byte[] attachment, TransactionKey transactionKey) throws ObjectNotFoundException, AccessRightsException, InvalidTransitionException, InvalidDataException, ObjectAlreadyExistsException, PersistencyException, ObjectCannotBeUpdated, CannotManageException, InvalidCollectionModification
public String getPath()
getPath in class GraphableVertexGraphableVertex.getPath()public String getName()
C2KLocalObjectgetName in interface C2KLocalObjectorg.cristalise.kernel.graph.model.Vertex#getName()public String getType()
ActivitygetType in class CompositeActivityActivity.getType()public void setName(String name)
C2KLocalObjectsetName in interface C2KLocalObjectname - Name of the C2KLocalObjectorg.cristalise.kernel.graph.model.Vertex#setName(java.lang.String)public boolean verify()
CompositeActivityverify in class CompositeActivityWfVertex.verify()public Workflow getWf()
getWf in class WfVertexWfVertex.getWf()public void initialise(ItemPath itemPath, AgentPath agent, TransactionKey transactionKey) throws InvalidDataException
InvalidDataExceptionpublic ItemPath getItemPath()
public void setItemPath(ItemPath itemPath)
public void setItemUUID(String uuid) throws InvalidItemPathException
InvalidItemPathExceptionpublic String getItemUUID()
public ArrayList<Job> calculateJobs(AgentPath agent, ItemPath itemPath, int type) throws InvalidAgentPathException, ObjectNotFoundException, InvalidDataException
public boolean hasGoodNumberOfActivity()
hasGoodNumberOfActivity in class CompositeActivityCompositeActivity.hasGoodNumberOfActivity()public ClusterType getClusterType()
C2KLocalObjectClusterTypegetClusterType in interface C2KLocalObjectC2KLocalObject.getClusterType()public String getClusterPath()
C2KLocalObjectgetClusterPath in interface C2KLocalObjectCopyright © 1997–2022 CRISTAL-iSE. All rights reserved.