@ProviderType
public interface SyntheticWorkflowRunner
extends com.day.cq.workflow.WorkflowService
| Modifier and Type | Interface and Description |
|---|---|
static class |
SyntheticWorkflowRunner.WorkflowProcessIdType |
| Modifier and Type | Field and Description |
|---|---|
static String |
PROCESS_ARGS |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String payloadPath,
String[] workflowProcessLabels)
Process a payload path using using the provided Workflow Processes.
|
void |
execute(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.
|
SyntheticWorkflowModel |
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.
|
SyntheticWorkflowStep |
getSyntheticWorkflowStep(String id,
SyntheticWorkflowRunner.WorkflowProcessIdType type)
Gets the Synthetic Workflow Step that represents the label.
|
SyntheticWorkflowStep |
getSyntheticWorkflowStep(String id,
SyntheticWorkflowRunner.WorkflowProcessIdType type,
Map<String,Object> metadataMap)
Gets the Synthetic Workflow Step that represents the label.
|
static final String PROCESS_ARGS
void execute(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String payloadPath,
String[] workflowProcessLabels)
throws com.day.cq.workflow.WorkflowException
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
resourcecom.day.cq.workflow.WorkflowExceptionvoid execute(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String payloadPath,
SyntheticWorkflowModel syntheticWorkflowModel,
boolean autoSaveAfterEachWorkflowProcess,
boolean autoSaveAtEnd)
throws com.day.cq.workflow.WorkflowException
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 completecom.day.cq.workflow.WorkflowExceptionSyntheticWorkflowModel getSyntheticWorkflowModel(org.apache.sling.api.resource.ResourceResolver resourceResolver, String workflowModelId, boolean ignoreIncompatibleTypes) throws com.day.cq.workflow.WorkflowException
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 abilitycom.day.cq.workflow.WorkflowExceptionSyntheticWorkflowStep getSyntheticWorkflowStep(String id, SyntheticWorkflowRunner.WorkflowProcessIdType type)
id - the workflow process idtype - the type of workflow process id (name or label)SyntheticWorkflowStep getSyntheticWorkflowStep(String id, SyntheticWorkflowRunner.WorkflowProcessIdType type, Map<String,Object> metadataMap)
id - the workflow process idtype - the type of workflow process id (name or label)Copyright © 2013–2020 Adobe. All rights reserved.