com.flexive.shared.workflow
Class WorkflowEdit

java.lang.Object
  extended by com.flexive.shared.AbstractSelectableObjectWithName
      extended by com.flexive.shared.workflow.Workflow
          extended by com.flexive.shared.workflow.WorkflowEdit
All Implemented Interfaces:
SelectableObject, SelectableObjectWithName, java.io.Serializable

public class WorkflowEdit
extends Workflow
implements java.io.Serializable

Editable workflow class.

Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.flexive.shared.workflow.Workflow
description, id, name, routes, steps
 
Constructor Summary
WorkflowEdit()
          Default constructor.
WorkflowEdit(java.lang.String name)
          Ctor to create a new WorkflowEdit instance
WorkflowEdit(Workflow workflow)
          Copy constructor.
 
Method Summary
static WorkflowEdit createNew(java.lang.String name)
          Convenience method to create a new WorkflowEdit instance
 void setDescription(java.lang.String description)
          Set the workflow description.
 void setId(long id)
          Set the workflow ID.
 void setName(java.lang.String name)
          Set the workflow name.
 void setRoutes(java.util.List<? extends Route> routes)
          Set the workflow routes.
 void setSteps(java.util.List<? extends StepEdit> steps)
          Set the workflow steps.
 
Methods inherited from class com.flexive.shared.workflow.Workflow
asEditable, getDescription, getId, getLiveStep, getName, getRoutes, getSteps, getTargets, hasLiveStep, isRouteValid, isStepValid, toString
 
Methods inherited from class com.flexive.shared.AbstractSelectableObjectWithName
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkflowEdit

public WorkflowEdit(Workflow workflow)
Copy constructor.

Parameters:
workflow - the source workflow

WorkflowEdit

public WorkflowEdit()
Default constructor.


WorkflowEdit

public WorkflowEdit(java.lang.String name)
Ctor to create a new WorkflowEdit instance

Parameters:
name - workflow name
Method Detail

setId

public void setId(long id)
Set the workflow ID.

Parameters:
id - the workflow ID.

setName

public void setName(java.lang.String name)
Set the workflow name.

Parameters:
name - the workflow name.

setDescription

public void setDescription(java.lang.String description)
Set the workflow description.

Parameters:
description - the workflow description.

setSteps

public void setSteps(java.util.List<? extends StepEdit> steps)
Set the workflow steps.

Parameters:
steps - the workflow steps.

setRoutes

public void setRoutes(java.util.List<? extends Route> routes)
Set the workflow routes.

Parameters:
routes - the workflow routes.

createNew

public static WorkflowEdit createNew(java.lang.String name)
Convenience method to create a new WorkflowEdit instance

Parameters:
name - workflow name
Returns:
WorkflowEdit instance