public abstract class AbstractExecutionService extends Object implements ExecutionService
ExecutionService
s.Constructor and Description |
---|
AbstractExecutionService(String ID,
String name,
String description) |
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.
|
protected abstract Execution |
createExecutionImpl(WorkflowBundle workflowBundle,
Workflow workflow,
Profile profile,
Bundle dataBundle)
Creates an implementation of an Execution.
|
void |
delete(String executionID)
Deletes the execution of a workflow.
|
String |
getDescription()
Returns a description of this ExecutionService.
|
protected Execution |
getExecution(String executionID) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExecutionEnvironments
public String getID()
ExecutionService
getID
in interface ExecutionService
public String getName()
ExecutionService
getName
in interface ExecutionService
public String getDescription()
ExecutionService
getDescription
in interface ExecutionService
public String createExecution(ExecutionEnvironment executionEnvironment, WorkflowBundle workflowBundle, Workflow workflow, Profile profile, Bundle dataBundle) throws InvalidWorkflowException
ExecutionService
createExecution
in interface ExecutionService
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
protected abstract Execution createExecutionImpl(WorkflowBundle workflowBundle, Workflow workflow, Profile profile, Bundle dataBundle) throws InvalidWorkflowException
ExecutionService
.workflowBundle
- the WorkflowBundle
containing the Workflow
s required for
executionworkflow
- the Workflow
to executeprofile
- the Profile
to use when executing the Workflow
dataBundle
- the Bundle
containing the data values for the Workflow
InvalidWorkflowException
- if the specified workflow is invalidpublic WorkflowReport getWorkflowReport(String executionID) throws InvalidExecutionIdException
ExecutionService
getWorkflowReport
in interface ExecutionService
executionID
- the ID of the executionInvalidExecutionIdException
public void delete(String executionID) throws InvalidExecutionIdException
ExecutionService
delete
in interface ExecutionService
executionID
- the ID of the execution to deleteInvalidExecutionIdException
- if the execution ID is not validpublic void start(String executionID) throws InvalidExecutionIdException
ExecutionService
start
in interface ExecutionService
executionID
- the ID of the execution to startInvalidExecutionIdException
- if the execution ID is not validpublic void pause(String executionID) throws InvalidExecutionIdException
ExecutionService
pause
in interface ExecutionService
executionID
- the ID of the execution to pauseInvalidExecutionIdException
- if the execution ID is not validpublic void resume(String executionID) throws InvalidExecutionIdException
ExecutionService
resume
in interface ExecutionService
executionID
- the ID of the execution to resumeInvalidExecutionIdException
- if the execution ID is not validpublic void cancel(String executionID) throws InvalidExecutionIdException
ExecutionService
cancel
in interface ExecutionService
executionID
- the ID of the execution to cancelInvalidExecutionIdException
- if the execution ID is not validprotected Execution getExecution(String executionID) throws InvalidExecutionIdException
InvalidExecutionIdException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.