org.eclipse.emf.mwe.ewm.workflow
Class WorkflowCompositeComponent

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.mwe.ewm.workflow.WorkflowComponent
                  extended by org.eclipse.emf.mwe.ewm.workflow.WorkflowCompositeComponent
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject

public class WorkflowCompositeComponent
extends WorkflowComponent

A representation of the model object 'Workflow Composite Component'. A composite may reference parameters of it's children. This allows the composite to be treated as a "black box", or as a single, complex component. A composite orchestration strategy must be specified for each composite instance.

The following features are supported:

See Also:
WorkflowPackage.getWorkflowCompositeComponent()
EMF generated code
EMF model element
kind="class"

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  org.eclipse.emf.common.util.EList<WorkflowComponent> components
          The cached value of the 'Components' containment reference list.
protected  WorkflowCompositeOrchestrationStrategy compositeOrchestrationStrategy
          The cached value of the 'Composite Orchestration Strategy' containment reference.
protected  org.eclipse.emf.common.util.EList<WorkflowParameterConnection> connections
          The cached value of the 'Connections' containment reference list.
protected  org.eclipse.emf.common.util.EList<WorkflowParameter> parameters
          The cached value of the 'Parameters' reference list.
protected  WorkflowStateResolutionStrategy stateResolutionStrategy
          The cached value of the 'State Resolution Strategy' containment reference.
 
Fields inherited from class org.eclipse.emf.mwe.ewm.workflow.WorkflowComponent
componentOrchestrationStrategy, description, DESCRIPTION_EDEFAULT, name, NAME_EDEFAULT, type, TYPE_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected WorkflowCompositeComponent()
           
 
Method Summary
 void accept(IWorkflowVisitor visitor)
          Calls visitor.visitComposite() with the instance of this class.
 org.eclipse.emf.common.notify.NotificationChain basicSetCompositeOrchestrationStrategy(WorkflowCompositeOrchestrationStrategy newCompositeOrchestrationStrategy, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain basicSetStateResolutionStrategy(WorkflowStateResolutionStrategy newStateResolutionStrategy, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 org.eclipse.emf.common.util.EList<WorkflowComponent> getComponents()
          Returns the value of the 'Components' containment reference list.
 WorkflowCompositeOrchestrationStrategy getCompositeOrchestrationStrategy()
          Returns the value of the 'Composite Orchestration Strategy' containment reference.
 org.eclipse.emf.common.util.EList<WorkflowParameterConnection> getConnections()
          Returns the value of the 'Connections' containment reference list.
 org.eclipse.emf.common.util.EList<WorkflowParameter> getParameters()
          Returns the value of the 'Parameters' reference list.
 WorkflowStateResolutionStrategy getStateResolutionStrategy()
          Returns the value of the 'State Resolution Strategy' containment reference.
 WorkflowState run(WorkflowContext context)
          Runs each of the composite's children using the supplied composite orchestration strategy.
 void setCompositeOrchestrationStrategy(WorkflowCompositeOrchestrationStrategy newCompositeOrchestrationStrategy)
          Sets the value of the 'Composite Orchestration Strategy' containment reference.
 void setStateResolutionStrategy(WorkflowStateResolutionStrategy newStateResolutionStrategy)
          Sets the value of the 'State Resolution Strategy' containment reference.
 
Methods inherited from class org.eclipse.emf.mwe.ewm.workflow.WorkflowComponent
basicSetComponentOrchestrationStrategy, getComponentOrchestrationStrategy, getDescription, getName, getType, setComponentOrchestrationStrategy, setDescription, setName, setType, start, toString
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

components

protected org.eclipse.emf.common.util.EList<WorkflowComponent> components
The cached value of the 'Components' containment reference list.

See Also:
getComponents()
EMF generated code
EMF ordered

parameters

protected org.eclipse.emf.common.util.EList<WorkflowParameter> parameters
The cached value of the 'Parameters' reference list.

See Also:
getParameters()
EMF generated code
EMF ordered

compositeOrchestrationStrategy

protected WorkflowCompositeOrchestrationStrategy compositeOrchestrationStrategy
The cached value of the 'Composite Orchestration Strategy' containment reference.

See Also:
getCompositeOrchestrationStrategy()
EMF generated code
EMF ordered

connections

protected org.eclipse.emf.common.util.EList<WorkflowParameterConnection> connections
The cached value of the 'Connections' containment reference list.

See Also:
getConnections()
EMF generated code
EMF ordered

stateResolutionStrategy

protected WorkflowStateResolutionStrategy stateResolutionStrategy
The cached value of the 'State Resolution Strategy' containment reference.

See Also:
getStateResolutionStrategy()
EMF generated code
EMF ordered
Constructor Detail

WorkflowCompositeComponent

protected WorkflowCompositeComponent()

EMF generated code
Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class WorkflowComponent
EMF generated code

getComponents

public org.eclipse.emf.common.util.EList<WorkflowComponent> getComponents()
Returns the value of the 'Components' containment reference list. The list contents are of type WorkflowComponent.

If the meaning of the 'Components' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Components' containment reference list.
See Also:
WorkflowPackage.getWorkflowCompositeComponent_Components()
EMF generated code
EMF model element
containment="true"

getParameters

public org.eclipse.emf.common.util.EList<WorkflowParameter> getParameters()
Returns the value of the 'Parameters' reference list. The list contents are of type WorkflowParameter.

If the meaning of the 'Parameters' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Parameters' reference list.
See Also:
WorkflowPackage.getWorkflowCompositeComponent_Parameters()
EMF generated code
EMF model element

getCompositeOrchestrationStrategy

public WorkflowCompositeOrchestrationStrategy getCompositeOrchestrationStrategy()
Returns the value of the 'Composite Orchestration Strategy' containment reference.

If the meaning of the 'Composite Orchestration Strategy' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Composite Orchestration Strategy' containment reference.
See Also:
setCompositeOrchestrationStrategy(WorkflowCompositeOrchestrationStrategy), WorkflowPackage.getWorkflowCompositeComponent_CompositeOrchestrationStrategy()
EMF generated code
EMF model element
containment="true" required="true"

basicSetCompositeOrchestrationStrategy

public org.eclipse.emf.common.notify.NotificationChain basicSetCompositeOrchestrationStrategy(WorkflowCompositeOrchestrationStrategy newCompositeOrchestrationStrategy,
                                                                                              org.eclipse.emf.common.notify.NotificationChain msgs)

EMF generated code

setCompositeOrchestrationStrategy

public void setCompositeOrchestrationStrategy(WorkflowCompositeOrchestrationStrategy newCompositeOrchestrationStrategy)
Sets the value of the 'Composite Orchestration Strategy' containment reference.

Parameters:
value - the new value of the 'Composite Orchestration Strategy' containment reference.
See Also:
getCompositeOrchestrationStrategy()
EMF generated code

getConnections

public org.eclipse.emf.common.util.EList<WorkflowParameterConnection> getConnections()
Returns the value of the 'Connections' containment reference list. The list contents are of type WorkflowParameterConnection.

If the meaning of the 'Connections' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Connections' containment reference list.
See Also:
WorkflowPackage.getWorkflowCompositeComponent_Connections()
EMF generated code
EMF model element
containment="true"

getStateResolutionStrategy

public WorkflowStateResolutionStrategy getStateResolutionStrategy()
Returns the value of the 'State Resolution Strategy' containment reference.

If the meaning of the 'State Resolution Strategy' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'State Resolution Strategy' containment reference.
See Also:
setStateResolutionStrategy(WorkflowStateResolutionStrategy), WorkflowPackage.getWorkflowCompositeComponent_StateResolutionStrategy()
EMF generated code
EMF model element
containment="true" required="true"

basicSetStateResolutionStrategy

public org.eclipse.emf.common.notify.NotificationChain basicSetStateResolutionStrategy(WorkflowStateResolutionStrategy newStateResolutionStrategy,
                                                                                       org.eclipse.emf.common.notify.NotificationChain msgs)

EMF generated code

setStateResolutionStrategy

public void setStateResolutionStrategy(WorkflowStateResolutionStrategy newStateResolutionStrategy)
Sets the value of the 'State Resolution Strategy' containment reference.

Parameters:
value - the new value of the 'State Resolution Strategy' containment reference.
See Also:
getStateResolutionStrategy()
EMF generated code

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseRemove in class WorkflowComponent
EMF generated code

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class WorkflowComponent
EMF generated code

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class WorkflowComponent
EMF generated code

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class WorkflowComponent
EMF generated code

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class WorkflowComponent
EMF generated code

accept

public void accept(IWorkflowVisitor visitor)
Calls visitor.visitComposite() with the instance of this class.

Specified by:
accept in class WorkflowComponent

run

public WorkflowState run(WorkflowContext context)
                  throws WorkflowRuntimeException
Runs each of the composite's children using the supplied composite orchestration strategy.

Specified by:
run in class WorkflowComponent
Throws:
WorkflowRuntimeException