|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessInstance
Method Summary | |
---|---|
State |
addQuestion(String content,
String stepId,
State fromState,
User fromUser)
Add a question |
State |
answerQuestion(String content,
String questionId)
Answer a question |
String |
create()
|
void |
delete()
|
DataRecord |
getActionRecord(String actionName)
Returns the data which was given when the action was performed. |
String[] |
getActiveStates()
|
Actor[] |
getActors(QualifiedUsers qualifiedUsers,
State state)
Computes tuples role/user (stored in an Actor object) from a QualifiedUsers object |
DataRecord |
getAllDataRecord(String role,
String lang)
|
String[] |
getAssignedStates(User user,
String roleName)
Returns all the state name assigned to the user with given role |
HistoryStep[] |
getBackSteps(User user,
String roleName,
String stateName)
Get all the steps where given user (with given role) can go back from the given state |
boolean |
getErrorStatus()
Get the error status of this instance |
Field |
getField(String fieldName)
|
DataRecord |
getFolder()
|
DataRecord |
getFormRecord(String formName,
String role,
String lang)
|
HistoryStep |
getHistoryStep(String stepId)
|
HistoryStep[] |
getHistorySteps()
|
String |
getInstanceId()
Get the workflow instance id |
LockingUser |
getLockingUser(String state)
|
String |
getModelId()
Get the workflow model id |
HistoryStep |
getMostRecentStep(State state)
Recent the most recent step where an action has been performed on the given state. |
HistoryStep |
getMostRecentStep(String actionName)
Recent the most recent step where the named action has been performed. |
DataRecord |
getNewActionRecord(String actionName)
Get a new data record associated to the given action |
Participant |
getParticipant(String resolvedState)
Get the last user who resolved the given state |
Vector<Participant> |
getParticipants()
|
Question[] |
getPendingQuestions(String stateName)
Get all the questions asked in the given state |
ProcessModel |
getProcessModel()
|
Question[] |
getQuestions()
Get all the questions asked in this processInstance |
Question[] |
getRelevantQuestions(String stateName)
Get all the questions asked from the given state and that have been aswered |
DataRecord |
getRowDataRecord(String role,
String lang)
Returns a DataRecord which will be used to represent this process instance as a row in a list. |
HistoryStep |
getSavedStep(String userId)
Get step saved by given user id. |
Question[] |
getSentQuestions(String stateName)
Get all the questions asked from the given state |
ActionAndState |
getTimeOutAction(Date dateRef)
Returns the timeout action to be launched after given date |
boolean |
getTimeoutStatus()
Get the timeout status of this instance |
String |
getTitle(String role,
String lang)
Returns this instance title. |
List<User> |
getUsersInGroup(String groupId)
Gets concrete users affected to given group at runtime |
List<User> |
getUsersInRole(String role)
Gets concrete users affected to given role at runtime |
Actor[] |
getWorkingUsers()
Returns all the working users on this instance. |
Actor[] |
getWorkingUsers(String state)
Returns all the working users on this instance state. |
Actor[] |
getWorkingUsers(String state,
String role)
Returns all the working users on this instance state. |
boolean |
isLockedByAdmin()
Get the lock Admin status of this instance |
boolean |
isStateInBackStatus(String stateName)
Test is a active state is in back status |
boolean |
isValid()
Get the validity state of this instance |
void |
lock(State state,
User user)
Locks this instance for the given instance and state |
void |
unLock(State state,
User user)
Un-locks this instance for the given instance and state |
void |
update()
|
Method Detail |
---|
ProcessModel getProcessModel() throws WorkflowException
WorkflowException
String create() throws WorkflowException
WorkflowException
void delete() throws WorkflowException
WorkflowException
void update() throws WorkflowException
WorkflowException
String getInstanceId()
String getModelId()
HistoryStep[] getHistorySteps()
HistoryStep getHistoryStep(String stepId) throws WorkflowException
WorkflowException
DataRecord getActionRecord(String actionName) throws WorkflowException
actionName
- action name
WorkflowException
DataRecord getNewActionRecord(String actionName) throws WorkflowException
actionName
- action name
WorkflowException
Vector<Participant> getParticipants() throws WorkflowException
WorkflowException
Participant getParticipant(String resolvedState) throws WorkflowException
resolvedState
- the resolved state
WorkflowException
DataRecord getFolder() throws WorkflowException
WorkflowException
DataRecord getAllDataRecord(String role, String lang) throws WorkflowException
WorkflowException
DataRecord getRowDataRecord(String role, String lang) throws WorkflowException
WorkflowException
DataRecord getFormRecord(String formName, String role, String lang) throws WorkflowException
WorkflowException
Field getField(String fieldName) throws WorkflowException
fieldName
-
WorkflowException
String[] getActiveStates()
Actor[] getWorkingUsers() throws WorkflowException
WorkflowException
Actor[] getWorkingUsers(String state) throws WorkflowException
state
-
WorkflowException
Actor[] getWorkingUsers(String state, String role) throws WorkflowException
state
-
WorkflowException
String[] getAssignedStates(User user, String roleName) throws WorkflowException
user
- roleName
-
WorkflowException
LockingUser getLockingUser(String state) throws WorkflowException
state
-
WorkflowException
boolean isValid()
boolean isLockedByAdmin()
boolean getErrorStatus()
boolean getTimeoutStatus()
void lock(State state, User user) throws WorkflowException
state
- state that have to be lockeduser
- the locking user
WorkflowException
void unLock(State state, User user) throws WorkflowException
state
- state that have to be un-lockeduser
- the unlocking user
WorkflowException
List<User> getUsersInRole(String role) throws WorkflowException
role
- the name of the role
WorkflowException
List<User> getUsersInGroup(String groupId) throws WorkflowException
groupId
- the id of the group
WorkflowException
Actor[] getActors(QualifiedUsers qualifiedUsers, State state) throws WorkflowException
qualifiedUsers
- Users defined by their role or by a relation with a participantstate
- state for which these user were/may be actors
WorkflowException
boolean isStateInBackStatus(String stateName)
stateName
- name of active state
HistoryStep getSavedStep(String userId) throws WorkflowException
WorkflowException
HistoryStep getMostRecentStep(String actionName)
HistoryStep getMostRecentStep(State state)
HistoryStep[] getBackSteps(User user, String roleName, String stateName) throws WorkflowException
user
- user that can do the back actionsroleName
- role name of this userroleName
- role name of this userstateName
- name of state where user want to go back from
WorkflowException
State addQuestion(String content, String stepId, State fromState, User fromUser) throws WorkflowException
content
- question textstepId
- id of destination step for the questionfromState
- the state where the question was askedfromUser
- the user who asked the question
WorkflowException
State answerQuestion(String content, String questionId) throws WorkflowException
content
- response textquestionId
- id of question corresponding to this response
WorkflowException
Question[] getPendingQuestions(String stateName) throws WorkflowException
stateName
- given state name
WorkflowException
Question[] getSentQuestions(String stateName)
stateName
- given state name
Question[] getRelevantQuestions(String stateName)
stateName
- given state name
Question[] getQuestions()
String getTitle(String role, String lang)
ActionAndState getTimeOutAction(Date dateRef) throws WorkflowException
WorkflowException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |