public class Execution extends AbstractBean
| Modifier and Type | Class and Description |
|---|---|
static class |
Execution.State |
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_DATASET
Marker for non existing dataset due to errrors.
|
| Constructor and Description |
|---|
Execution()
Create a new instance of the execution.
|
| Modifier and Type | Method and Description |
|---|---|
Person |
getCreator()
Return the PersonBean that is the creator of the execution
|
String |
getDataset(String id)
Returns the value for a specific dataset.
|
Map<String,String> |
getDatasets() |
Date |
getDate()
Return the date when the execution was created.
|
String |
getDescription()
Return the description of the execution.
|
String |
getParameter(String uuid)
Returns the value for a specific parameter.
|
Map<String,String> |
getParameters() |
Map<String,String> |
getProperties() |
String |
getProperty(String key) |
Date |
getStepEnd(String id)
Returns the end time of the step with the given id, or null if the step
has not ended.
|
Date |
getStepQueued(String id)
Returns the queued time of the step with the given id, or null if the
step has not been queued.
|
Map<String,Long> |
getStepsEnd() |
Map<String,Long> |
getStepsQueued() |
Map<String,Long> |
getStepsStart() |
Date |
getStepStart(String id)
Returns the start time of the step with the given id, or null if the step
has not been started.
|
Map<String,Execution.State> |
getStepState() |
Execution.State |
getStepState(String id)
Returns the state for a specific step.
|
String |
getTitle()
Return the title of the execution.
|
String |
getWorkflowId()
Return the workflow that was executed.
|
boolean |
hasDataset(String id) |
boolean |
hasParameter(String id) |
boolean |
hasProperty(String key) |
void |
setCreator(Person creator)
Sets the PersonBean that represents the creator of the execution.
|
void |
setDataset(String id,
String datasetid)
Sets the dataset associated with that specific uuid.
|
void |
setDatasets(Map<String,String> datasets) |
void |
setDate(Date date)
Sets the date when the execution was created.
|
void |
setDescription(String description)
Sets the description of the execution
|
void |
setParameter(String uuid,
String value)
Sets the value for the specific parameter.
|
void |
setParameters(Map<String,String> parameters) |
void |
setProperties(Map<String,String> properties) |
void |
setProperty(String key,
String val) |
void |
setStepEnd(String id)
Sets the the the end time of the given step with the id to now().
|
void |
setStepEnd(String id,
Long end) |
void |
setStepQueued(String id)
Sets the the the queued time of the given step with the id to now().
|
void |
setStepQueued(String id,
Long queued) |
void |
setStepsEnd(Map<String,Long> stepsEnd) |
void |
setStepsQueued(Map<String,Long> stepQueued) |
void |
setStepsStart(Map<String,Long> stepsStart) |
void |
setStepStart(String id)
Sets the the the start time of the given step with the id to now().
|
void |
setStepStart(String id,
Long start) |
void |
setStepState(Map<String,Execution.State> stepStates) |
void |
setStepState(String id,
Execution.State state)
Sets the state of the specific step in the workflow.
|
void |
setTitle(String title)
Sets the title of the execution
|
void |
setWorkflow(Workflow workflow)
Sets the workflow that is executed.
|
void |
setWorkflowId(String workflowId) |
equals, getId, hashCode, isDeleted, setDeleted, setIdpublic static final String EMPTY_DATASET
public String getTitle()
public void setTitle(String title)
title - sets the title of the execution.public String getDescription()
public void setDescription(String description)
description - sets the description of the execution.public String getWorkflowId()
public void setWorkflowId(String workflowId)
public void setWorkflow(Workflow workflow)
workflow - sets the workflow this execution is for.public Date getDate()
public void setDate(Date date)
date - sets the date when the execution was created.public Person getCreator()
public void setCreator(Person creator)
creator - sets the PersonBean that represents the creator of the
execution.public boolean hasParameter(String id)
id - public String getParameter(String uuid)
uuid - the uuid for parameterpublic void setParameter(String uuid, String value)
uuid - the uuid of the parameter to set.value - the value of the parameter.public boolean hasDataset(String id)
id - public String getDataset(String id)
id - the uuid for datasetpublic void setDataset(String id, String datasetid)
id - the uuid of the dataset to set.datasetid - the id of the dataset to be set.public Execution.State getStepState(String id)
id - the id for the step in the workflowpublic Map<String,Execution.State> getStepState()
public void setStepState(String id, Execution.State state)
id - the id of the workflow step.state - the state of the workflow step.public void setStepState(Map<String,Execution.State> stepStates)
public Date getStepQueued(String id)
id - the id of the step whose time is to be returned.public void setStepQueued(String id)
id - the id of the step that has been queued.public Date getStepStart(String id)
id - the id of the step whose time is to be returned.public void setStepStart(String id)
id - the id of the step that has started executionpublic Date getStepEnd(String id)
id - the id of the step whose time is to be returned.public void setStepEnd(String id)
id - the id of the step that has ended executionpublic boolean hasProperty(String key)
Copyright © 2017. All rights reserved.