Constructor and Description |
---|
Run(RunProfile runProfile)
Constructs a
Run from the specified RunProfile . |
Run(String id,
Bundle bundle) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
void |
delete()
Deletes a run.
|
Bundle |
getDataBundle()
Returns the
Bundle containing the data values of the run. |
String |
getID()
Returns the identifier for this
Run . |
Profile |
getProfile() |
State |
getState()
Returns the current
State of the Run . |
Workflow |
getWorkflow() |
WorkflowReport |
getWorkflowReport()
Returns the status report for the run.
|
void |
pause() |
void |
resume() |
void |
start() |
public Run(RunProfile runProfile) throws InvalidWorkflowException, RunProfileException
Run
from the specified RunProfile
.runProfile
- the profile to create a Run
fromInvalidWorkflowException
- if the Workflow
specified by the
RunProfile
is not validRunProfileException
- if the RunProfile
does not contain the correct
information to run a Workflow
public Run(String id, Bundle bundle) throws IOException, ReaderException, ParseException
IOException
ReaderException
ParseException
public String getID()
Run
.Run
public State getState()
State
of the Run
.
A Run
's state can be CREATED, RUNNING, COMPLETED, PAUSED,
CANCELLED or FAILED.State
of the Run
public Bundle getDataBundle()
Bundle
containing the data values of the run.
Bundle
containing the data values for the
Workflow
public WorkflowReport getWorkflowReport()
public Workflow getWorkflow()
public Profile getProfile()
public void delete() throws InvalidExecutionIdException
InvalidExecutionIdException
public void start() throws RunStateException, InvalidExecutionIdException
public void pause() throws RunStateException, InvalidExecutionIdException
public void resume() throws RunStateException, InvalidExecutionIdException
public void cancel() throws RunStateException, InvalidExecutionIdException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.