com.silverpeas.workflow.api
Interface WorkflowEngine

All Known Implementing Classes:
WorkflowEngineImpl

public interface WorkflowEngine

The workflow engine main services.


Method Summary
 void process(QuestionEvent event)
          A question has been sent to a previous participant
 void 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 Enginewhich has to process it.
 void process(TaskDoneEvent event, boolean ignoreControls)
          A task has been done and sent to the workflow Enginewhich has to process it.
 void process(TaskSavedEvent event)
          A task has been saved and sent to the workflow Enginewhich 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

void process(TaskDoneEvent event,
             boolean ignoreControls)
             throws WorkflowException
A task has been done and sent to the workflow Enginewhich has to process it.

Parameters:
event - the task event that has been done.
ignoreControls - if true, ignore controls about locks and permissions.
Throws:
WorkflowException

process

void process(TaskDoneEvent event)
             throws WorkflowException
A task has been done and sent to the workflow Enginewhich has to process it.

Parameters:
event - the task event that has been done.
Throws:
WorkflowException

process

void process(TaskSavedEvent event)
             throws WorkflowException
A task has been saved and sent to the workflow Enginewhich has to process it.

Parameters:
event - the task event that has been saved.
Throws:
WorkflowException

process

void process(QuestionEvent event)
             throws WorkflowException
A question has been sent to a previous participant

Parameters:
event - the question event containing all necessary information
Throws:
WorkflowException

process

void process(ResponseEvent event)
             throws WorkflowException
A question had been sent to a previous participant. A response is sent !

Parameters:
event - the response event containing all necessary information
Throws:
WorkflowException

reAssignActors

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

Throws:
WorkflowException


Copyright © 2016 Silverpeas. All Rights Reserved.