Class BulkRestartWorkflow
- java.lang.Object
-
- org.nuxeo.ecm.platform.routing.api.operation.BulkRestartWorkflow
-
public class BulkRestartWorkflow extends Object
Bulk operation to cancel and restart all the workflow instances of the workflow model with the idworkflowId. If thenodeIdparameter is specified, then only the workflows suspended on that node are restarted.- Since:
- 5.7
-
-
Field Summary
Fields Modifier and Type Field Description protected IntegerbatchSizeprotected OperationContextctxstatic intDEFAULT_BATCH_SIZEstatic StringIDprotected StringnodeIdprotected booleanreinitLifecycleprotected StringworkflowId
-
Constructor Summary
Constructors Constructor Description BulkRestartWorkflow()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidreinitLifecycle(List<String> docIds, CoreSession session)voidrun()static ThrowableunwrapException(Throwable t)
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
workflowId
protected String workflowId
-
nodeId
protected String nodeId
-
reinitLifecycle
protected boolean reinitLifecycle
-
batchSize
protected Integer batchSize
-
ctx
protected OperationContext ctx
-
DEFAULT_BATCH_SIZE
public static final int DEFAULT_BATCH_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
run
public void run()
-
reinitLifecycle
protected void reinitLifecycle(List<String> docIds, CoreSession session)
-
-