org.yawlfoundation.yawl.worklet.rdr
Class RdrSet

java.lang.Object
  extended by org.yawlfoundation.yawl.worklet.rdr.RdrSet

public class RdrSet
extends Object

Maintains a set of RdrTrees for a particular specification, for each of the following purposes (potentially): - selection: set of trees, one for each worklet enabled task - exception: - spec pre-constraints: one RdrTree - spec post-constraints: one RdrTree - task pre-constraints: set of trees, one for each task in the specification - task post-constraints: set of trees, one for each task in the specification - task aborts: set of trees, one for each task in the specification - time-outs: set of trees, one for each task in the specification - unavailable resources: set of trees, one for each task in the specification - task constraint violations (i.e. while the task is executing): set of trees, one for each task in the specification - spec-level external triggers: one RdrTree - task-level external triggers: set of trees, one for each task in the specification

Author:
Michael Adams v0.8, 04-09/2006

Constructor Summary
RdrSet(String processName)
           
RdrSet(YSpecificationID specID)
          Default constructor
 
Method Summary
 void addTree(RdrTree tree, RuleType treeType)
           
 String dump()
           
 void fromXML(String xml)
           
protected  String getName()
           
protected  String getProcessName()
           
protected  YSpecificationID getSpecificationID()
           
 RdrTree getTree(RuleType treeType)
          Gets the previously loaded rdrTree for rules defined at the case-level
 RdrTree getTree(RuleType treeType, String taskName)
          Retrieves a specified RdrTree for the specified task
 boolean hasRules()
           
 void refresh()
          clears and rebuilds the RdrSet
 boolean save()
           
 String toString()
           
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RdrSet

public RdrSet(YSpecificationID specID)
Default constructor

Parameters:
specID - the specification this rule set belongs to

RdrSet

public RdrSet(String processName)
Method Detail

refresh

public void refresh()
clears and rebuilds the RdrSet


hasRules

public boolean hasRules()
Returns:
true if this spec's ruleset is not empty

getTree

public RdrTree getTree(RuleType treeType)
Gets the previously loaded rdrTree for rules defined at the case-level

Parameters:
treeType - which set of rules are required
Returns:
the specified rule tree

addTree

public void addTree(RdrTree tree,
                    RuleType treeType)

getTree

public RdrTree getTree(RuleType treeType,
                       String taskName)
Retrieves a specified RdrTree for the specified task

Parameters:
treeType - - the tree exception type
taskName - - the task the tree represents
Returns:
the RDRTree for the specified spec and task

save

public boolean save()

toXML

public String toXML()

getName

protected String getName()

getProcessName

protected String getProcessName()

getSpecificationID

protected YSpecificationID getSpecificationID()

toString

public String toString()
Overrides:
toString in class Object

dump

public String dump()

fromXML

public void fromXML(String xml)


Copyright © 2004-2012 The YAWL Foundation.