public interface ExecutionService
ExecutionService
s
available that offer different execution environments, e.g. one ExecutionService
may
execute workflows on a remote server while another executes workflows on the local machine.Modifier and Type | Method and Description |
---|---|
void |
cancel(String executionID)
Cancels the execution of a workflow.
|
String |
createExecution(ExecutionEnvironment executionEnvironment,
WorkflowBundle workflowBundle,
Workflow workflow,
Profile profile,
Bundle dataBundle)
Creates a workflow execution and returns its ID.
|
void |
delete(String executionID)
Deletes the execution of a workflow.
|
String |
getDescription()
Returns a description of this ExecutionService.
|
Set<ExecutionEnvironment> |
getExecutionEnvironments()
Returns the ExecutionEnvironments available for this ExecutionService.
|
String |
getID()
Returns the identifier for this ExecutionService.
|
String |
getName()
Returns the name of this ExecutionService.
|
WorkflowReport |
getWorkflowReport(String executionID)
Returns the workflow report for the specified execution.
|
void |
pause(String executionID)
Pauses the execution of a workflow.
|
void |
resume(String executionID)
Resumes the execution of a paused workflow.
|
void |
start(String executionID)
Starts the execution of a workflow.
|
String getID()
String getName()
String getDescription()
Set<ExecutionEnvironment> getExecutionEnvironments()
String createExecution(ExecutionEnvironment executionEnvironment, WorkflowBundle workflowBundle, Workflow workflow, Profile profile, Bundle dataBundle) throws InvalidWorkflowException
executionEnvironment
- the ExecutionEnvironment
used to execute the
Workflow
workflowBundle
- the WorkflowBundle
containing the workflows required for executionworkflow
- the workflow to executeprofile
- the profile to use when executing the workflowdataBundle
- the Bundle
containing the data values for the Workflow
InvalidWorkflowException
WorkflowReport getWorkflowReport(String executionID) throws InvalidExecutionIdException
executionID
- the ID of the executionInvalidExecutionIdException
void delete(String executionID) throws InvalidExecutionIdException
executionID
- the ID of the execution to deleteInvalidExecutionIdException
- if the execution ID is not validvoid start(String executionID) throws InvalidExecutionIdException
executionID
- the ID of the execution to startInvalidExecutionIdException
- if the execution ID is not validvoid pause(String executionID) throws InvalidExecutionIdException
executionID
- the ID of the execution to pauseInvalidExecutionIdException
- if the execution ID is not validvoid resume(String executionID) throws InvalidExecutionIdException
executionID
- the ID of the execution to resumeInvalidExecutionIdException
- if the execution ID is not validvoid cancel(String executionID) throws InvalidExecutionIdException
executionID
- the ID of the execution to cancelInvalidExecutionIdException
- if the execution ID is not validCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.