Package com.day.cq.workflow
Interface WorkflowService
public interface WorkflowService
The
WorkflowService is the main entry point for accessing the
workflow engine. It defines life cycle methods for the workflow engine (eg to
start()/stop() it).
It also provides functionality for getting a
per user based on the users JCR
session and according credentials.
Instances of the WorkflowSession interface are used
for all workflow operations like deploying a new WorkflowSessionWorkflowModel or
starting a new Workflow instance.
-
Method Summary
Modifier and TypeMethodDescriptionAllows users of theWorkflowServiceto retrieve settings and parameters related to theWorkflowServiceimplementation.getWorkflowSession(Session session) Creates a newbased on the given JCR session.WorkflowSessionvoidstart()The start method will initialize and start theWorkflowServiceproperly.voidstop()This methods will shutdown theWorkflowServiceproperly.
-
Method Details
-
start
The start method will initialize and start theWorkflowServiceproperly.- Throws:
WorkflowException- Thrown in case that the initialization procedure fails.
-
stop
void stop()This methods will shutdown theWorkflowServiceproperly. All active workflows will be suspended and all running processes will be terminated. -
getWorkflowSession
Creates a newbased on the given JCR session. The credentials of the JCR session define what the user can access and which operations he is allowed to do.WorkflowSession- Parameters:
session- The users JCR session to be used for initializing the.WorkflowSession- Returns:
- A new instance of the
based on the given JCR session.WorkflowSession
-
getConfig
Dictionary<String,Object> getConfig()Allows users of theWorkflowServiceto retrieve settings and parameters related to theWorkflowServiceimplementation. In common these are provided by the environment (eg. a OSGi compliant container or a servlet engine.- Returns:
- Returns the map of configuration parameters for the
WorkflowService.
-