com.flexive.shared.workflow
Class Route

java.lang.Object
  extended by com.flexive.shared.workflow.Route
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RouteEdit

public class Route
extends java.lang.Object
implements java.io.Serializable

The route class represents a route connecing two steps within a workflow.

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

Field Summary
protected  long fromStepId
           
protected  long groupId
           
protected  long id
           
protected  long toStepId
           
 
Constructor Summary
protected Route()
          Protected default constructor
  Route(long id, long groupId, long fromStepId, long toStepId)
          Creates a new route between two steps of a workflow.
  Route(Route route)
          Copy constructor
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks if this route is equal to another.
 long getFromStepId()
          Returns the source step of the route.
 long getGroupId()
          Returns the group that the route belongs to.
 long getId()
          Returns the unique id of the route.
 long getToStepId()
          Returns the destination step of the route.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected long id

fromStepId

protected long fromStepId

toStepId

protected long toStepId

groupId

protected long groupId
Constructor Detail

Route

public Route(long id,
             long groupId,
             long fromStepId,
             long toStepId)
Creates a new route between two steps of a workflow.

Parameters:
id - route ID
groupId - group ID
fromStepId - source step ID
toStepId - destination step ID

Route

public Route(Route route)
Copy constructor

Parameters:
route - source route object

Route

protected Route()
Protected default constructor

Method Detail

equals

public boolean equals(java.lang.Object o)
Checks if this route is equal to another. The route ID is ignored, since equality checks are supposed to occur inside the same workflow.

Overrides:
equals in class java.lang.Object
Parameters:
o - the route this object should be compared to
Returns:
true if the route is equal to o

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

getId

public long getId()
Returns the unique id of the route.

Returns:
the id of the route

getFromStepId

public long getFromStepId()
Returns the source step of the route.

Returns:
the source step of the route

getToStepId

public long getToStepId()
Returns the destination step of the route.

Returns:
the destination step of the route

getGroupId

public long getGroupId()
Returns the group that the route belongs to.

Returns:
the group that the route belongs to.