Package com.day.cq.workflow
Interface WorkflowService
-
public interface WorkflowServiceTheWorkflowServiceis the main entry point for accessing the workflow engine. It defines life cycle methods for the workflow engine (eg tostart()/stop()it).It also provides functionality for getting a
per user based on the users JCR session and according credentials. Instances of theWorkflowSessioninterface are used for all workflow operations like deploying a newWorkflowSessionWorkflowModelor starting a newWorkflowinstance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Dictionary<java.lang.String,java.lang.Object>getConfig()Allows users of theWorkflowServiceto retrieve settings and parameters related to theWorkflowServiceimplementation.WorkflowSessiongetWorkflowSession(javax.jcr.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 Detail
-
start
void start() throws WorkflowExceptionThe 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
WorkflowSession getWorkflowSession(javax.jcr.Session session)
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
java.util.Dictionary<java.lang.String,java.lang.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.
-
-