Package org.cristalise.kernel.lifecycle
Class CompositeActivityDef
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
org.cristalise.kernel.lifecycle.CompositeActivityDef
- All Implemented Interfaces:
C2KLocalObject,DescriptionObject
-
Field Summary
Fields inherited from class org.cristalise.kernel.lifecycle.ActivityDef
changedFields 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 TypeMethodDescriptionaddExistingActivityDef(String name, ActivityDef actDef, GraphPoint point) addLocalActivityDef(String name, String type, GraphPoint point) addNextDef(WfVertexDef origin, WfVertexDef terminus) voidvoidfindRefActDefs(GraphModel graph, TransactionKey transactionKey) String[]Deprecated.getPath()booleaninstantiate(String name, TransactionKey transactionKey) instantiate(TransactionKey transactionKey) Next[]Loops through the edges of children graph model and calls their instantiate methodWfVertex[]intantiateVertices(CompositeActivity ca, TransactionKey transactionKey) Loops through the vertices of children graph model and calls their instantiate methodmakeActDefCollection(TransactionKey transactionKey) Used in Script CompositeActivityDefCollSettermakeDescCollections(TransactionKey transactionKey) newChild(String Name, String Type, Integer version, GraphPoint location) Deprecated.newChild(String name, WfVertex.Types type, Integer version, GraphPoint location) voidsetCastorNonLayoutableChildren(String[] dummy) Deprecated.voidsetChildrenGraphModel(GraphModel childrenGraph) Sets the childrenGraph.voidsetChildrenGraphModel(GraphModel childrenGraph, TransactionKey transactionKey) voidsetRefChildActDef(List<ActivityDef> refChildActDef) booleanverify()Method verify.Methods inherited from class org.cristalise.kernel.lifecycle.ActivityDef
configureInstance, exportCollections, getActName, getActStateMachine, getBuiltInCollectionResource, getClusterPath, getClusterType, getDescName, getErrors, getExportAttributes, getExportCollections, getItemID, getItemPath, getNamespace, getQuery, getQuery, getSchema, getSchema, getScript, getScript, getStateMachine, getStateMachine, getVersion, setID, setItemPath, setNamespace, setQuery, setSchema, setScript, setStateMachine, setVersion, toStringMethods 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, 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, 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
-
Constructor Details
-
CompositeActivityDef
public CompositeActivityDef() -
CompositeActivityDef
-
-
Method Details
-
getRefChildActDef
-
setRefChildActDef
-
getVertexTypeNameAndConstructionInfo
-
getEdgeTypeNameAndConstructionInfo
-
addNextDef
-
addExistingActivityDef
public ActivitySlotDef addExistingActivityDef(String name, ActivityDef actDef, GraphPoint point) throws InvalidDataException - Throws:
InvalidDataException
-
addLocalActivityDef
-
newChild
@Deprecated public WfVertexDef newChild(String Name, String Type, Integer version, GraphPoint location) throws ObjectNotFoundException, InvalidDataException Deprecated. -
newChild
public WfVertexDef newChild(String name, WfVertex.Types type, Integer version, GraphPoint location) throws ObjectNotFoundException, InvalidDataException -
instantiate
public WfVertex instantiate(TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException - Overrides:
instantiatein classActivityDef- Returns:
- CompositeActivity
- Throws:
ObjectNotFoundExceptionInvalidDataException
-
instantiate
public WfVertex instantiate(String name, TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException - Overrides:
instantiatein classActivityDef- Throws:
ObjectNotFoundExceptionInvalidDataException
-
instantiateEdges
Loops through the edges of children graph model and calls their instantiate method- Parameters:
ca- the parent CompositeActivity instance which will be set as a Parent- Returns:
- the instantiated array of edge instances called Next
-
intantiateVertices
public WfVertex[] intantiateVertices(CompositeActivity ca, TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException Loops through the vertices of children graph model and calls their instantiate method- Parameters:
ca- the parent CompositeActivity instance which will be set as a Parent- Returns:
- the instantiated array of WfVertex instances
- Throws:
ObjectNotFoundExceptionInvalidDataException
-
makeDescCollections
public CollectionArrayList makeDescCollections(TransactionKey transactionKey) throws InvalidDataException, ObjectNotFoundException - Specified by:
makeDescCollectionsin interfaceDescriptionObject- Overrides:
makeDescCollectionsin classActivityDef- Throws:
InvalidDataExceptionObjectNotFoundException
-
makeActDefCollection
Used in Script CompositeActivityDefCollSetter- Returns:
- the Dependency collection created from the list of child ActDefs of this class
- Throws:
InvalidDataException- there was a problem creating the collections
-
findRefActDefs
public List<ActivityDef> findRefActDefs(GraphModel graph, TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException -
hasGoodNumberOfActivity
public boolean hasGoodNumberOfActivity()- Returns:
- boolean
-
getPath
- Overrides:
getPathin classGraphableVertex- See Also:
-
setChildrenGraphModel
Description copied from class:GraphableVertexSets the childrenGraph.- Overrides:
setChildrenGraphModelin classGraphableVertex- Parameters:
childrenGraph- The childrenGraph to set- Throws:
InvalidDataException- - if the graph model wasn't valid in this context
-
setChildrenGraphModel
public void setChildrenGraphModel(GraphModel childrenGraph, TransactionKey transactionKey) throws InvalidDataException - Throws:
InvalidDataException
-
getCastorNonLayoutableChildren
Deprecated. -
setCastorNonLayoutableChildren
Deprecated. -
verify
public boolean verify()Description copied from class:WfVertexDefMethod verify.- Overrides:
verifyin classActivityDef- Returns:
- boolean
-
export
public void export(Writer imports, File dir, boolean shallow) throws InvalidDataException, ObjectNotFoundException, IOException - Specified by:
exportin interfaceDescriptionObject- Overrides:
exportin classActivityDef- Throws:
InvalidDataExceptionObjectNotFoundExceptionIOException
-
export
public void export(Writer imports, File dir, boolean shallow, boolean rebuild) throws InvalidDataException, ObjectNotFoundException, IOException - Parameters:
imports-dir-shallow-rebuild- the child refs in case any slots have been removed. Use false if new actDefs declared in DSL because LocalObjectLoader will not find them- Throws:
InvalidDataExceptionObjectNotFoundExceptionIOException
-
getResourceType
- Specified by:
getResourceTypein interfaceDescriptionObject- Overrides:
getResourceTypein classActivityDef
-