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
Modifier and TypeFieldDescriptionstatic final String
The attribute behavior acts as a shortcut for specifying when events shall be thrown from an Activity instance that is about to complete.static final String
This attribute defines a Boolean Expression that when evaluated to true, cancels the remaining Activity instances and produces a token.static final String
Controls when and which Events are thrown in case behavior is set to complex.static final String
A Data Input, representing for every Activity instance the single item of the collection stored in the loopDataInput.static final String
This attribute is a flag that controls whether the Activity instances will execute sequentially or in parallel.static final String
A numeric Expression that controls the number of Activity instances that will be created.static final String
The LoopCounter attribute is used at runtime to count the number of loops and is automatically updated by the process engine.static final String
A reference to a DataInput which is part of the Activity s InputOutputSpecification.static final String
This ItemAwareElement specifies the collection of data, which will be produced by the multi-instance.static final String
The EventDefinition which is thrown when the behavior is set to none and an internal Activity instance has completedstatic final String
This attribute is provided for the outer instance of the Multi-Instance Activity only.static final String
This attribute is provided for the outer instance of the Multi-Instance Activity only.static final String
static final String
This attribute is provided for the outer instance of the Multi-Instance Activity only.static final String
The EventDefinition which is thrown when behavior is set to one and the first internal Activity instance has completed.static final String
A Data Output, representing for every Activity instance the single item of the collection stored in the loopDataOutput.static final String
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComplexBehaviorDefintion
(Element element, Element value) protected void
clear()
void
clearBehavior
(Element element) void
clearCompletionCondition
(Element element) void
clearComplexBehaviorDefintion
(Element element) void
clearInputDataItem
(Element element) void
clearIsSequential
(Element element) void
clearLoopCardinality
(Element element) void
clearLoopCounter
(Element element) void
clearLoopDataInputRef
(Element element) void
clearLoopDataOutputRef
(Element element) void
clearNoneBehaviorEventRef
(Element element) void
clearNumberOfActiveInstances
(Element element) void
clearNumberOfCompletedInstances
(Element element) void
clearNumberOfInstances
(Element element) void
clearNumberOfTerminatedInstances
(Element element) void
clearOneBehaviorEventRef
(Element element) void
clearOutputDataItem
(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.boolean
static boolean
isInstance
(Element element) isIsSequential
(Element element) void
removeComplexBehaviorDefintion
(Element element, Element value) void
setBehavior
(Element element, BPMN2Profile.MultiInstanceBehaviorEnum value) void
setCompletionCondition
(Element element, String value) void
setComplexBehaviorDefintion
(Element element, Collection<? extends Element> value) void
setInputDataItem
(Element element, Element value) void
setIsSequential
(Element element, Boolean value) void
setLoopCardinality
(Element element, String value) void
setLoopCounter
(Element element, Integer value) void
setLoopDataInputRef
(Element element, Element value) void
setLoopDataOutputRef
(Element element, Element value) void
setNoneBehaviorEventRef
(Element element, Element value) void
setNumberOfActiveInstances
(Element element, Integer value) void
setNumberOfCompletedInstances
(Element element, Integer value) void
setNumberOfInstances
(Element element, Integer value) void
setNumberOfTerminatedInstances
(Element element, Integer value) void
setOneBehaviorEventRef
(Element element, Element value) void
setOutputDataItem
(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.StereotypeWrapper
Returns stereotype for this wrapper.- Specified by:
getStereotype
in 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
-