Interface SyntheticWorkflowRunner
-
- All Superinterfaces:
com.day.cq.workflow.WorkflowService
@ProviderType public interface SyntheticWorkflowRunner extends com.day.cq.workflow.WorkflowService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSyntheticWorkflowRunner.WorkflowProcessIdType
-
Field Summary
Fields Modifier and Type Field Description static StringPROCESS_ARGS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(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.SyntheticWorkflowModelgetSyntheticWorkflowModel(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.SyntheticWorkflowStepgetSyntheticWorkflowStep(String id, SyntheticWorkflowRunner.WorkflowProcessIdType type)Gets the Synthetic Workflow Step that represents the label.SyntheticWorkflowStepgetSyntheticWorkflowStep(String id, SyntheticWorkflowRunner.WorkflowProcessIdType type, Map<String,Object> metadataMap)Gets the Synthetic Workflow Step that represents the label.
-
-
-
Field Detail
-
PROCESS_ARGS
static final String PROCESS_ARGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
void execute(org.apache.sling.api.resource.ResourceResolver resourceResolver, String payloadPath, String[] workflowProcessLabels) throws com.day.cq.workflow.WorkflowExceptionProcess 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.WorkflowExceptionExecute 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
-
-