com.waveset.object
Class WFProcess.Activity

java.lang.Object
  extended bycom.waveset.util.AbstractXmlObject
      extended bycom.waveset.object.WorkflowComponent
          extended bycom.waveset.object.WFProcess.Activity
All Implemented Interfaces:
com.sun.idm.debugger.common.Locatable, javax.naming.Referenceable, XmlObject
Enclosing class:
WFProcess

public static class WFProcess.Activity
extends WorkflowComponent

An Activity represents one "state" in the process. These are what form the nodes in the process graph.


Field Summary
static java.lang.String ATT_AUDIT
           
static java.lang.String ATT_HIDDEN
           
static java.lang.String ATT_ID
           
static java.lang.String ATT_JOIN
           
static java.lang.String ATT_NAME
           
static java.lang.String ATT_SPLIT
           
static java.lang.String EL_BREAK
           
static java.lang.String EL_COMMENTS
           
static java.lang.String EL_FORM_RULE
           
static java.lang.String EL_REPORT_TITLE
           
static java.lang.String ELEMENT
           
 
Fields inherited from class com.waveset.util.AbstractXmlObject
_trace, code_id
 
Constructor Summary
WFProcess.Activity()
           
WFProcess.Activity(org.w3c.dom.Element e)
          Build an Activity from XML.
 
Method Summary
 WFProcess.Action getAction(int id)
          Retrieve the action with a certain id.
 WFProcess.Action[] getActions()
           
 java.lang.String getComments()
           
 WFProcess.Editor getEditState()
           
 java.lang.String getElementName()
          Return the element name.
 Form getForm()
           
 ExNode getFormRule()
           
 int getId()
           
 ExNode getJoinBreakExpression()
           
 WFProcess getProcess()
           
 ExNode getTitleExpression()
           
 WFProcess.Transition[] getTransitions()
           
 Variable getVariable(java.lang.String name)
          Get the declaration of a variable by name.
 Variable[] getVariables()
           
 boolean isAndJoin()
           
 boolean isAndSplit()
           
 boolean isAudit()
           
 boolean isEnd()
           
 boolean isHidden()
           
 boolean isStart()
           
 void setActions(WFProcess.Action[] actions)
           
 void setAndJoin(boolean b)
           
 void setAndSplit(boolean b)
           
 void setAudit(boolean b)
           
 void setComments(java.lang.String s)
           
 void setEditState(WFProcess.Editor e)
           
 void setFormRule(ExNode node)
           
 void setHidden(boolean b)
           
protected  void setId(int i)
           
 void setJoinBreakExpression(ExNode node)
           
 void setProcess(WFProcess p)
           
 void setTitleExpression(ExNode node)
           
 void setTransitions(WFProcess.Transition[] trans)
           
 void setVariables(Variable[] vars)
           
 void toXml(java.lang.StringBuffer b, int indent)
          Serialize into a buffer with optional indentation.
 
Methods inherited from class com.waveset.object.WorkflowComponent
addCommonAttributes, getLocation, getName, getParentComponent, parseCommonAttributes, setLocation, setName, setParentComponent
 
Methods inherited from class com.waveset.util.AbstractXmlObject
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT

public static final java.lang.String ELEMENT
See Also:
Constant Field Values

ATT_ID

public static final java.lang.String ATT_ID
See Also:
Constant Field Values

ATT_NAME

public static final java.lang.String ATT_NAME
See Also:
Constant Field Values

ATT_AUDIT

public static final java.lang.String ATT_AUDIT
See Also:
Constant Field Values

ATT_JOIN

public static final java.lang.String ATT_JOIN
See Also:
Constant Field Values

ATT_SPLIT

public static final java.lang.String ATT_SPLIT
See Also:
Constant Field Values

ATT_HIDDEN

public static final java.lang.String ATT_HIDDEN
See Also:
Constant Field Values

EL_REPORT_TITLE

public static final java.lang.String EL_REPORT_TITLE
See Also:
Constant Field Values

EL_BREAK

public static final java.lang.String EL_BREAK
See Also:
Constant Field Values

EL_COMMENTS

public static final java.lang.String EL_COMMENTS
See Also:
Constant Field Values

EL_FORM_RULE

public static final java.lang.String EL_FORM_RULE
See Also:
Constant Field Values
Constructor Detail

WFProcess.Activity

public WFProcess.Activity()

WFProcess.Activity

public WFProcess.Activity(org.w3c.dom.Element e)
                   throws WavesetException
Build an Activity from XML.

Method Detail

getElementName

public java.lang.String getElementName()
Description copied from class: AbstractXmlObject
Return the element name.

Specified by:
getElementName in interface XmlObject
Specified by:
getElementName in class AbstractXmlObject

getProcess

public WFProcess getProcess()

setProcess

public void setProcess(WFProcess p)

isAudit

public boolean isAudit()

setAudit

public void setAudit(boolean b)

getId

public int getId()

setId

protected void setId(int i)

isHidden

public boolean isHidden()

setHidden

public void setHidden(boolean b)

getVariables

public Variable[] getVariables()

setVariables

public void setVariables(Variable[] vars)

getActions

public WFProcess.Action[] getActions()

setActions

public void setActions(WFProcess.Action[] actions)

getTransitions

public WFProcess.Transition[] getTransitions()

setTransitions

public void setTransitions(WFProcess.Transition[] trans)

isAndJoin

public boolean isAndJoin()

setAndJoin

public void setAndJoin(boolean b)

isAndSplit

public boolean isAndSplit()

setAndSplit

public void setAndSplit(boolean b)

isStart

public boolean isStart()

isEnd

public boolean isEnd()

getAction

public WFProcess.Action getAction(int id)
Retrieve the action with a certain id. Currently can assume these are array indexes.


getVariable

public Variable getVariable(java.lang.String name)
Get the declaration of a variable by name. Used by VariableScope implementations over in the Case object, to see who defines the variable.

We're not expecting to have many of these, so we'll just do a linear search.


getTitleExpression

public ExNode getTitleExpression()

setTitleExpression

public void setTitleExpression(ExNode node)

getJoinBreakExpression

public ExNode getJoinBreakExpression()

setJoinBreakExpression

public void setJoinBreakExpression(ExNode node)

getEditState

public WFProcess.Editor getEditState()

setEditState

public void setEditState(WFProcess.Editor e)

setComments

public void setComments(java.lang.String s)

getComments

public java.lang.String getComments()

setFormRule

public void setFormRule(ExNode node)

getFormRule

public ExNode getFormRule()

getForm

public Form getForm()

toXml

public void toXml(java.lang.StringBuffer b,
                  int indent)
Description copied from class: AbstractXmlObject
Serialize into a buffer with optional indentation. This must be implemented by the subclass.

Specified by:
toXml in interface XmlObject
Specified by:
toXml in class AbstractXmlObject