com.silverpeas.workflow.engine
Class WorkflowEngineImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.WorkflowEngineImpl
All Implemented Interfaces:
WorkflowEngine

public class WorkflowEngineImpl
extends Object
implements WorkflowEngine

One implementation of WorkflowEngine The workflow engine main services.


Constructor Summary
WorkflowEngineImpl()
          default constructor
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowEngineImpl

public WorkflowEngineImpl()
default constructor

Method Detail

process

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

Specified by:
process in interface WorkflowEngine
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 Enginewhich has to process it.

Specified by:
process in interface WorkflowEngine
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 Enginewhich has to process it.

Specified by:
process in interface WorkflowEngine
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 interface WorkflowEngine
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 interface WorkflowEngine
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 interface WorkflowEngine
Throws:
WorkflowException


Copyright © 2016 Silverpeas. All Rights Reserved.