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() was launched
|
protected int |
state |
protected static String |
XPATH_TOKEN |
mIsComposite| 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)
Calculates the lists of jobs for the activity and its children (cf org.cristalise.kernel.entity.Job)
|
boolean |
getActive() |
String |
getCurrentAgentName() |
String |
getCurrentAgentRole() |
String |
getDescription() |
String |
getErrors()
return the String that identifies the errors found in th activity
|
int |
getErrorTransitionId()
Returns the id of the error Transition associated with the current state
|
Next |
getNext() |
int |
getState() |
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)
Collects all Role names which are associated with this Activity and the Transitions of the current State,
and ....
|
protected void |
pushJobsToAgents(ItemPath itemPath,
RolePath role) |
void |
reinit(int idLoop)
reinitialises the Activity and propagate (for Loop)
|
String |
request(AgentPath agent,
AgentPath delegate,
ItemPath itemPath,
int transitionID,
String requestData,
String attachmentType,
byte[] attachment,
boolean validateOutcome,
Object transactionKey) |
String |
request(AgentPath agent,
AgentPath delegate,
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
|
protected String |
runActivityLogic(AgentPath agent,
ItemPath itemPath,
int transitionID,
String requestData,
Object transactionKey)
Overridden in predefined steps
|
void |
runFirst(AgentPath agent,
ItemPath itemPath,
Object transactionKey)
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 transactionKey)
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, 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, setChildrenGraphModel, setIsComposite, setIsLayoutable, setKeyValuePairs, setParent, setProperties, updatePropertiesFromCollection, updatePropertiesFromCollectionaddInEdgeId, addOutEdgeId, clearTag, containsPoint, hasTag, isJoin, isLoop, moveAbsolute, removeInEdgeId, removeOutEdgeId, setInEdgeIds, setOutEdgeIds, setOutlinePoints, setTagprotected static final String XPATH_TOKEN
protected Vector<String> mErrors
protected int state
public boolean active
public Next addNext(WfVertex vertex)
public StateMachine getStateMachine() throws InvalidDataException
InvalidDataExceptionpublic int getState()
throws InvalidDataException
InvalidDataException - data was inconsistentpublic int getErrorTransitionId()
public 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, String attachmentType, byte[] attachment, Object transactionKey) throws AccessRightsException, InvalidTransitionException, InvalidDataException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, ObjectCannotBeUpdated, CannotManageException, InvalidCollectionModification
public String request(AgentPath agent, AgentPath delegate, ItemPath itemPath, int transitionID, String requestData, String attachmentType, byte[] attachment, boolean validateOutcome, Object transactionKey) throws AccessRightsException, InvalidTransitionException, InvalidDataException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, ObjectCannotBeUpdated, CannotManageException, InvalidCollectionModification
protected String runActivityLogic(AgentPath agent, ItemPath itemPath, int transitionID, String requestData, Object transactionKey) throws InvalidDataException, InvalidCollectionModification, ObjectAlreadyExistsException, ObjectCannotBeUpdated, ObjectNotFoundException, PersistencyException, CannotManageException, AccessRightsException
agent - itemPath - transitionID - requestData - transactionKey - InvalidDataExceptionInvalidCollectionModificationObjectAlreadyExistsExceptionObjectCannotBeUpdatedObjectNotFoundExceptionPersistencyExceptionCannotManageExceptionAccessRightsExceptionpublic boolean verify()
WfVertexpublic void runNext(AgentPath agent, ItemPath itemPath, Object transactionKey) throws InvalidDataException
runNext in class WfVertexInvalidDataExceptionpublic Next getNext()
public void reinit(int idLoop)
throws InvalidDataException
reinit in class WfVertexInvalidDataExceptionpublic String getErrors()
public void run(AgentPath agent, ItemPath itemPath, Object transactionKey) throws InvalidDataException
run in class WfVertexInvalidDataExceptionpublic void runFirst(AgentPath agent, ItemPath itemPath, Object transactionKey) throws InvalidDataException
runFirst in class WfVertexInvalidDataExceptionpublic 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)
itemPath - protected void pushJobsToAgents(ItemPath itemPath, RolePath role)
itemPath - role - RolePathpublic 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–2020 CRISTAL-iSE. All rights reserved.