| java.lang.Object com.flexive.shared.AbstractSelectableObjectWithName com.flexive.shared.workflow.Workflow
All known Subclasses: com.flexive.shared.workflow.WorkflowEdit,
Workflow | public Workflow(long id, String name, String description, List<Step> steps, List<Route> routes)(Code) | | Constructor.
Parameters: id - the id of the workflow Parameters: name - the name of the workflow Parameters: description - a description Parameters: steps - the workflow steps Parameters: routes - the workflow routes |
Workflow | protected Workflow()(Code) | | Default constructor.
|
asEditable | public WorkflowEdit asEditable()(Code) | | Returns this workflow as an editable object.
this workflow as an editable object. |
getDescription | public String getDescription()(Code) | | Returns the description of the workflow.
the description of the workflow, may be a empty String but is never null. |
getId | public long getId()(Code) | | Returns the id of the workflow.
the id of the workflow |
getName | public String getName()(Code) | | Returns the name of the workflow.
the name of the workflow |
getRoutes | public List<Route> getRoutes()(Code) | | Return the workflow routes (connections between steps).
the workflow routes (connections between steps). |
getSteps | public List<Step> getSteps()(Code) | | Returns the individual steps of the workflow.
the individual steps of the workflow. |
getTargets | public List<Step> getTargets(long stepId)(Code) | | Get a list of all possible targets for the given step id
Parameters: stepId - source step id to get all targets for target steps |
hasLiveStep | public boolean hasLiveStep()(Code) | | Is a Live step contained in this workflow?
if a Live step exists |
isRouteValid | public boolean isRouteValid(long source, long dest)(Code) | | Check if a route from source to dest exists for the calling user
Parameters: source - source step id Parameters: dest - destination step id does a valid route exist? |
isStepValid | public boolean isStepValid(long stepId)(Code) | | Check if the given step is valid for this workflow
Parameters: stepId - the step ID to be checked if the given step is valid for this workflow |
|
|