public class CompositeActivity extends Activity
WfVertex.Typesactive, mErrors, state, XPATH_TOKENmIsComposite| Constructor and Description |
|---|
CompositeActivity() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
Next |
addNext(int originID,
int terminusID) |
Next |
addNext(WfVertex origin,
WfVertex terminus) |
ArrayList<Job> |
calculateAllJobs(AgentPath agent,
ItemPath itemPath,
boolean recurse) |
ArrayList<Job> |
calculateJobs(AgentPath agent,
ItemPath itemPath,
boolean recurse)
Calculates the lists of jobs for the activity and its children (cf org.cristalise.kernel.entity.Job)
|
List<Activity> |
getPossibleActs(WfVertex fromVertex,
int direction) |
String |
getType()
Returns the type.
|
boolean |
hasActive() |
boolean |
hasGoodNumberOfActivity() |
void |
initChild(WfVertex vertex,
boolean first,
GraphPoint point)
Initialise Vertex and attach to the current activity
|
Activity |
newAtomChild(String id,
boolean first,
GraphPoint point) |
WfVertex |
newChild(String vertexTypeId,
GraphPoint point) |
WfVertex |
newChild(String Name,
String Type,
GraphPoint point) |
WfVertex |
newChild(WfVertex.Types type,
String name,
boolean first,
GraphPoint point) |
CompositeActivity |
newCompChild(String id,
boolean first,
GraphPoint point) |
WfVertex |
newExistingChild(Activity child,
String Name,
GraphPoint point) |
Join |
newJoinChild(String name,
String type,
boolean first,
GraphPoint point) |
Split |
newSplitChild(String name,
String Type,
boolean first,
GraphPoint point) |
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,
String attachmentType,
byte[] attachment,
Object transactionKey) |
void |
run(AgentPath agent,
ItemPath itemPath,
Object transactionKey)
called by precedent Activity runNext() for setting the activity able to be executed
|
void |
runNext(AgentPath agent,
ItemPath itemPath,
Object transactionKey)
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, getErrorTransitionId, getNext, getState, getStateDate, getStateMachine, getStateName, getTypeName, isFinished, loop, pushJobsToAgents, pushJobsToAgents, request, runActivityLogic, runFirst, setActive, setActiveDate, setStartDate, setState, setStateDate, setTypeevaluateProperty, evaluatePropertyValue, evaluateScript, findPair, getActContext, getOtherPairingID, getWf, isMyPairaddChild, deriveVersionNumber, getBuiltInProperty, getBuiltInProperty, getCentrePoint, getChildren, getChildrenEdges, getChildrenGraphModel, getCreationContext, getInEdgeIds, getInEdges, getIsComposite, getIsLayoutable, getKeyValuePairs, getLayoutableChildren, getOutEdgeIds, getOutEdges, getOutGraphables, getOutlinePoints, getParent, getPath, getProperties, search, setBuiltInProperty, setIsComposite, setIsLayoutable, setKeyValuePairs, setParent, setProperties, updatePropertiesFromCollection, updatePropertiesFromCollectionaddInEdgeId, addOutEdgeId, clearTag, containsPoint, hasTag, isJoin, isLoop, moveAbsolute, removeInEdgeId, removeOutEdgeId, setInEdgeIds, setOutEdgeIds, setOutlinePoints, setTagpublic 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 - the vertex to be initialisedfirst - if true, the Waiting state will be one of the first launched by the parent activitypoint - the location of the vertex in the graphpublic void setFirstVertex(int vertexID)
public WfVertex newExistingChild(Activity child, String Name, GraphPoint point)
public WfVertex newChild(String Name, String Type, GraphPoint point)
public WfVertex newChild(String vertexTypeId, GraphPoint point)
public WfVertex newChild(WfVertex.Types type, String name, boolean first, GraphPoint point)
public CompositeActivity newCompChild(String id, boolean first, GraphPoint point)
public Activity newAtomChild(String id, boolean first, GraphPoint point)
public Split newSplitChild(String name, String Type, boolean first, GraphPoint point)
public Join newJoinChild(String name, String type, boolean first, GraphPoint point)
public void run(AgentPath agent, ItemPath itemPath, Object transactionKey) throws InvalidDataException
Activityrun in class ActivityInvalidDataExceptionpublic void runNext(AgentPath agent, ItemPath itemPath, Object transactionKey) throws InvalidDataException
ActivityrunNext in class ActivityInvalidDataExceptionpublic ArrayList<Job> calculateJobs(AgentPath agent, ItemPath itemPath, boolean recurse) throws InvalidAgentPathException, ObjectNotFoundException, InvalidDataException
ActivitycalculateJobs in class ActivityInvalidAgentPathExceptionObjectNotFoundExceptionInvalidDataExceptionpublic ArrayList<Job> calculateAllJobs(AgentPath agent, ItemPath itemPath, boolean recurse) throws InvalidAgentPathException, ObjectNotFoundException, InvalidDataException
calculateAllJobs in class ActivityInvalidAgentPathExceptionObjectNotFoundExceptionInvalidDataExceptionpublic Next addNext(int originID, int terminusID)
public boolean hasGoodNumberOfActivity()
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, String attachmentType, byte[] attachment, Object transactionKey) throws AccessRightsException, InvalidTransitionException, InvalidDataException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, ObjectCannotBeUpdated, CannotManageException, InvalidCollectionModification
public void refreshJobs(ItemPath itemPath)
public List<Activity> getPossibleActs(WfVertex fromVertex, int direction) throws InvalidDataException
InvalidDataExceptionCopyright © 1997–2020 CRISTAL-iSE. All rights reserved.