de.danet.an.workflow.api
Interface Transition


public interface Transition

Represents a transition between two activities.

Methods of this interface do not throw RemoteExceptions as they are read-only and the data is immutable and simple.


Field Summary
static int COND_TYPE_CONDITION
          Condition type "condition".
static int COND_TYPE_DEFAULTEXCEPTION
          Condition type "default exception".
static int COND_TYPE_EXCEPTION
          Condition type "exception".
static int COND_TYPE_OTHERWISE
          Condition type "OTHERWISE".
 
Method Summary
 java.lang.String condition()
          Returns the condition associated with this transition.
 int conditionType()
          Returns the type of the condition associated with this transition.
 Activity from()
          Returns the "From" activity of this transition.
 java.lang.String group()
          Return the identifier of the transition group this transition belongs to.
 java.lang.String id()
          Returns the id of this transition.
 int order()
          Return the priority of this transition.
 Activity to()
          Returns the "To" activity of this transition.
 

Field Detail

COND_TYPE_CONDITION

public static final int COND_TYPE_CONDITION
Condition type "condition".

See Also:
Constant Field Values

COND_TYPE_OTHERWISE

public static final int COND_TYPE_OTHERWISE
Condition type "OTHERWISE".

See Also:
Constant Field Values

COND_TYPE_EXCEPTION

public static final int COND_TYPE_EXCEPTION
Condition type "exception".

See Also:
Constant Field Values

COND_TYPE_DEFAULTEXCEPTION

public static final int COND_TYPE_DEFAULTEXCEPTION
Condition type "default exception".

See Also:
Constant Field Values
Method Detail

from

public Activity from()
Returns the "From" activity of this transition.

Returns:
the source activity

to

public Activity to()
Returns the "To" activity of this transition.

Returns:
the destination activity

id

public java.lang.String id()
Returns the id of this transition.

Returns:
the id

order

public int order()
Return the priority of this transition. The priority determines the sequence in which transitions from activties with XOR split are evaluated.

Returns:
the priority

group

public java.lang.String group()
Return the identifier of the transition group this transition belongs to.

Returns:
the transition group

conditionType

public int conditionType()
Returns the type of the condition associated with this transition.

Returns:
type of the condition of this transition

condition

public java.lang.String condition()
Returns the condition associated with this transition.

Returns:
the condition of this transition