Class WorkflowEngineImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.WorkflowEngineImpl
-
- All Implemented Interfaces:
WorkflowEngine
@Service @Singleton public class WorkflowEngineImpl extends Object implements WorkflowEngine
One implementation of WorkflowEngine The workflow engine main services.
-
-
Constructor Summary
Constructors Constructor Description WorkflowEngineImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(QuestionEvent event)
A question has been sent to a previous participantvoid
process(ResponseEvent event)
A question had been sent to a previous participant.void
process(TaskDoneEvent event)
A task has been done and sent to the workflow Engine which has to process it.void
process(TaskDoneEvent event, boolean ignoreControls)
A task has been done and sent to the workflow Engine which has to process it.void
process(TaskSavedEvent event)
A task has been saved and sent to the workflow Engine which has to process it.void
reAssignActors(UpdatableProcessInstance instance, Actor[] unAssignedActors, Actor[] assignedActors, User user)
Do re-affectation for given states Remove users as working users and unassign corresponding tasks Add users as working users and assign corresponding tasks
-
-
-
Method Detail
-
process
public void process(TaskDoneEvent event) throws WorkflowException
A task has been done and sent to the workflow Engine which has to process it.- Specified by:
process
in interfaceWorkflowEngine
- Parameters:
event
- the task event that has been done.- Throws:
WorkflowException
-
process
public void process(TaskDoneEvent event, boolean ignoreControls) throws WorkflowException
A task has been done and sent to the workflow Engine which has to process it.- Specified by:
process
in interfaceWorkflowEngine
- Parameters:
event
- the task event that has been done.ignoreControls
- if true, ignore controls about locks and permissions.- Throws:
WorkflowException
-
process
public void process(TaskSavedEvent event) throws WorkflowException
A task has been saved and sent to the workflow Engine which has to process it.- Specified by:
process
in interfaceWorkflowEngine
- Parameters:
event
- the task event that has been saved.- Throws:
WorkflowException
-
process
public void process(QuestionEvent event) throws WorkflowException
A question has been sent to a previous participant- Specified by:
process
in interfaceWorkflowEngine
- Parameters:
event
- the question event containing all necessary information- Throws:
WorkflowException
-
process
public void process(ResponseEvent event) throws WorkflowException
A question had been sent to a previous participant. A response is sent !- Specified by:
process
in interfaceWorkflowEngine
- Parameters:
event
- the response event containing all necessary information- Throws:
WorkflowException
-
reAssignActors
public void reAssignActors(UpdatableProcessInstance instance, Actor[] unAssignedActors, Actor[] assignedActors, User user) throws WorkflowException
Do re-affectation for given states Remove users as working users and unassign corresponding tasks Add users as working users and assign corresponding tasks- Specified by:
reAssignActors
in interfaceWorkflowEngine
- Throws:
WorkflowException
-
-