|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.workflow.engine.instance.ProcessInstanceManagerImpl
public class ProcessInstanceManagerImpl
A ProcessInstanceManager implementation
| Constructor Summary | |
|---|---|
ProcessInstanceManagerImpl()
|
|
| Method Summary | |
|---|---|
Actor |
createActor(User user,
String roleName,
State state)
Builds an actor from a user and a role. |
HistoryStep |
createHistoryStep()
Build a new HistoryStep. |
ProcessInstance |
createProcessInstance(String modelId)
Creates a new process instance |
ProcessInstance |
getProcessInstance(String instanceId)
Get the process instances for a given instance id |
ProcessInstance[] |
getProcessInstances(String peasId,
User user,
String role)
Get the list of process instances for a given peas Id, user and role. |
ProcessInstance[] |
getProcessInstances(String peasId,
User user,
String role,
String[] userRoles,
String[] userGroupIds)
Get the list of process instances for a given peas Id, user and role, and user's roles. |
ProcessInstance[] |
getProcessInstancesInState(String peasId,
State state)
Get the list of process instances for a given peas Id, that have the given state activated and |
ProcessInstance[] |
getTimeOutProcessInstances()
Get the list of process instances for which timeout date is over |
void |
lock(ProcessInstance instance,
State state,
User user)
Locks this instance for the given instance and state |
void |
removeProcessInstance(String instanceId)
Removes a new process instance |
void |
removeProcessInstanceData(ProcessInstance instance)
|
void |
unlock(ProcessInstance instance,
State state,
User user)
unlocks this instance for the given instance and state |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessInstanceManagerImpl()
| Method Detail |
|---|
public ProcessInstance[] getProcessInstances(String peasId,
User user,
String role)
throws WorkflowException
ProcessInstanceManager
getProcessInstances in interface ProcessInstanceManagerpeasId - id of processManager instanceuser - user for who the process instance list isrole - role name of the user for who the process instance list is (useful when user has
different roles)
WorkflowException
public ProcessInstance[] getProcessInstances(String peasId,
User user,
String role,
String[] userRoles,
String[] userGroupIds)
throws WorkflowException
ProcessInstanceManager
getProcessInstances in interface ProcessInstanceManagerpeasId - id of processManager instanceuser - user for who the process instance list isrole - role name of the user for who the process instance list is (useful when user hasuserRoles - all role names that user has for this component instance different roles)
WorkflowException
public ProcessInstance[] getProcessInstancesInState(String peasId,
State state)
throws WorkflowException
getProcessInstancesInState in interface ProcessInstanceManagerpeasId - id of processManager instancestate - activated state
WorkflowException
public ProcessInstance getProcessInstance(String instanceId)
throws WorkflowException
getProcessInstance in interface ProcessInstanceManagerinstanceId - id of searched instance
WorkflowException
public ProcessInstance createProcessInstance(String modelId)
throws WorkflowException
createProcessInstance in interface UpdatableProcessInstanceManagermodelId - model id
WorkflowException
public void removeProcessInstance(String instanceId)
throws WorkflowException
removeProcessInstance in interface UpdatableProcessInstanceManagerinstanceId - instance id
WorkflowException
public void removeProcessInstanceData(ProcessInstance instance)
throws WorkflowException
WorkflowException
public void lock(ProcessInstance instance,
State state,
User user)
throws WorkflowException
lock in interface UpdatableProcessInstanceManagerstate - state that have to be lockeduser - the locking userinstance - instance that have to be locked
WorkflowException
public void unlock(ProcessInstance instance,
State state,
User user)
throws WorkflowException
unlock in interface UpdatableProcessInstanceManagerstate - state that have to be lockeduser - the locking userinstance - instance that have to be locked
WorkflowExceptionpublic HistoryStep createHistoryStep()
createHistoryStep in interface ProcessInstanceManager
public Actor createActor(User user,
String roleName,
State state)
createActor in interface ProcessInstanceManageruser - roleName - state -
public ProcessInstance[] getTimeOutProcessInstances()
throws WorkflowException
getTimeOutProcessInstances in interface ProcessInstanceManagerWorkflowException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||