Package com.adobe.granite.workflow.exec
Interface StepExecutor
- All Known Implementing Classes:
CQWorkflowProcessRunner
public interface StepExecutor
Service Interface to support execution of 3rd party workflow step code.
StepExecutor can be used to support 3rd part code to execute workflow
steps, however the preferred method is to implement the WorkflowProcess interface.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanExecute(String workflowStepResource) Returns true if this service can process the specified resource, false otherwise.voidexecute(String workflowStepResource, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData) Execute the step associate with resource.
-
Method Details
-
execute
void execute(String workflowStepResource, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData) throws WorkflowException Execute the step associate with resource.- Parameters:
workflowStepResource- the resource identifying the code to execute for this workflow step.workItem- the workitem associate with the current step.workflowSession- the current workflow sessionmetaData- the workflow step's metadata- Throws:
WorkflowException- thrown in case something goes wrong during execution
-
canExecute
Returns true if this service can process the specified resource, false otherwise.- Parameters:
workflowStepResource- the resource identifying the code to execute for this workflow step.- Returns:
- true if this service can process the specified resource, false otherwise.
-