Class BPMN2Profile.MultiInstanceLoopCharacteristicsStereotype
java.lang.Object
com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
com.nomagic.magicdraw.cbm.profiles.BPMN2Profile.MultiInstanceLoopCharacteristicsStereotype
- Enclosing class:
- BPMN2Profile
public static class BPMN2Profile.MultiInstanceLoopCharacteristicsStereotype
extends ProfileImplementation.StereotypeWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe attribute behavior acts as a shortcut for specifying when events shall be thrown from an Activity instance that is about to complete.static final StringThis attribute defines a Boolean Expression that when evaluated to true, cancels the remaining Activity instances and produces a token.static final StringControls when and which Events are thrown in case behavior is set to complex.static final StringA Data Input, representing for every Activity instance the single item of the collection stored in the loopDataInput.static final StringThis attribute is a flag that controls whether the Activity instances will execute sequentially or in parallel.static final StringA numeric Expression that controls the number of Activity instances that will be created.static final StringThe LoopCounter attribute is used at runtime to count the number of loops and is automatically updated by the process engine.static final StringA reference to a DataInput which is part of the Activity s InputOutputSpecification.static final StringThis ItemAwareElement specifies the collection of data, which will be produced by the multi-instance.static final StringThe EventDefinition which is thrown when the behavior is set to none and an internal Activity instance has completedstatic final StringThis attribute is provided for the outer instance of the Multi-Instance Activity only.static final StringThis attribute is provided for the outer instance of the Multi-Instance Activity only.static final Stringstatic final StringThis attribute is provided for the outer instance of the Multi-Instance Activity only.static final StringThe EventDefinition which is thrown when behavior is set to one and the first internal Activity instance has completed.static final StringA Data Output, representing for every Activity instance the single item of the collection stored in the loopDataOutput.static final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComplexBehaviorDefintion(Element element, Element value) protected voidclear()voidclearBehavior(Element element) voidclearCompletionCondition(Element element) voidclearComplexBehaviorDefintion(Element element) voidclearInputDataItem(Element element) voidclearIsSequential(Element element) voidclearLoopCardinality(Element element) voidclearLoopCounter(Element element) voidclearLoopDataInputRef(Element element) voidclearLoopDataOutputRef(Element element) voidclearNoneBehaviorEventRef(Element element) voidclearNumberOfActiveInstances(Element element) voidclearNumberOfCompletedInstances(Element element) voidclearNumberOfInstances(Element element) voidclearNumberOfTerminatedInstances(Element element) voidclearOneBehaviorEventRef(Element element) voidclearOutputDataItem(Element element) getBehavior(Element element) getCompletionCondition(Element element) getComplexBehaviorDefintion(Element element) getInputDataItem(Element element) getLoopCardinality(Element element) getLoopCounter(Element element) getLoopDataInputRef(Element element) getLoopDataOutputRef(Element element) getNoneBehaviorEventRef(Element element) getNumberOfActiveInstances(Element element) getNumberOfCompletedInstances(Element element) getNumberOfInstances(Element element) getNumberOfTerminatedInstances(Element element) getOneBehaviorEventRef(Element element) getOutputDataItem(Element element) Returns stereotype for this wrapper.booleanstatic booleanisInstance(Element element) isIsSequential(Element element) voidremoveComplexBehaviorDefintion(Element element, Element value) voidsetBehavior(Element element, BPMN2Profile.MultiInstanceBehaviorEnum value) voidsetCompletionCondition(Element element, String value) voidsetComplexBehaviorDefintion(Element element, Collection<? extends Element> value) voidsetInputDataItem(Element element, Element value) voidsetIsSequential(Element element, Boolean value) voidsetLoopCardinality(Element element, String value) voidsetLoopCounter(Element element, Integer value) voidsetLoopDataInputRef(Element element, Element value) voidsetLoopDataOutputRef(Element element, Element value) voidsetNoneBehaviorEventRef(Element element, Element value) voidsetNumberOfActiveInstances(Element element, Integer value) voidsetNumberOfCompletedInstances(Element element, Integer value) voidsetNumberOfInstances(Element element, Integer value) voidsetNumberOfTerminatedInstances(Element element, Integer value) voidsetOneBehaviorEventRef(Element element, Element value) voidsetOutputDataItem(Element element, Element value) Methods inherited from class com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
apply, isDerivedStereotype, isSameOrDerivedStereotype, unApply
-
Field Details
-
STEREOTYPE_NAME
- See Also:
-
BEHAVIOR
The attribute behavior acts as a shortcut for specifying when events shall be thrown from an Activity instance that is about to complete. It can assume values of none, one, all, and complex, resulting in the following behavior: - None: the EventDefinition which is associated through the noneEvent association will be thrown for each instance completing; - One: the EventDefinition referenced through the oneEvent association will be thrown upon the first instance completing; - All: no Event is ever thrown; a token is produced after completion of all instances - Complex: the complexBehaviorDefinitions are consulted to determine if and which Events to throw. For the behaviors of none and one, a default SignalEventDefinition will be thrown which automatically carries the current runtime attributes of the MI Activity. Any thrown Events can be caught by boundary Events on the Multi-Instance Activity.- See Also:
-
COMPLETIONCONDITION
This attribute defines a Boolean Expression that when evaluated to true, cancels the remaining Activity instances and produces a token.- See Also:
-
COMPLEXBEHAVIORDEFINTION
Controls when and which Events are thrown in case behavior is set to complex.- See Also:
-
INPUTDATAITEM
A Data Input, representing for every Activity instance the single item of the collection stored in the loopDataInput. This Data Input can be the source of DataInputAssociation to a data input of the Activity s InputOutputSpecification. The type of this Data Input MUST the scalar of the type defined for the loopDataInput.- See Also:
-
ISSEQUENTIAL
This attribute is a flag that controls whether the Activity instances will execute sequentially or in parallel.- See Also:
-
LOOPCARDINALITY
A numeric Expression that controls the number of Activity instances that will be created. This Expression MUST evaluate to an integer. This may be underspecified, meaning that the modeler may simply document the condition. In such a case the loop cannot be formally executed. In order to initialize a valid multi-instance, either the loopCardinality Expression or the loopDataInput MUST be specified.- See Also:
-
LOOPCOUNTER
The LoopCounter attribute is used at runtime to count the number of loops and is automatically updated by the process engine.- See Also:
-
LOOPDATAINPUTREF
A reference to a DataInput which is part of the Activity s InputOutputSpecification. This DataInput is used to determine the number of Activity instances, one Activity instance per item in the collection of data stored in that DataInput element. In order to initialize a valid multi-instance, either the loopCardinality Expression or the loopDataInput MUST be specified.- See Also:
-
LOOPDATAOUTPUTREF
This ItemAwareElement specifies the collection of data, which will be produced by the multi-instance. For Tasks it is a reference to a Data Output which is part of the Activity s InputOutputSpecification. For Sub-Processes it is a reference to a collection-valued Data Object in the context that is visible to the Sub-Processes.- See Also:
-
NONEBEHAVIOREVENTREF
The EventDefinition which is thrown when the behavior is set to none and an internal Activity instance has completed- See Also:
-
NUMBEROFACTIVEINSTANCES
This attribute is provided for the outer instance of the Multi-Instance Activity only. This attribute contains the number of currently active inner instances for the Multi-Instance Activity. In case of a sequential Multi-Instance Activity, this value can t be greater than 1. For parallel Multi-Instance Activities, this value can t be greater than the value contained in numberOfInstances.- See Also:
-
NUMBEROFCOMPLETEDINSTANCES
This attribute is provided for the outer instance of the Multi-Instance Activity only. This attribute contains the number of already completed inner instances for the Multi-Instance Activity.- See Also:
-
NUMBEROFINSTANCES
- See Also:
-
NUMBEROFTERMINATEDINSTANCES
This attribute is provided for the outer instance of the Multi-Instance Activity only. This attribute contains the number of terminated inner instances for the Multi-Instance Activity. The sum of numberOfTerminatedInstances, numberOfCompletedInstances, and numberOfActiveInstances always sums up to numberOfInstances.- See Also:
-
ONEBEHAVIOREVENTREF
The EventDefinition which is thrown when behavior is set to one and the first internal Activity instance has completed.- See Also:
-
OUTPUTDATAITEM
A Data Output, representing for every Activity instance the single item of the collection stored in the loopDataOutput. This Data Output can be the target of DataOutputAssociation to a data output of the Activity s InputOutputSpecification. The type of this Data Output MUST the scalar of the type defined for the loopDataOutput.- See Also:
-
-
Constructor Details
-
MultiInstanceLoopCharacteristicsStereotype
-
-
Method Details
-
getStereotype
Description copied from class:ProfileImplementation.StereotypeWrapperReturns stereotype for this wrapper.- Specified by:
getStereotypein classProfileImplementation.StereotypeWrapper- Returns:
- stereotype
-
getBehaviorProperty
-
getCompletionConditionProperty
-
getComplexBehaviorDefintionProperty
-
getInputDataItemProperty
-
getIsSequentialProperty
-
getLoopCardinalityProperty
-
getLoopCounterProperty
-
getLoopDataInputRefProperty
-
getLoopDataOutputRefProperty
-
getNoneBehaviorEventRefProperty
-
getNumberOfActiveInstancesProperty
-
getNumberOfCompletedInstancesProperty
-
getNumberOfInstancesProperty
-
getNumberOfTerminatedInstancesProperty
-
getOneBehaviorEventRefProperty
-
getOutputDataItemProperty
-
setBehavior
public void setBehavior(Element element, @CheckForNull BPMN2Profile.MultiInstanceBehaviorEnum value) -
clearBehavior
-
getBehavior
-
setCompletionCondition
-
clearCompletionCondition
-
getCompletionCondition
-
setComplexBehaviorDefintion
public void setComplexBehaviorDefintion(Element element, @CheckForNull Collection<? extends Element> value) -
clearComplexBehaviorDefintion
-
addComplexBehaviorDefintion
-
removeComplexBehaviorDefintion
-
getComplexBehaviorDefintion
-
setInputDataItem
-
clearInputDataItem
-
getInputDataItem
-
setIsSequential
-
clearIsSequential
-
isIsSequential
-
setLoopCardinality
-
clearLoopCardinality
-
getLoopCardinality
-
setLoopCounter
-
clearLoopCounter
-
getLoopCounter
-
setLoopDataInputRef
-
clearLoopDataInputRef
-
getLoopDataInputRef
-
setLoopDataOutputRef
-
clearLoopDataOutputRef
-
getLoopDataOutputRef
-
setNoneBehaviorEventRef
-
clearNoneBehaviorEventRef
-
getNoneBehaviorEventRef
-
setNumberOfActiveInstances
-
clearNumberOfActiveInstances
-
getNumberOfActiveInstances
-
setNumberOfCompletedInstances
-
clearNumberOfCompletedInstances
-
getNumberOfCompletedInstances
-
setNumberOfInstances
-
clearNumberOfInstances
-
getNumberOfInstances
-
setNumberOfTerminatedInstances
-
clearNumberOfTerminatedInstances
-
getNumberOfTerminatedInstances
-
setOneBehaviorEventRef
-
clearOneBehaviorEventRef
-
getOneBehaviorEventRef
-
setOutputDataItem
-
clearOutputDataItem
-
getOutputDataItem
-
clear
protected void clear() -
is
-
isInstance
-