Class RunDocumentChain
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.operations.execution.RunDocumentChain
-
public class RunDocumentChain extends Object
Run an embedded operation chain that returns a DocumentModel using the current input.- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected String
chainId
protected Properties
chainParameters
protected OperationContext
ctx
static String
ID
protected boolean
isolate
protected boolean
newTx
protected boolean
rollbackGlobalOnError
protected AutomationService
service
protected CoreSession
session
protected Integer
timeout
-
Constructor Summary
Constructors Constructor Description RunDocumentChain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModel
run(DocumentModel doc)
DocumentModelList
run(DocumentModelList docs)
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
ctx
protected OperationContext ctx
-
service
protected AutomationService service
-
session
protected CoreSession session
-
chainId
protected String chainId
-
isolate
protected boolean isolate
-
chainParameters
protected Properties chainParameters
-
newTx
protected boolean newTx
- Since:
- 6.0 Define if the chain in parameter should be executed in new transaction.
-
timeout
protected Integer timeout
- Since:
- 6.0 Define transaction timeout (default to 60 sec).
-
rollbackGlobalOnError
protected boolean rollbackGlobalOnError
- Since:
- 6.0 Define if transaction should rollback or not (default to true).
-
-
Method Detail
-
run
public DocumentModel run(DocumentModel doc) throws OperationException
- Throws:
OperationException
-
run
public DocumentModelList run(DocumentModelList docs) throws OperationException
- Throws:
OperationException
-
-