public class DocumentRoutingEngineServiceImpl extends DefaultComponent implements DocumentRoutingEngineService
Modifier and Type | Field and Description |
---|---|
static String |
WORKFLOW_NAME_EVENT_PROPERTY_KEY |
Constructor and Description |
---|
DocumentRoutingEngineServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(DocumentRoute routeInstance,
CoreSession session)
Cancels a route using an unrestricted session.
|
void |
resume(DocumentRoute routeInstance,
String nodeId,
String taskId,
Map<String,Object> data,
String status,
CoreSession session)
Resumes a route, optionnally for a given task only.
|
void |
start(DocumentRoute routeInstance,
Map<String,Serializable> map,
CoreSession session)
Starts a route.
|
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public static final String WORKFLOW_NAME_EVENT_PROPERTY_KEY
public void start(DocumentRoute routeInstance, Map<String,Serializable> map, CoreSession session)
DocumentRoutingEngineService
start
in interface DocumentRoutingEngineService
routeInstance
- the route instancemap
- the values to pass as initial workflow variablessession
- the sessionpublic void resume(DocumentRoute routeInstance, String nodeId, String taskId, Map<String,Object> data, String status, CoreSession session)
DocumentRoutingEngineService
resume
in interface DocumentRoutingEngineService
routeInstance
- the route instancenodeId
- the node id to resume on (optional)taskId
- the task id that resumes (optional)data
- the data coming from UI formstatus
- the name of the button clicked to submit the associated task formsession
- the sessionpublic void cancel(DocumentRoute routeInstance, CoreSession session)
DocumentRoutingEngineService
cancel
in interface DocumentRoutingEngineService
routeInstance
- the route instancesession
- the sessionCopyright © 2015 Nuxeo SA. All rights reserved.