Package org.cristalise.kernel.lifecycle
Class ActivityDef
java.lang.Object
org.cristalise.kernel.graph.model.Vertex
org.cristalise.kernel.graph.model.GraphableVertex
org.cristalise.kernel.lifecycle.WfVertexDef
org.cristalise.kernel.lifecycle.ActivityDef
- All Implemented Interfaces:
C2KLocalObject,DescriptionObject
- Direct Known Subclasses:
CompositeActivityDef
-
Field Summary
FieldsFields inherited from class org.cristalise.kernel.lifecycle.WfVertexDef
loopTested, mErrorsFields inherited from class org.cristalise.kernel.graph.model.GraphableVertex
mIsComposite -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureInstance(WfVertex act, TransactionKey transactionKey) Copies Properties from vertex definition to vertex instance, and also set the Edgesvoidprotected voidexportCollections(Writer imports, File dir) protected DescriptionObject[]getBuiltInCollectionResource(BuiltInCollections collection, TransactionKey transactionKey) Each 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 inClusterTypeMethod getErrors.protected StringgetExportAttributes(String type) protected StringgetQuery()getQuery(TransactionKey transactionKey) getSchema(TransactionKey transactionKey) getScript(TransactionKey transactionKey) getStateMachine(TransactionKey transactionKey) instantiate(String name, TransactionKey transactionKey) instantiate(TransactionKey transactionKey) makeDescCollections(TransactionKey transactionKey) voidsetID(int id) voidsetItemPath(ItemPath path) voidsetNamespace(String ns) voidvoidvoidvoidsetStateMachine(StateMachine actStateMachine) voidtoString()booleanverify()Method verify.Methods inherited from class org.cristalise.kernel.lifecycle.WfVertexDef
loopMethods 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, setTagMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cristalise.kernel.entity.C2KLocalObject
getName, setNameMethods inherited from interface org.cristalise.kernel.utils.DescriptionObject
exists, getName, getXml, getXml, makeDescCollection, setName, toOutcome
-
Field Details
-
changed
public boolean changed
-
-
Constructor Details
-
ActivityDef
public ActivityDef() -
ActivityDef
-
-
Method Details
-
setNamespace
- Specified by:
setNamespacein interfaceDescriptionObject
-
getNamespace
- Specified by:
getNamespacein interfaceDescriptionObject
-
setID
public void setID(int id) -
getItemID
- Specified by:
getItemIDin interfaceDescriptionObject
-
setVersion
- Specified by:
setVersionin interfaceDescriptionObject
-
getVersion
- Specified by:
getVersionin interfaceDescriptionObject
-
getErrors
Description copied from class:WfVertexDefMethod getErrors.- Overrides:
getErrorsin classWfVertexDef- Returns:
- String
-
verify
public boolean verify()Description copied from class:WfVertexDefMethod verify.- Specified by:
verifyin classWfVertexDef- Returns:
- boolean
-
getClusterType
Description copied from interface:C2KLocalObjectEach object belongs to a specific type defined inClusterType- Specified by:
getClusterTypein interfaceC2KLocalObject- Returns:
- string id of the type
-
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
-
getActName
-
getDescName
-
instantiate
public WfVertex instantiate(TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException - Specified by:
instantiatein classWfVertexDef- Throws:
ObjectNotFoundExceptionInvalidDataException
-
instantiate
public WfVertex instantiate(String name, TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException -
configureInstance
public void configureInstance(WfVertex act, TransactionKey transactionKey) throws InvalidDataException, ObjectNotFoundException Description copied from class:WfVertexDefCopies Properties from vertex definition to vertex instance, and also set the Edges- Overrides:
configureInstancein classWfVertexDef- Parameters:
act- the vertex instance to be configured- Throws:
InvalidDataException- inconsistent dataObjectNotFoundException- data was not found
-
getItemPath
- Specified by:
getItemPathin interfaceDescriptionObject
-
setItemPath
- Specified by:
setItemPathin interfaceDescriptionObject
-
getSchema
-
getSchema
public Schema getSchema(TransactionKey transactionKey) throws InvalidDataException, ObjectNotFoundException -
getScript
-
getScript
public Script getScript(TransactionKey transactionKey) throws InvalidDataException, ObjectNotFoundException -
getQuery
-
getQuery
public Query getQuery(TransactionKey transactionKey) throws InvalidDataException, ObjectNotFoundException -
getActStateMachine
-
getStateMachine
-
getStateMachine
public StateMachine getStateMachine(TransactionKey transactionKey) throws InvalidDataException, ObjectNotFoundException -
getBuiltInCollectionResource
protected DescriptionObject[] getBuiltInCollectionResource(BuiltInCollections collection, TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException -
setSchema
-
setScript
-
setQuery
-
setStateMachine
-
makeDescCollections
public CollectionArrayList makeDescCollections(TransactionKey transactionKey) throws InvalidDataException, ObjectNotFoundException - Specified by:
makeDescCollectionsin interfaceDescriptionObject- Throws:
InvalidDataExceptionObjectNotFoundException
-
export
public void export(Writer imports, File dir, boolean shallow) throws InvalidDataException, ObjectNotFoundException, IOException - Specified by:
exportin interfaceDescriptionObject- Throws:
InvalidDataExceptionObjectNotFoundExceptionIOException
-
getResourceType
- Specified by:
getResourceTypein interfaceDescriptionObject
-
exportCollections
protected void exportCollections(Writer imports, File dir) throws InvalidDataException, ObjectNotFoundException, IOException -
getExportAttributes
protected String getExportAttributes(String type) throws InvalidDataException, ObjectNotFoundException, IOException -
getExportCollections
protected String getExportCollections() throws InvalidDataException, ObjectNotFoundException, IOException -
toString
- Overrides:
toStringin classWfVertexDef
-