Class ManageMembersOfCollectionBase
java.lang.Object
org.cristalise.kernel.graph.model.Vertex
org.cristalise.kernel.graph.model.GraphableVertex
org.cristalise.kernel.lifecycle.instance.WfVertex
org.cristalise.kernel.lifecycle.instance.Activity
org.cristalise.kernel.lifecycle.instance.predefined.PredefinedStep
org.cristalise.kernel.lifecycle.instance.predefined.ManageMembersOfCollectionBase
- Direct Known Subclasses:
AddMembersToCollection,RemoveMembersFromCollection
-
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.predefined.PredefinedStep
AVAILABLE, DONEFields 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
ConstructorsConstructorDescriptionManageMembersOfCollectionBase(String schemaName) ManageMembersOfCollectionBase(String schemaName, String description) -
Method Summary
Modifier and TypeMethodDescriptionprotected DependencyaddCurrentDependencyUpdate(ItemPath currentItem, Node dependencyNode) Adds an update instruction to call the predefined step on the current Item based on serialized Dependency.protected voidcheckCardinatilyConstraint(Dependency currentDependency, Dependency inputDependency, ItemPath itemPath, TransactionKey transactionKey) voidcomputeUpdates(ItemPath currentItemPath, Activity currentActivity, Node inputNode, TransactionKey transactionKey) protected voidevaluateScript(ItemPath item, String propertyValue, CastorHashMap scriptProps, TransactionKey transactionKey) Methods inherited from class org.cristalise.kernel.lifecycle.instance.predefined.PredefinedStep
bundleData, bundleData, getActive, getDataList, getErrors, getName, getPredefStepOutcomeNode, getPredefStepSchemaName, getStepInstance, getType, mergeProperties, request, runActivityLogic, storeOutcomeEventAndViews, storeOutcomeEventAndViews, verifyMethods inherited from class org.cristalise.kernel.lifecycle.instance.Activity
abort, addNext, calculateAllJobs, calculateJobs, getCurrentAgentName, getCurrentAgentRole, getDescription, getErrorTransitionId, getNext, getState, getStateDate, getStateMachine, getStateMachine, getStateName, getTypeName, isFinished, loop, reinit, request, request, run, runFirst, runNext, setActive, setActiveDate, setStartDate, setState, setStateDate, setType, toStringMethods inherited from class org.cristalise.kernel.lifecycle.instance.WfVertex
evaluateProperty, evaluatePropertyValue, evaluateScript, findLastVertex, findPair, getActContext, getWfMethods 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
-
ManageMembersOfCollectionBase
-
ManageMembersOfCollectionBase
-
-
Method Details
-
evaluateScript
protected void evaluateScript(ItemPath item, String propertyValue, CastorHashMap scriptProps, TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException, InvalidCollectionModification - Parameters:
item-propertyValue-scriptProps-transactionKey-- Throws:
ObjectNotFoundExceptionInvalidDataExceptionInvalidCollectionModification
-
checkCardinatilyConstraint
protected void checkCardinatilyConstraint(Dependency currentDependency, Dependency inputDependency, ItemPath itemPath, TransactionKey transactionKey) throws InvalidDataException, InvalidCollectionModification -
addCurrentDependencyUpdate
protected Dependency addCurrentDependencyUpdate(ItemPath currentItem, Node dependencyNode) throws InvalidDataException Adds an update instruction to call the predefined step on the current Item based on serialized Dependency.- Parameters:
currentItem- the Item currently processing an Activity.requets()inputOutcome- contains the marshaled input Dependency- Returns:
- the input Dependency object unmarshaled from the Outcome
- Throws:
InvalidDataException- processing outcome had an error
-
computeUpdates
public void computeUpdates(ItemPath currentItemPath, Activity currentActivity, Node inputNode, TransactionKey transactionKey) throws InvalidDataException, PersistencyException, ObjectNotFoundException, ObjectAlreadyExistsException, InvalidCollectionModification - Overrides:
computeUpdatesin classPredefinedStep- Parameters:
currentItemPath-currentActivity-transactionKey-- Throws:
InvalidDataExceptionPersistencyExceptionObjectNotFoundExceptionObjectAlreadyExistsExceptionInvalidCollectionModification
-