public interface WorkflowService
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 WorkflowSession
WorkflowModel
or
starting a new Workflow
instance.
Modifier and Type | Method and Description |
---|---|
java.util.Dictionary<java.lang.String,java.lang.Object> |
getConfig()
Allows users of the
WorkflowService to retrieve settings
and parameters related to the WorkflowService
implementation. |
WorkflowSession |
getWorkflowSession(Session session)
Creates a new
based on the given
JCR session. |
void |
start()
The start method will initialize and start the
WorkflowService properly. |
void |
stop()
This methods will shutdown the
WorkflowService properly. |
void start() throws WorkflowException
WorkflowService
properly.WorkflowException
- Thrown in case that the initialization procedure fails.void stop()
WorkflowService
properly.
All active workflows will be suspended and all running processes will be
terminated.WorkflowSession getWorkflowSession(Session session)
WorkflowSession
based 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.session
- The users JCR session to be used for initializing the
WorkflowSession
.WorkflowSession
based on the given JCR session.java.util.Dictionary<java.lang.String,java.lang.Object> getConfig()
WorkflowService
to retrieve settings
and parameters related to the WorkflowService
implementation. In common these are provided by the environment (eg. a
OSGi compliant container or a servlet engine.WorkflowService
.Copyright © 2010 - 2020 Adobe. All Rights Reserved