public abstract class WorkflowExecutor extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
callbackURL |
| Constructor and Description |
|---|
WorkflowExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(WorkflowDTO workflowDTO)
Implements the workflow completion logic.
|
void |
execute(WorkflowDTO workflowDTO)
Implements the workflow execution logic.
|
String |
generateUUID()
Method generates and returns UUID
|
String |
getCallbackURL() |
abstract List<WorkflowDTO> |
getWorkflowDetails(String workflowStatus)
Returns the information of the workflows whose status' match the workflowStatus
|
abstract String |
getWorkflowType()
Returns the workflow executor type.
|
boolean |
isAsynchronus() |
void |
persistWorkflow(WorkflowDTO workflowDTO)
Method for persisting Workflow DTO
|
void |
setCallbackURL(String callbackURL) |
protected String callbackURL
public boolean isAsynchronus()
public abstract String getWorkflowType()
public void execute(WorkflowDTO workflowDTO) throws WorkflowException
workflowDTO - - The WorkflowDTO which contains workflow contextual information related to the workflow.WorkflowException - - Thrown when the workflow execution was not fully performed.public void complete(WorkflowDTO workflowDTO) throws WorkflowException
workflowDTO - - The WorkflowDTO which contains workflow contextual information related to the workflow.WorkflowException - - Thrown when the workflow completion was not fully performed.public abstract List<WorkflowDTO> getWorkflowDetails(String workflowStatus) throws WorkflowException
workflowStatus - - The status of the workflows to matchWorkflowException - - Thrown when the workflow information could not be retrieved.public String generateUUID()
public void persistWorkflow(WorkflowDTO workflowDTO) throws WorkflowException
workflowDTO - WorkflowExceptionpublic String getCallbackURL()
public void setCallbackURL(String callbackURL)
Copyright © 2017 WSO2. All rights reserved.