org.shiwa.fgi.agwl2iwir.misc
Class Cleaner

java.lang.Object
  extended by org.shiwa.fgi.agwl2iwir.misc.Cleaner

public class Cleaner
extends java.lang.Object


Constructor Summary
Cleaner()
           
 
Method Summary
static org.shiwa.fgi.iwir.AbstractTask clean(org.shiwa.fgi.iwir.AbstractTask task, org.askalon.agwl.cgwd.activity.CGWDWorkflow agwlWorkflow)
          Cleans the task from things left over by the translation.
It removes properties used for translation and eventually the global task if it can be omitted.
static org.askalon.agwl.cgwd.activity.ActivityBlock skipActivities(org.askalon.agwl.cgwd.activity.GenericActivity activity)
          Skips all activities that are allowed to be omitted.
Skips recursively DAGActivity, DAGNode, SequenceActivity and ParallelActivity.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cleaner

public Cleaner()
Method Detail

skipActivities

public static org.askalon.agwl.cgwd.activity.ActivityBlock skipActivities(org.askalon.agwl.cgwd.activity.GenericActivity activity)
Skips all activities that are allowed to be omitted.
Skips recursively DAGActivity, DAGNode, SequenceActivity and ParallelActivity. Stops at every other Activity and returns an ActivityBlock of those remaining activities.
If withControlLinks in the AGWLTranslator is set to true it also stores some properties at the activities to detect control links later on.

Parameters:
activity - root activity
Returns:
ActivityBlock of activities that are not allowed to omit
Throws:
TranslationException - if a predecessor of a DAGNode of a DAGActivity is neither another DAGNode nor the DAGActivity itself

clean

public static org.shiwa.fgi.iwir.AbstractTask clean(org.shiwa.fgi.iwir.AbstractTask task,
                                                    org.askalon.agwl.cgwd.activity.CGWDWorkflow agwlWorkflow)
Cleans the task from things left over by the translation.
It removes properties used for translation and eventually the global task if it can be omitted.

Parameters:
task - root task to be cleaned