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 thenodeId
parameter is specified, then only the workflows suspended on that node are restarted.- Since:
- 5.7
-
-
Field Summary
Fields Modifier and Type Field Description protected Integer
batchSize
protected OperationContext
ctx
static int
DEFAULT_BATCH_SIZE
static String
ID
protected String
nodeId
protected boolean
reinitLifecycle
protected String
workflowId
-
Constructor Summary
Constructors Constructor Description BulkRestartWorkflow()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
reinitLifecycle(List<String> docIds, CoreSession session)
void
run()
static Throwable
unwrapException(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)
-
-