org.openarchitectureware.workflow.container
Class ConditionalComponent

java.lang.Object
  extended by org.openarchitectureware.workflow.lib.AbstractWorkflowComponent
      extended by org.openarchitectureware.workflow.container.CompositeComponent
          extended by org.openarchitectureware.workflow.container.ConditionalComponent
All Implemented Interfaces:
WorkflowConditional, WorkflowComponent, WorkflowComponentWithID
Direct Known Subclasses:
FeatureComponent, IfComponent

public abstract class ConditionalComponent
extends CompositeComponent
implements WorkflowConditional


Field Summary
 
Fields inherited from class org.openarchitectureware.workflow.container.CompositeComponent
components, log
 
Constructor Summary
ConditionalComponent(java.lang.String name)
           
 
Method Summary
 void invoke(WorkflowContext ctx, ProgressMonitor monitor, Issues issues)
          Dispatches the invocation to all aggregated components.
 void setElse(CompositeComponent comp)
           
 
Methods inherited from class org.openarchitectureware.workflow.container.CompositeComponent
addBean, addCartridge, addComponent, addFeature, addIf, checkConfiguration, getComponentName, getComponents, getContainer, getId, getLocation, getLogMessage, getName, getOwnLocation, getResource, put, setContainer, setId, setLocation, setOwnLocation, setResource
 
Methods inherited from class org.openarchitectureware.workflow.lib.AbstractWorkflowComponent
checkRequiredConfigProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openarchitectureware.workflow.container.WorkflowConditional
evaluate
 

Constructor Detail

ConditionalComponent

public ConditionalComponent(java.lang.String name)
Method Detail

setElse

public void setElse(CompositeComponent comp)

invoke

public void invoke(WorkflowContext ctx,
                   ProgressMonitor monitor,
                   Issues issues)
Dispatches the invocation to all aggregated components.

Specified by:
invoke in interface WorkflowComponent
Overrides:
invoke in class CompositeComponent
Parameters:
ctx - the current workflow context
monitor - implementors should provide some feedback about the progress using this monitor
issues - facility for reporting possible issues that occur during invocation
See Also:
WorkflowComponent.invoke(org.openarchitectureware.workflow.WorkflowContext, org.openarchitectureware.workflow.monitor.ProgressMonitor, org.openarchitectureware.workflow.issues.Issues)