public class CompositeActivity extends Activity
WfVertex.Typesactive, mErrors, statemIsComposite, NAME| Constructor and Description |
|---|
CompositeActivity() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
Next |
addNext(int originID,
int terminusID)
Method addNext.
|
Next |
addNext(WfVertex origin,
WfVertex terminus)
Method addNext.
|
ArrayList<Job> |
calculateAllJobs(AgentPath agent,
ItemPath itemPath,
boolean recurse) |
ArrayList<Job> |
calculateJobs(AgentPath agent,
ItemPath itemPath,
boolean recurse)
returns the lists of jobs for the activity and children (cf org.cristalise.kernel.entity.Job)
|
protected String |
getDefaultSMName() |
String |
getType()
Returns the type.
|
boolean |
hasActive() |
boolean |
hasGoodNumberOfActivity()
Method hasGoodNumberOfActivity.
|
void |
initChild(WfVertex vertex,
boolean first,
GraphPoint point)
Initialize Vertex and attach to the current activity
|
Activity |
newAtomChild(String id,
boolean first,
GraphPoint point)
Method newAtomChild.
|
WfVertex |
newChild(String vertexTypeId,
GraphPoint point)
Method newChild.
|
WfVertex |
newChild(String Name,
String Type,
GraphPoint point)
Method newChild.
|
WfVertex |
newChild(WfVertex.Types type,
String name,
boolean first,
GraphPoint point) |
CompositeActivity |
newCompChild(String id,
boolean first,
GraphPoint point)
Method newCompChild.
|
WfVertex |
newExistingChild(Activity child,
String Name,
GraphPoint point)
Method newChild.
|
Join |
newJoinChild(String name,
String type,
boolean first,
GraphPoint point)
Method newJoinChild.
|
Split |
newSplitChild(String name,
String Type,
boolean first,
GraphPoint point)
Method newSplitChild.
|
void |
refreshJobs(ItemPath itemPath) |
void |
reinit(int idLoop)
reinitialises the Activity and propagate (for Loop)
|
String |
request(AgentPath agent,
AgentPath delegator,
ItemPath itemPath,
int transitionID,
String requestData,
Object locker)
cf Item request
|
void |
run(AgentPath agent,
ItemPath itemPath,
Object locker)
called by precedent Activity runNext() for setting the activity able to be executed
|
void |
runNext(AgentPath agent,
ItemPath itemPath,
Object locker)
sets the next activity available if possible
|
void |
setChildrenGraphModel(GraphModel childrenGraph)
Sets the childrenGraph.
|
void |
setFirstVertex(int vertexID) |
boolean |
verify()
launch the verification of the subprocess()
|
addNext, getActive, getCurrentAgentName, getCurrentAgentRole, getDescription, getErrors, getNext, getState, getStateDate, getStateMachine, getStateName, getTypeName, isFinished, loop, pushJobsToAgents, runActivityLogic, runFirst, setActive, setActiveDate, setStartDate, setState, setStateDate, setTypeevaluateProperty, evaluatePropertyValue, evaluateScript, getDataHelper, getWfaddChild, deriveVersionNumber, getCentrePoint, getChildGraphModel, getChildren, getChildrenEdges, getChildrenGraphModel, getCreationContext, getInEdgeIds, getInEdges, getIsComposite, getIsLayoutable, getKeyValuePairs, getLayoutableChildren, getOutEdgeIds, getOutEdges, getOutGraphables, getOutlinePoints, getParent, getPath, getProperties, search, setIsComposite, setIsLayoutable, setKeyValuePairs, setParent, setPropertiesaddInEdgeId, addOutEdgeId, clearTag, containsPoint, getGraphModel, getHeight, getID, getName, getWidth, hasTag, isJoin, isLoop, moveAbsolute, removeInEdgeId, removeOutEdgeId, setCentrePoint, setGraphModel, setHeight, setID, setInEdgeIds, setName, setOutEdgeIds, setOutlinePoints, setTag, setWidthprotected String getDefaultSMName()
getDefaultSMName in class Activitypublic void setChildrenGraphModel(GraphModel childrenGraph) throws InvalidDataException
GraphableVertexsetChildrenGraphModel in class GraphableVertexchildrenGraph - The childrenGraph to setInvalidDataException - - if the graph model wasn't valid in this contextpublic boolean verify()
public void initChild(WfVertex vertex, boolean first, GraphPoint point)
vertex - first - if true, the Waiting state will be one of the first launched by the parent activitypoint - public void setFirstVertex(int vertexID)
vertex - public WfVertex newExistingChild(Activity child, String Name, GraphPoint point)
Name - Type - point - public WfVertex newChild(String Name, String Type, GraphPoint point)
Name - Type - point - public WfVertex newChild(String vertexTypeId, GraphPoint point)
vertexTypeId - point - InvalidDataExceptionpublic WfVertex newChild(WfVertex.Types type, String name, boolean first, GraphPoint point)
type - name - first - point - public CompositeActivity newCompChild(String id, boolean first, GraphPoint point)
id - first - point - public Activity newAtomChild(String id, boolean first, GraphPoint point)
id - first - point - public Split newSplitChild(String name, String Type, boolean first, GraphPoint point)
Type - point - public Join newJoinChild(String name, String type, boolean first, GraphPoint point)
point - public void run(AgentPath agent, ItemPath itemPath, Object locker) throws InvalidDataException
Activityrun in class ActivityInvalidDataExceptionObjectNotFoundExceptionAccessRightsExceptionInvalidTransitionExceptionPersistencyExceptionObjectAlreadyExistsExceptionObjectCannotBeUpdatedorg.cristalise.kernel.lifecycle.instance.WfVertex#run()public void runNext(AgentPath agent, ItemPath itemPath, Object locker) throws InvalidDataException
ActivityrunNext in class ActivityInvalidDataExceptionpublic ArrayList<Job> calculateJobs(AgentPath agent, ItemPath itemPath, boolean recurse) throws InvalidAgentPathException, ObjectNotFoundException, InvalidDataException
ActivitycalculateJobs in class ActivityInvalidDataExceptionObjectNotFoundExceptionInvalidAgentPathExceptionorg.cristalise.kernel.lifecycle.instance.Activity#calculateJobs()public ArrayList<Job> calculateAllJobs(AgentPath agent, ItemPath itemPath, boolean recurse) throws InvalidAgentPathException, ObjectNotFoundException, InvalidDataException
calculateAllJobs in class ActivityInvalidAgentPathExceptionObjectNotFoundExceptionInvalidDataExceptionpublic Next addNext(WfVertex origin, WfVertex terminus)
origin - terminus - public Next addNext(int originID, int terminusID)
originID - terminusID - public boolean hasGoodNumberOfActivity()
public String getType()
ActivitygetType in class ActivityActivity.getType()public void reinit(int idLoop)
throws InvalidDataException
Activityreinit in class ActivityInvalidDataExceptionpublic boolean hasActive()
public String request(AgentPath agent, AgentPath delegator, ItemPath itemPath, int transitionID, String requestData, Object locker) throws AccessRightsException, InvalidTransitionException, InvalidDataException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, ObjectCannotBeUpdated, CannotManageException, InvalidCollectionModification
Activitypublic void refreshJobs(ItemPath itemPath)
Copyright © 1997–2016 CRISTAL-iSE. All rights reserved.