Rule¶
Fully qualified class name: DDICDIModels::DDICDILibrary::Classes::Process::Rule
Definition¶
A rule has a condition part and an action part. A rule takes the form of: If [Condition} Then [Action]. A rule belongs to a rule set which is a component of rule based scheduling performed by the processing agent
Examples¶
If Exists [InformationObject] Then Perform [Activity]
Diagram
Attributes
Name |
Inherited from |
Description |
Data Type |
Multiplicity |
Default value |
---|---|---|---|---|---|
identifier |
- own class - |
Identifier for objects requiring short- or long-lasting referencing and management. |
0..1 |
Associations
Direction |
Association |
Description |
Multiplicity of Rule |
Package of Other Class |
Other Class |
Multiplicity of other class |
Aggregation Kind |
Inherited from |
---|---|---|---|---|---|---|---|---|
from |
Rule hasPrecondition ConditionalControlLogic |
The condition part of a rule is associated with conditonal control logic. |
0..* |
- own package - |
0..* |
none |
- own class - |
|
to |
RuleSet has Rule |
A rule is a member of a rule set. |
0..* |
- own package - |
0..1 |
none |
- own class - |
Syntax representations / encodings
All syntax representations except the Canonical XMI are provided as reference points for specific implementations, or for use as defaults if sufficient in the form presented.
Fragment for the class Rule (entire model as XMI)
1<packagedElement xmlns:StandardProfile="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard"
2 xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML"
3 xmlns:xmi="http://www.omg.org/spec/XMI/20131001"
4 xmi:id="DDICDIModels-DDICDILibrary-Classes-Process-Rule"
5 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Rule"
6 xmi:type="uml:Class">
7 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Process-Rule-ownedComment"
8 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Rule-ownedComment"
9 xmi:type="uml:Comment">
10 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Process-Rule"/>
11 <body>Definition
12============
13A rule has a condition part and an action part. A rule takes the form of: If [Condition} Then [Action]. A rule belongs to a rule set which is a component of rule based scheduling performed by the processing agent
14
15Examples
16==========
17If Exists [InformationObject] Then Perform [Activity]</body>
18 </ownedComment>
19 <name>Rule</name>
20 <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Process-Rule-identifier"
21 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Rule-identifier"
22 xmi:type="uml:Property">
23 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Process-Rule-identifier-ownedComment"
24 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Rule-identifier-ownedComment"
25 xmi:type="uml:Comment">
26 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Process-Rule-identifier"/>
27 <body>Identifier for objects requiring short- or long-lasting referencing and management.</body>
28 </ownedComment>
29 <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Process-Rule-identifier-lowerValue"
30 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Rule-identifier-lowerValue"
31 xmi:type="uml:LiteralInteger"/>
32 <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Process-Rule-identifier-upperValue"
33 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Rule-identifier-upperValue"
34 xmi:type="uml:LiteralUnlimitedNatural">
35 <value>1</value>
36 </upperValue>
37 <name>identifier</name>
38 <isID>true</isID>
39 <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Identifier"/>
40 </ownedAttribute>
41 <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Process-Rule-ownedAttribute"
42 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Rule-ownedAttribute"
43 xmi:type="uml:Property">
44 <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Process-Rule-ownedAttribute-lowerValue"
45 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Rule-ownedAttribute-lowerValue"
46 xmi:type="uml:LiteralInteger"/>
47 <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Process-Rule-ownedAttribute-upperValue"
48 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Rule-ownedAttribute-upperValue"
49 xmi:type="uml:LiteralUnlimitedNatural">
50 <value>*</value>
51 </upperValue>
52 <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-Process-Rule_hasPrecondition_ConditionalControlLogic"/>
53 <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-Process-ConditionalControlLogic"/>
54 </ownedAttribute>
55</packagedElement>
Fragment for the class Rule (entire XML Schema)
1<xs:element name="Rule"
2 type="RuleXsdType"
3 xml:id="Rule">
4 <!-- based on the UML class DDICDIModels::DDICDILibrary::Classes::Process::Rule -->
5 <xs:annotation>
6 <xs:documentation>Definition
7 ============
8 A rule has a condition part and an action part. A rule takes the form of: If [Condition} Then [Action]. A rule belongs to a rule set which is a component of rule based scheduling performed by the processing agent
9
10 Examples
11 ==========
12 If Exists [InformationObject] Then Perform [Activity]</xs:documentation>
13 </xs:annotation>
14</xs:element>
15<xs:complexType name="RuleXsdType"
16 xml:id="RuleXsdType">
17 <xs:annotation>
18 <xs:documentation>Definition
19 ============
20 A rule has a condition part and an action part. A rule takes the form of: If [Condition} Then [Action]. A rule belongs to a rule set which is a component of rule based scheduling performed by the processing agent
21
22 Examples
23 ==========
24 If Exists [InformationObject] Then Perform [Activity]</xs:documentation>
25 </xs:annotation>
26 <xs:sequence>
27 <xs:element name="identifier"
28 type="IdentifierXsdType"
29 minOccurs="0"
30 maxOccurs="1"
31 xml:id="Rule-identifier">
32 <xs:annotation>
33 <xs:documentation>Identifier for objects requiring short- or long-lasting referencing and management.</xs:documentation>
34 </xs:annotation>
35 </xs:element>
36 <xs:element name="Rule_hasPrecondition_ConditionalControlLogic"
37 minOccurs="0"
38 maxOccurs="unbounded"
39 xml:id="Rule_hasPrecondition_ConditionalControlLogic">
40 <xs:annotation>
41 <xs:documentation>The condition part of a rule is associated with conditonal control logic.</xs:documentation>
42 </xs:annotation>
43 <xs:complexType>
44 <xs:complexContent>
45 <xs:restriction base="AssociationReferenceXsdType">
46 <xs:sequence>
47 <xs:element name="ddiReference"
48 type="InternationalRegistrationDataIdentifierXsdType"
49 minOccurs="0"
50 maxOccurs="1"
51 xml:id="Rule_hasPrecondition_ConditionalControlLogic-ddiReference"/>
52 <xs:element name="validType"
53 minOccurs="0"
54 maxOccurs="unbounded"
55 xml:id="Rule_hasPrecondition_ConditionalControlLogic-validType">
56 <xs:simpleType>
57 <xs:restriction base="xs:NMTOKEN">
58 <xs:enumeration value="ConditionalControlLogic"/>
59 </xs:restriction>
60 </xs:simpleType>
61 </xs:element>
62 </xs:sequence>
63 </xs:restriction>
64 </xs:complexContent>
65 </xs:complexType>
66 </xs:element>
67 </xs:sequence>
68</xs:complexType>
Fragment for the class Rule (main ontology)
1# class Rule
2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Process::Rule
3cdi:Rule
4 a rdfs:Class, owl:Class, ucmis:Class;
5 rdfs:label "Rule";
6 rdfs:comment "Definition \n============ \nA rule has a condition part and an action part. A rule takes the form of: If [Condition} Then [Action]. A rule belongs to a rule set which is a component of rule based scheduling performed by the processing agent \n\nExamples \n========== \nIf Exists [InformationObject] Then Perform [Activity]"@en;
7
8.
9
10cdi:Rule-identifier
11 a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
12 rdfs:label "identifier";
13 rdfs:comment "Identifier for objects requiring short- or long-lasting referencing and management."@en;
14 rdfs:domain cdi:Rule;
15 rdfs:range cdi:Identifier;
16.
17
18
19cdi:Rule_hasPrecondition_ConditionalControlLogic
20 a rdf:Property, owl:ObjectProperty, ucmis:Association;
21 # ASSOCIATION
22 rdfs:label "hasPrecondition";
23 skos:altLabel "Rule_hasPrecondition_ConditionalControlLogic";
24 rdfs:comment "The condition part of a rule is associated with conditonal control logic."@en;
25 rdfs:domain cdi:Rule;
26 rdfs:range cdi:ConditionalControlLogic;
27.
Fragment for the class Rule (main JSON-LD)
1{
2 "@context": [
3 {
4 "cdi": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/",
5 "xsd": "http://www.w3.org/2001/XMLSchema#",
6 "Rule": "cdi:Rule",
7 "identifier": {
8 "@id": "cdi:Rule-identifier",
9 "@type": "@id",
10 "@context": "Identifier.jsonld"
11 },
12
13 "hasPrecondition": {
14 "@id": "cdi:Rule_hasPrecondition_ConditionalControlLogic",
15 "@type": "@id" },
16 "has_OF_RuleSet": {
17 "@reverse": "cdi:RuleSet_has_Rule",
18 "@type": "@id"
19 },
20 " comment ": "tag:json-should-support-trailing-commas"
21 }
22 ],
23 "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2024-03-16 23:40:11.",
24 "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::Classes::Process::Rule"
25}