org.jwarp.flow.state
Class State

java.lang.Object
  |
  +--org.jwarp.flow.AWorkflowObject
        |
        +--org.jwarp.flow.state.State
All Implemented Interfaces:
IState, IWorkflowObject
Direct Known Subclasses:
SQLState

public class State
extends AWorkflowObject
implements IState

A state is just a result of an activity. An activity has finally reached exactly one state which is also input for the following transition(s). Actually a state has name, description and an id parameter as basic elements.

Version:
1.0
Author:
Anatole Tresch

Field Summary
protected  boolean finalState
           
 
Fields inherited from class org.jwarp.flow.AWorkflowObject
description, id, name, workflow
 
Constructor Summary
State(int id, IWorkflow workflow, java.lang.String name)
           
 
Method Summary
 boolean isFinal()
           
 void setFinal(boolean val)
           
 void setWorkflow(IWorkflow wf)
          Sets a wrokflow.
 
Methods inherited from class org.jwarp.flow.AWorkflowObject
getDescription, getID, getName, getWorkflow, setDescription, setName
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jwarp.flow.IWorkflowObject
getDescription, getID, getName
 

Field Detail

finalState

protected boolean finalState
Constructor Detail

State

public State(int id,
             IWorkflow workflow,
             java.lang.String name)
Method Detail

isFinal

public boolean isFinal()
Specified by:
isFinal in interface IState

setFinal

public void setFinal(boolean val)

setWorkflow

public void setWorkflow(IWorkflow wf)
Description copied from class: AWorkflowObject
Sets a wrokflow.
Overrides:
setWorkflow in class AWorkflowObject

©   O R C A   S y s t e m s