Interface SyntheticWorkflowRunner
- All Superinterfaces:
com.day.cq.workflow.WorkflowService
@ProviderType
public interface SyntheticWorkflowRunner
extends com.day.cq.workflow.WorkflowService
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.apache.sling.api.resource.ResourceResolver resourceResolver, String payloadPath, SyntheticWorkflowModel syntheticWorkflowModel, boolean autoSaveAfterEachWorkflowProcess, boolean autoSaveAtEnd) Execute the provided Synthetic Workflow Model in the context of Synthetic Workflow.voidexecute(org.apache.sling.api.resource.ResourceResolver resourceResolver, String payloadPath, String[] workflowProcessLabels) Process a payload path using using the provided Workflow Processes.getSyntheticWorkflowModel(org.apache.sling.api.resource.ResourceResolver resourceResolver, String workflowModelId, boolean ignoreIncompatibleTypes) Generates the SyntheticWorkflowModel that represents the AEM Workflow Model to execute in the context of Synthetic Workflow.Gets the Synthetic Workflow Step that represents the label.getSyntheticWorkflowStep(String id, SyntheticWorkflowRunner.WorkflowProcessIdType type, Map<String, Object> metadataMap) Gets the Synthetic Workflow Step that represents the label.Methods inherited from interface com.day.cq.workflow.WorkflowService
getConfig, getWorkflowSession, start, stop
-
Field Details
-
PROCESS_ARGS
- See Also:
-
-
Method Details
-
execute
void execute(org.apache.sling.api.resource.ResourceResolver resourceResolver, String payloadPath, String[] workflowProcessLabels) throws com.day.cq.workflow.WorkflowException Process a payload path using using the provided Workflow Processes. Convenience method for calling: > execute(resourceResolver, payloadPath, workflowProcessLabels, null, false, false);- Parameters:
resourceResolver- the resourceResolver object that provides access to the JCR for WF operationspayloadPath- the path to execute the workflow againstworkflowProcessLabels- the process.labels of the workflow to execute in order against the payloadPath resource- Throws:
com.day.cq.workflow.WorkflowException
-
execute
void execute(org.apache.sling.api.resource.ResourceResolver resourceResolver, String payloadPath, SyntheticWorkflowModel syntheticWorkflowModel, boolean autoSaveAfterEachWorkflowProcess, boolean autoSaveAtEnd) throws com.day.cq.workflow.WorkflowException Execute the provided Synthetic Workflow Model in the context of Synthetic Workflow.- Parameters:
resourceResolver- the resourceResolver object that provides access to the JCR for WF operationspayloadPath- the path to execute the workflow againstsyntheticWorkflowModel- the Synthetic Workflow Model to executeautoSaveAfterEachWorkflowProcess- persist changes to JCR after each Workflow Process completesautoSaveAtEnd- persist changes to JCR after all Workflow Process complete- Throws:
com.day.cq.workflow.WorkflowException
-
getSyntheticWorkflowModel
SyntheticWorkflowModel getSyntheticWorkflowModel(org.apache.sling.api.resource.ResourceResolver resourceResolver, String workflowModelId, boolean ignoreIncompatibleTypes) throws com.day.cq.workflow.WorkflowException Generates the SyntheticWorkflowModel that represents the AEM Workflow Model to execute in the context of Synthetic Workflow.- Parameters:
resourceResolver- the resourceResolver object that provides access to the JCR for WF operationsworkflowModelId- the AEM Workflow Model IDignoreIncompatibleTypes- ignore incompatible workflow node types to the best of Synthetic Workflow ability- Returns:
- the Synthetic Workflow Model
- Throws:
com.day.cq.workflow.WorkflowException
-
getSyntheticWorkflowStep
SyntheticWorkflowStep getSyntheticWorkflowStep(String id, SyntheticWorkflowRunner.WorkflowProcessIdType type) Gets the Synthetic Workflow Step that represents the label. This method sets the MetadataMap to empty.- Parameters:
id- the workflow process idtype- the type of workflow process id (name or label)- Returns:
- the SyntheticWorkflowStep object
-
getSyntheticWorkflowStep
SyntheticWorkflowStep getSyntheticWorkflowStep(String id, SyntheticWorkflowRunner.WorkflowProcessIdType type, Map<String, Object> metadataMap) Gets the Synthetic Workflow Step that represents the label.- Parameters:
id- the workflow process idtype- the type of workflow process id (name or label)- Returns:
- the SyntheticWorkflowStep object
-