Class StartWorkflowOperation
- java.lang.Object
-
- org.nuxeo.ecm.platform.routing.core.api.operation.StartWorkflowOperation
-
public class StartWorkflowOperation extends Object
Starts the workflow with the given model id on the input documents. Returns back the input documents. The id of the created workflow instance is available under the \"WorkflowId\" context variable.- Since:
- 5.6
-
-
Field Summary
Fields Modifier and Type Field Description protected OperationContext
ctx
protected DocumentRoutingService
documentRoutingService
protected String
id
static String
ID
protected CoreSession
session
protected Boolean
start
protected Properties
variables
-
Constructor Summary
Constructors Constructor Description StartWorkflowOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModel
run(DocumentModel doc)
DocumentModelList
run(DocumentModelList docs)
protected void
startNewInstance(List<String> ids)
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
session
protected CoreSession session
-
ctx
protected OperationContext ctx
-
variables
protected Properties variables
-
documentRoutingService
protected DocumentRoutingService documentRoutingService
-
-
Constructor Detail
-
StartWorkflowOperation
public StartWorkflowOperation()
-
-
Method Detail
-
run
public DocumentModelList run(DocumentModelList docs)
-
run
public DocumentModel run(DocumentModel doc)
-
startNewInstance
protected void startNewInstance(List<String> ids)
-
-