org.apache.agila.impl
Class BusinessProcessImpl

java.lang.Object
  extended by org.apache.agila.impl.BusinessProcessImpl
All Implemented Interfaces:
BusinessProcess

public class BusinessProcessImpl
extends java.lang.Object
implements BusinessProcess

simple implementation of a business process. really just a holder for the node/connection graph.

Author:
Geir Magnusson Jr.

Constructor Summary
BusinessProcessImpl()
           
BusinessProcessImpl(BusinessProcess businessProcess)
           
 
Method Summary
 void addConnection(int startNodeID, int endNodeID, java.lang.String name)
           
 void addNode(Node n)
           
 void addVariable(Variable v)
           
 BusinessProcessID getBusinessProcessID()
          Returns the system-specified unique ID of this graph
 java.lang.String getGraphAsXML()
          Returns the workflow graph in it's XML representation
 java.lang.String getName()
          returns the name of the business process
 Node getNode(NodeID nodeId)
          Returns a given node, by ID, from the graph
 int getNodeCount()
          Returns the number of nodes
 Node getRoot()
          Returns the node designated as the 'start' node of the graph
 java.util.Map getVariables()
           
 void registerNode(Node n)
           
 void setBusinessProcessID(BusinessProcessID id)
           
 void setGraphAsXML(java.lang.String graph)
           
 void setName(java.lang.String name)
           
 void setRoot(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessProcessImpl

public BusinessProcessImpl()

BusinessProcessImpl

public BusinessProcessImpl(BusinessProcess businessProcess)
Method Detail

addNode

public void addNode(Node n)

registerNode

public void registerNode(Node n)

getNodeCount

public int getNodeCount()
Description copied from interface: BusinessProcess
Returns the number of nodes

Specified by:
getNodeCount in interface BusinessProcess

addConnection

public void addConnection(int startNodeID,
                          int endNodeID,
                          java.lang.String name)

getName

public java.lang.String getName()
Description copied from interface: BusinessProcess
returns the name of the business process

Specified by:
getName in interface BusinessProcess
Returns:

setName

public void setName(java.lang.String name)

setBusinessProcessID

public void setBusinessProcessID(BusinessProcessID id)

getBusinessProcessID

public BusinessProcessID getBusinessProcessID()
Description copied from interface: BusinessProcess
Returns the system-specified unique ID of this graph

Specified by:
getBusinessProcessID in interface BusinessProcess
Returns:

getRoot

public Node getRoot()
Description copied from interface: BusinessProcess
Returns the node designated as the 'start' node of the graph

Specified by:
getRoot in interface BusinessProcess
Returns:

setRoot

public void setRoot(Node node)

getNode

public Node getNode(NodeID nodeId)
Description copied from interface: BusinessProcess
Returns a given node, by ID, from the graph

Specified by:
getNode in interface BusinessProcess
Returns:

getGraphAsXML

public java.lang.String getGraphAsXML()
Returns the workflow graph in it's XML representation

Specified by:
getGraphAsXML in interface BusinessProcess
Returns:

addVariable

public void addVariable(Variable v)
Specified by:
addVariable in interface BusinessProcess

getVariables

public java.util.Map getVariables()
Specified by:
getVariables in interface BusinessProcess

setGraphAsXML

public void setGraphAsXML(java.lang.String graph)


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.