public class Activity extends WfVertex
WfVertex.Types| Modifier and Type | Field and Description |
|---|---|
boolean |
active
true is available to be executed
|
protected Vector<String> |
mErrors
vector of errors (Strings) that is constructed each time verify() is launched
|
protected int |
state |
mIsComposite, NAME| Constructor and Description |
|---|
Activity() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
Next |
addNext(WfVertex vertex)
adds a New link between the current Activity and the WfVertex passed in param
|
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)
|
boolean |
getActive() |
String |
getCurrentAgentName() |
String |
getCurrentAgentRole() |
protected String |
getDefaultSMName() |
String |
getDescription() |
String |
getErrors()
return the String that identifies the errors found in th activity
|
Next |
getNext() |
int |
getState()
return the current State of the State machine (Used in Serialisation)
|
GTimeStamp |
getStateDate()
Returns the startDate.
|
StateMachine |
getStateMachine() |
String |
getStateName() |
String |
getType()
Returns the type.
|
String |
getTypeName() |
boolean |
isFinished() |
boolean |
loop()
Used in verify()
|
protected void |
pushJobsToAgents(ItemPath itemPath) |
void |
reinit(int idLoop)
reinitialises the Activity and propagate (for Loop)
|
String |
request(AgentPath agent,
AgentPath delegate,
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
|
protected String |
runActivityLogic(AgentPath agent,
ItemPath itemPath,
int transitionID,
String requestData,
Object locker) |
void |
runFirst(AgentPath agent,
ItemPath itemPath,
Object locker)
sets the activity available to be executed on start of Workflow or composite activity (when it is the first one of the (sub)process
|
void |
runNext(AgentPath agent,
ItemPath itemPath,
Object locker)
sets the next activity available if possible
|
void |
setActive(boolean acti)
sets the ability to be executed
|
void |
setActiveDate(GTimeStamp date)
Deprecated.
|
void |
setStartDate(GTimeStamp date)
Deprecated.
|
void |
setState(int state)
Sets a new State
|
void |
setStateDate(GTimeStamp startDate) |
void |
setType(String type)
Sets the type.
|
boolean |
verify()
Method verify.
|
evaluateProperty, 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, setChildrenGraphModel, 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 Vector<String> mErrors
protected int state
public boolean active
protected String getDefaultSMName()
public Next addNext(WfVertex vertex)
public StateMachine getStateMachine() throws InvalidDataException
InvalidDataExceptionpublic int getState()
throws InvalidDataException
InvalidDataExceptionpublic String getStateName() throws InvalidDataException
InvalidDataExceptionpublic void setState(int state)
public boolean isFinished()
throws InvalidDataException
InvalidDataExceptionpublic String request(AgentPath agent, AgentPath delegate, ItemPath itemPath, int transitionID, String requestData, Object locker) throws AccessRightsException, InvalidTransitionException, InvalidDataException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, ObjectCannotBeUpdated, CannotManageException, InvalidCollectionModification
protected String runActivityLogic(AgentPath agent, ItemPath itemPath, int transitionID, String requestData, Object locker) throws InvalidDataException, InvalidCollectionModification, ObjectAlreadyExistsException, ObjectCannotBeUpdated, ObjectNotFoundException, PersistencyException, CannotManageException
public boolean verify()
WfVertexpublic void runNext(AgentPath agent, ItemPath itemPath, Object locker) throws InvalidDataException
public Next getNext()
public void reinit(int idLoop)
throws InvalidDataException
reinit in class WfVertexInvalidDataExceptionObjectNotFoundExceptionpublic String getErrors()
public void run(AgentPath agent, ItemPath itemPath, Object locker) throws InvalidDataException
public void runFirst(AgentPath agent, ItemPath itemPath, Object locker) throws InvalidDataException
public boolean getActive()
public void setActive(boolean acti)
public String getDescription()
public String getCurrentAgentName()
public String getCurrentAgentRole()
public ArrayList<Job> calculateJobs(AgentPath agent, ItemPath itemPath, boolean recurse) throws InvalidAgentPathException, ObjectNotFoundException, InvalidDataException
public ArrayList<Job> calculateAllJobs(AgentPath agent, ItemPath itemPath, boolean recurse) throws InvalidAgentPathException, ObjectNotFoundException, InvalidDataException
protected void pushJobsToAgents(ItemPath itemPath)
public GTimeStamp getStateDate()
public void setStateDate(GTimeStamp startDate)
@Deprecated public void setActiveDate(GTimeStamp date)
@Deprecated public void setStartDate(GTimeStamp date)
public String getType()
public String getTypeName()
public void setType(String type)
type - The type to setCopyright © 1997–2016 CRISTAL-iSE. All rights reserved.