urbanisation-si.com

urbanisation-si.com

Le métamodèle Eclipse Ecore DMN ( Decision Model and Notation ) : comment concevoir son propre outil de modélisation DMN ? [2/4]

Pour créer un outil de modélisation pour un langage de modélisation, il faut son métamodèle qui n'est plus ni moins qu'un diagramme de classe UML décrivant les éléments de la notation.

 

DMN-Eclipse-Ecore.PNG

 

   

Si vous avez manqué le début :

 

DMN ( Decision Model and Notation ) : comment concevoir son propre outil de modélisation DMN ? [1/4]

 

L'outil ( méta outil ? ) servant à créer l'outil de modélisation DMN est Obeo Designer Community. Il s'agit d'une plateforme Eclipse intégrant toute une flopée de plugins parmi lesquels Sirius, Eclipse Modeling Project, Acceleo, …

 

Le métamodèle est un diagramme de classe UML qui doit lui aussi ( heureusement il s'auto décrit ) être spécifié par un métamétamodéle représentant les concepts de base comme une classe, un attribut, une relation, …

Nous allons utiliser EMF Ecore ( Eclipse Modeling Framework ) qui est le standard de l'industrie par opposition à celui de la norme de l'OMG ( MOF Meta Object Facility ) encore pauvre en terme d'implémentations.

 

Si des choses vous ont échappées dans ce qui précède, pas de panique, nous avons consacré une série d'articles pédagogiques à ces sujets.

 

Articles sur IDM ( Ingénierie Dirigée par les Modèles ) :

  1. Les recherches en urbanisation du Système d'Information : le Model-Driven Engineering (MDE) encore un acronyme à la mode ?
     
  2. Model-Driven Engineering (MDE) : modèles, métamodèles, métamétamodèles, méta... ?
     
  3. Ingénierie Dirigée par les Modèles (IDM) : un exemple vaut mieux qu'un long discours
     

Articles sur Eclipse Ecore :
 

  1. Ingénierie Dirigée par les Modèles (IDM) : tutoriel ATL (ATLAS Transformation Language), concevez les métamodèles avant de passer aux choses sérieuses
     
  2. Eclipse Modeling Framework (EMF) : revoyons les fondamentaux
     
  3. Ingénierie Dirigée par les Modèles (IDM) : tutoriel Eclipse Ecore, le corps à corps avec les méta modèles
     

Articles sur l'installation de Obeo Designer Community ( Sirius ) :
 

 

Mode Opératoire

 

1)

Une fois Obeo Designer Community installé, sélectionner la perspective "Modeling", puis créer un  "Ecore Modeling Project" 

File - New - Ecore Modeling Project - nommer le projet, par ex. : com.urbanisationSI.dmn.dmnEcore - Finish

 

2)

Copier le contenu du fichier Ecore en annexe à la fin de cet article dans le fichier "dmnEcore.ecore"

Dérouler le projet - model - clic droit sur dmnEcore.ecore - Open with - Text Editor - remplacer la totalité du contenu par celui de l'annexe - Sauvegarder CTRL S

Un nouveau package DMN apparaît sous le fichier ecore avec tous les éléments du métamodèle DMN.

 

3)

Pour avoir le diagramme, sous le package DMN, double cliquer le diagramme dmnEcore, l'onglet indique "Double click to initialize" - double cliquer - le diagramme complet apparaît.

 

4)

Un certain effort est à fournir pour réarranger et organiser le diagramme.

La bonne nouvelle : Obeo Designer Community offre dans le coin supérieur gauche du diagramme des stratégies d'arrangement : "Arrange All, ..."

Vous pouvez aussi tout sélectionner : "Select All" puis "Arrange Selection" et/ou "Align Left, Right, ..." et/ou "Distribute Gaps Horizontally, Center, ..."

La mauvaise nouvelle : malgré tout cela, vous devrez manuellement réorganiser le diagramme si vous désirez qu'il soit lisible.

Rassurez-vous ce travail fastidieux de réarrangement du diagramme n'est pas nécessaire pour la conception de notre outil de modélisation DMN.

 

5)

Pour tester la création d'instances de "Decision" et autres éléments du métamodèle DMN, nous devons créer le plugin de l'éditeur Ecore :

Clic droit dans le diagramme dmnEcore - Generate - All

3 plugins sont générés, cliquer sur com.urbanisationSI.dmn.dmnEcore.edit - clic droit - Run As - Run Configuration - cliquer Eclipse Application - clic droit - New - Name = DMN Ecore - Apply - Run - éventuellement sauvegarder ce qui doit l'être - puis une nouvelle instance d'Obeo Designer se lance.

 

6)

Dans la nouvelle fenêtre "runtime-DMNEcore - Modeling - Obeo Designer Community", fermer l'onglet "Welcome"

File - New - Modeling Project - Name =  com.urbanisationSI.dmn.dmnEcore.demandeDePret - Finish

Cliquer sur le projet créé - clic droit - New - Other - dans la fenêtre Wizard, ouvrir "Example EMF Model Creation Wizards" - cliquer "DmnEcore Model" - Next - File Name = demandeDePret.dmnecore - Next - Model Object = sélectionner dans la liste "Definitions" qui correspond à un conteneur de haut niveau dans le métamodèle DMN et qui permet de créer à l'intérieur des "Decision", "BusinessKnowledgeModel", "InputDate", "KnowledgeSource", ...

 

7)

Sous le projet, clic droit sur "demandeDePret.dmnecore" - Open with - DmnEcore Model Editor -  Dans le nouvel onglet ouvert, déployer et sélectionner la racine "Definitions"

Clic droit - Nex Child - Decision

Nous allons suivre l'exemple complet de DMN de l'article :

 

Dans la vue Properties, Name = Strategy 

De la même manière, créer par exemple,  d'autres objet de type Decision : BureauCallType, Eligibility, PreBureauAffordability, RequiredMonthlyInstallment

Créer des objets de type BusinessKnowledgeModel : BureauCallTypeTable, EligibilityRules, ...

Créer des objets de type KnowledgeSource : RiskManager, ProductSpecification

Créer des objets de type InputData : ApplicantData, RequestedProduct

 

8) 

Pour créer les relations, par exemple de type "InformationRequirement" entre Decision -> Decision ou InputData -> Decision, sélectionner Decision Strategy - clic droit - New Child - sélectionner InformationRequirement

Cliquer sur InformationRequirement créé - dans la vue Properties - Required Decision = sélectionner dans la liste Decision BureauCallType

Répéter pour créer un autre InformationRequirement lié à Decision Eligibility

 

De la même manière créer les relations de type KnowledgeRequirement entre BusinessKnowledgeModel -> Decision

Clic droit sur Decision BureauCallType - KnowledgeRequirement - dans Properties, Required Knowledge = Business Knowledge Model BureauCallTypeTable

Idem pour Decision Eligibility, Required Knowledge = Business Knowledge Model EligibilityRules

 

Idem pour les relations de type AuthorityRequirement, entre :

Knowledge Source RiskManager -> Business Knowledge Model BureauCallTypeTable

Knowledge Source ProductSpecification -> Business Knowledge Model EligibilityRules

 

Idem pour les relations de type "InformationRequirement" entre :

Input Data ApplicantData  -> Decision PreBureauAffordability

Input Data RequestedProduct-> Decision RequiredMonthlyInstallment

 

Voici le résultat en guise de conclusion de cette étape :

 

DMN-Eclipse-Ecore-demande-de-pret.PNG

 

Le prochain article s'intéresse ce à quoi Obeo Designer Community est fait c'est à dire à la création des artefacts visuels et aux règles de modélisation avec DMN et on aura ainsi notre outil DMN. 

 

Pour voir la suite :

 

Tutorial Obeo Designer Community : comment concevoir son propre outil de modélisation DMN ? [3/4]

 

Rhona Maxwel

@rhona_helena

 

"La patience est un arbre dont la racine est amère et les fruits très doux."

Proverbe persan

 

 

Articles conseillés :

 

Didacticiel ( tutoriel ) Eclipse Sirius ( Obeo Designer Community ) : le digne successeur de GMF le framework le plus complexe du monde !

 

Didacticiel ( tutoriel ) Eclipse Sirius ( Obeo Designer Community ) : on peaufine l'éditeur de diagramme

 

  

Annexe

Fichier DMN Ecore

 

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="DMN" nsURI="http://www.omg.org/spec/DMN/20130901" nsPrefix="DMN">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Author:csma.&#xA;Created:8/4/13 9:11 PM.&#xA;Title:.&#xA;Comment:.&#xA;"/>
</eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="AuthorityRequirement">
<eStructuralFeatures xsi:type="ecore:EReference" name="requiredAuthority" ordered="false"
eType="#//KnowledgeSource" eOpposite="#//KnowledgeSource/requiresAuthority"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="requiredInput" ordered="false"
eType="#//InputData" eOpposite="#//InputData/requiresAuthority"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="decision" ordered="false"
eType="#//Decision" eOpposite="#//Decision/authorityRequirement"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="bkm" ordered="false" eType="#//BusinessKnowledgeModel"
eOpposite="#//BusinessKnowledgeModel/authorityRequirement"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="requiredDecision" ordered="false"
eType="#//Decision" eOpposite="#//Decision/requiresAuthority"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="knowledgeSource" ordered="false"
eType="#//KnowledgeSource" eOpposite="#//KnowledgeSource/authorityRequirement"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="KnowledgeSource" eSuperTypes="#//DRGElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="owner" ordered="false"
eType="#//OrganisationalUnit"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="authorityRequirement" ordered="false"
upperBound="-1" eType="#//AuthorityRequirement" containment="true" eOpposite="#//AuthorityRequirement/knowledgeSource"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="locationURI" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="requiresAuthority" ordered="false"
upperBound="-1" eType="#//AuthorityRequirement" eOpposite="#//AuthorityRequirement/requiredAuthority"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DRGElement" abstract="true" eSuperTypes="#//DMNElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="definitions" ordered="false"
lowerBound="1" eType="#//Definitions" eOpposite="#//Definitions/drgElement"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="elementCollection" ordered="false"
upperBound="-1" eType="#//ElementCollection" eOpposite="#//ElementCollection/drgElement"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DMNElement" abstract="true">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" ordered="false" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Definitions" eSuperTypes="#//DMNElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="namespace" ordered="false"
lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="expressionLanguage" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="typeLanguage" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="import" ordered="false"
upperBound="-1" eType="#//Import" containment="true" eOpposite="#//Import/_"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="itemDefinition" ordered="false"
upperBound="-1" eType="#//ItemDefinition" containment="true" eOpposite="#//ItemDefinition/definitions"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="businessContextElement"
ordered="false" upperBound="-1" eType="#//BusinessContextElement" containment="true"
eOpposite="#//BusinessContextElement/definitions"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="collection" ordered="false"
upperBound="-1" eType="#//ElementCollection" containment="true" eOpposite="#//ElementCollection/definitions"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="drgElement" ordered="false"
upperBound="-1" eType="#//DRGElement" containment="true" eOpposite="#//DRGElement/definitions"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Import">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="importType" ordered="false"
lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="locationURI" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="namespace" ordered="false"
lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="literalExpression" ordered="false"
eType="#//LiteralExpression" eOpposite="#//LiteralExpression/import"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="_" ordered="false" eType="#//Definitions"
eOpposite="#//Definitions/import"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="LiteralExpression" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="expressionLanguage" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="text" ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="import" ordered="false"
eType="#//Import" containment="true" eOpposite="#//Import/literalExpression"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Expression" abstract="true" eSuperTypes="#//DMNElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="inputVariable" ordered="false"
upperBound="-1" eType="#//InformationItem" eOpposite="#//InformationItem/expression"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="informationItem" ordered="false"
upperBound="-1" eType="#//InformationItem" volatile="true" transient="true"
derived="true" eOpposite="#//InformationItem/valueExpression"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="allowedInItemDefinition"
ordered="false" eType="#//ItemDefinition" eOpposite="#//ItemDefinition/allowedValue"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="inputExpressionClause"
ordered="false" eType="#//Clause" eOpposite="#//Clause/inputExpression"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="inputClause" ordered="false"
eType="#//Clause" eOpposite="#//Clause/inputEntry"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="outputClause" ordered="false"
eType="#//Clause" eOpposite="#//Clause/outputEntry"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="concludedRule" ordered="false"
upperBound="-1" eType="#//DecisionRule" eOpposite="#//DecisionRule/conclusion"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="conditionedRule" ordered="false"
upperBound="-1" eType="#//DecisionRule" eOpposite="#//DecisionRule/condition"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="itemDefinition" ordered="false"
eType="#//ItemDefinition" eOpposite="#//ItemDefinition/expression"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="decision" ordered="false"
eType="#//Decision" eOpposite="#//Decision/decisionLogic"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="bkm" ordered="false" eType="#//BusinessKnowledgeModel"
eOpposite="#//BusinessKnowledgeModel/body"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="formulaBinding" ordered="false"
eType="#//Binding" eOpposite="#//Binding/bindingFormula"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="invocation" ordered="false"
upperBound="-1" eType="#//Invocation" volatile="true" transient="true" derived="true"
eOpposite="#//Invocation/calledFunction"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="contextEntry" ordered="false"
eType="#//ContextEntry" eOpposite="#//ContextEntry/value"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="functionDefinition" ordered="false"
eType="#//FunctionDefinition" eOpposite="#//FunctionDefinition/body"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="list" ordered="false" eType="#//List"
eOpposite="#//List/element"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="InformationItem" eSuperTypes="#//DMNElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="valueExpression" ordered="false"
eType="#//Expression" volatile="true" transient="true" derived="true" eOpposite="#//Expression/informationItem"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="informationRequirement"
ordered="false" eType="#//InformationRequirement" eOpposite="#//InformationRequirement/variable"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="itemDefinition" ordered="false"
eType="#//ItemDefinition" eOpposite="#//ItemDefinition/informationItem"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="bkm" ordered="false" eType="#//BusinessKnowledgeModel"
eOpposite="#//BusinessKnowledgeModel/parameter"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="binding" ordered="false"
upperBound="-1" eType="#//Binding" eOpposite="#//Binding/parameter"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="contextEntry" ordered="false"
eType="#//ContextEntry" eOpposite="#//ContextEntry/variable"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="functionDefinition" ordered="false"
eType="#//FunctionDefinition" eOpposite="#//FunctionDefinition/formalParameter"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="relation" ordered="false"
eType="#//Relation" eOpposite="#//Relation/column"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="expression" ordered="false"
eType="#//Expression" eOpposite="#//Expression/inputVariable"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="InformationRequirement">
<eStructuralFeatures xsi:type="ecore:EReference" name="requiredInput" ordered="false"
eType="#//InputData" eOpposite="#//InputData/requiresInformation"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="requiredDecision" ordered="false"
eType="#//Decision" eOpposite="#//Decision/requiresInformation"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="decision" ordered="false"
lowerBound="1" eType="#//Decision" eOpposite="#//Decision/informationRequirement"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="variable" ordered="false"
lowerBound="1" eType="#//InformationItem" containment="true" eOpposite="#//InformationItem/informationRequirement"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="InputData" eSuperTypes="#//DRGElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="itemDefinition" ordered="false"
eType="#//ItemDefinition" eOpposite="#//ItemDefinition/inputData"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="requiresAuthority" ordered="false"
upperBound="-1" eType="#//AuthorityRequirement" eOpposite="#//AuthorityRequirement/requiredInput"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="requiresInformation" ordered="false"
upperBound="-1" eType="#//InformationRequirement" eOpposite="#//InformationRequirement/requiredInput"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ItemDefinition" eSuperTypes="#//DMNElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="typeDefinition" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="typeLanguage" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="isCollection" ordered="false"
lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="allowedValue" ordered="false"
upperBound="-1" eType="#//Expression" containment="true" eOpposite="#//Expression/allowedInItemDefinition"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="typeRef" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="itemComponentRef" ordered="false"
upperBound="-1" eType="#//ItemDefinition" eOpposite="#//ItemDefinition/itemDefinition"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="itemDefinition" ordered="false"
upperBound="-1" eType="#//ItemDefinition" eOpposite="#//ItemDefinition/itemComponentRef"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="clause" ordered="false"
upperBound="-1" eType="#//Clause" eOpposite="#//Clause/outputDefinition"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="definitions" ordered="false"
lowerBound="1" eType="#//Definitions" eOpposite="#//Definitions/itemDefinition"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="expression" ordered="false"
upperBound="-1" eType="#//Expression" eOpposite="#//Expression/itemDefinition"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="informationItem" ordered="false"
upperBound="-1" eType="#//InformationItem" eOpposite="#//InformationItem/itemDefinition"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="inputData" ordered="false"
upperBound="-1" eType="#//InputData" eOpposite="#//InputData/itemDefinition"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Clause">
<eStructuralFeatures xsi:type="ecore:EReference" name="inputExpression" ordered="false"
eType="#//Expression" containment="true" eOpposite="#//Expression/inputExpressionClause"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="inputEntry" ordered="false"
lowerBound="1" upperBound="-1" eType="#//Expression" containment="true" eOpposite="#//Expression/inputClause"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="outputEntry" lowerBound="1"
upperBound="-1" eType="#//Expression" containment="true" eOpposite="#//Expression/outputClause"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="decisionTable" ordered="false"
lowerBound="1" eType="#//DecisionTable" eOpposite="#//DecisionTable/clause"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="outputDefinition" ordered="false"
eType="#//ItemDefinition" eOpposite="#//ItemDefinition/clause"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DecisionTable" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="hitPolicy" ordered="false"
lowerBound="1" eType="#//HitPolicy" defaultValueLiteral="UNIQUE"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="rule" upperBound="-1" eType="#//DecisionRule"
containment="true" eOpposite="#//DecisionRule/decisionTable"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="aggregation" ordered="false"
lowerBound="1" eType="#//BuiltinAggregator"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="preferedOrientation" ordered="false"
eType="#//DecisionTableOrientation"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="isComplete" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="isConsistent" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="clause" ordered="false"
upperBound="-1" eType="#//Clause" containment="true" eOpposite="#//Clause/decisionTable"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="HitPolicy">
<eLiterals name="UNIQUE"/>
<eLiterals name="FIRST" value="1"/>
<eLiterals name="PRIORITY" value="2"/>
<eLiterals name="ANY" value="3"/>
<eLiterals name="UNORDERED" value="4"/>
<eLiterals name="RULEORDER" value="5"/>
<eLiterals name="OUTPUTORDER" value="6"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DecisionRule">
<eStructuralFeatures xsi:type="ecore:EReference" name="conclusion" ordered="false"
lowerBound="1" upperBound="-1" eType="#//Expression" eOpposite="#//Expression/concludedRule"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="condition" ordered="false"
upperBound="-1" eType="#//Expression" eOpposite="#//Expression/conditionedRule"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="decisionTable" ordered="false"
lowerBound="1" eType="#//DecisionTable" eOpposite="#//DecisionTable/rule"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="DecisionTableOrientation">
<eLiterals name="RuleasRow"/>
<eLiterals name="RuleasColumn" value="1"/>
<eLiterals name="CrossTable" value="2"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Decision" eSuperTypes="#//DRGElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="decisionLogic" ordered="false"
eType="#//Expression" containment="true" eOpposite="#//Expression/decision"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="decisionMaker" ordered="false"
upperBound="-1" eType="#//OrganisationalUnit" eOpposite="#//OrganisationalUnit/decisionMade"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="decisionOwner" ordered="false"
upperBound="-1" eType="#//OrganisationalUnit" eOpposite="#//OrganisationalUnit/decisionOwned"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="impactedPerformanceIndicator"
ordered="false" upperBound="-1" eType="#//PerformanceIndicator" eOpposite="#//PerformanceIndicator/impactingDecision"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="question" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="allowedAnswers" ordered="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="authorityRequirement" ordered="false"
upperBound="-1" eType="#//AuthorityRequirement" containment="true" eOpposite="#//AuthorityRequirement/decision"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="informationRequirement"
ordered="false" upperBound="-1" eType="#//InformationRequirement" containment="true"
eOpposite="#//InformationRequirement/decision"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="knowledgeRequirement" ordered="false"
upperBound="-1" eType="#//KnowledgeRequirement" containment="true" eOpposite="#//KnowledgeRequirement/decision"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="requiresAuthority" ordered="false"
upperBound="-1" eType="#//AuthorityRequirement" eOpposite="#//AuthorityRequirement/requiredDecision"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="supportedObjective" ordered="false"
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="requiresInformation" ordered="false"
upperBound="-1" eType="#//InformationRequirement" eOpposite="#//InformationRequirement/requiredDecision"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="OrganisationalUnit" eSuperTypes="#//BusinessContextElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="decisionOwned" ordered="false"
upperBound="-1" eType="#//Decision" eOpposite="#//Decision/decisionOwner"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="decisionMade" ordered="false"
upperBound="-1" eType="#//Decision" eOpposite="#//Decision/decisionMaker"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BusinessContextElement" abstract="true"
eSuperTypes="#//DMNElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="URI" ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="definitions" ordered="false"
lowerBound="1" eType="#//Definitions" eOpposite="#//Definitions/businessContextElement"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PerformanceIndicator" eSuperTypes="#//BusinessContextElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="impactingDecision" ordered="false"
upperBound="-1" eType="#//Decision" eOpposite="#//Decision/impactedPerformanceIndicator"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="KnowledgeRequirement">
<eStructuralFeatures xsi:type="ecore:EReference" name="requiredKnowledge" ordered="false"
lowerBound="1" eType="#//BusinessKnowledgeModel" eOpposite="#//BusinessKnowledgeModel/requiresKnowledge"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="bkm" ordered="false" eType="#//BusinessKnowledgeModel"
eOpposite="#//BusinessKnowledgeModel/knowledgeRequirement"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="decision" ordered="false"
eType="#//Decision" eOpposite="#//Decision/knowledgeRequirement"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BusinessKnowledgeModel" eSuperTypes="#//DRGElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="authorityRequirement" ordered="false"
upperBound="-1" eType="#//AuthorityRequirement" containment="true" eOpposite="#//AuthorityRequirement/bkm"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="body" ordered="false" eType="#//Expression"
containment="true" eOpposite="#//Expression/bkm"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="knowledgeRequirement" ordered="false"
upperBound="-1" eType="#//KnowledgeRequirement" containment="true" eOpposite="#//KnowledgeRequirement/bkm"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="parameter" ordered="false"
upperBound="-1" eType="#//InformationItem" containment="true" eOpposite="#//InformationItem/bkm"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="requiresKnowledge" ordered="false"
upperBound="-1" eType="#//KnowledgeRequirement" eOpposite="#//KnowledgeRequirement/requiredKnowledge"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Binding">
<eStructuralFeatures xsi:type="ecore:EReference" name="bindingFormula" ordered="false"
eType="#//Expression" containment="true" eOpposite="#//Expression/formulaBinding"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="invocation" ordered="false"
lowerBound="1" eType="#//Invocation" eOpposite="#//Invocation/binding"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="parameter" ordered="false"
lowerBound="1" eType="#//InformationItem" eOpposite="#//InformationItem/binding"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Invocation" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="calledFunction" ordered="false"
lowerBound="1" eType="#//Expression" volatile="true" transient="true" derived="true"
eOpposite="#//Expression/invocation"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="binding" ordered="false"
upperBound="-1" eType="#//Binding" containment="true" eOpposite="#//Binding/invocation"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ContextEntry">
<eStructuralFeatures xsi:type="ecore:EReference" name="value" ordered="false"
lowerBound="1" eType="#//Expression" containment="true" eOpposite="#//Expression/contextEntry"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="context" ordered="false"
eType="#//Context" eOpposite="#//Context/contextEnrty"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="variable" ordered="false"
eType="#//InformationItem" containment="true" eOpposite="#//InformationItem/contextEntry"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Context" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="contextEnrty" ordered="false"
upperBound="-1" eType="#//ContextEntry" containment="true" eOpposite="#//ContextEntry/context"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="FunctionDefinition" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="body" ordered="false" eType="#//Expression"
containment="true" eOpposite="#//Expression/functionDefinition"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="formalParameter" ordered="false"
upperBound="-1" eType="#//InformationItem" containment="true" eOpposite="#//InformationItem/functionDefinition"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Relation" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="row" ordered="false" upperBound="-1"
eType="#//List" containment="true" eOpposite="#//List/relation"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="column" ordered="false"
upperBound="-1" eType="#//InformationItem" containment="true" eOpposite="#//InformationItem/relation"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="List" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="element" ordered="false"
upperBound="-1" eType="#//Expression" containment="true" eOpposite="#//Expression/list"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="relation" ordered="false"
eType="#//Relation" eOpposite="#//Relation/row"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ElementCollection" eSuperTypes="#//DMNElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="drgElement" ordered="false"
upperBound="-1" eType="#//DRGElement" eOpposite="#//DRGElement/elementCollection"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="definitions" ordered="false"
lowerBound="1" eType="#//Definitions" eOpposite="#//Definitions/collection"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="BuiltinAggregator">
<eLiterals name="COLLECT"/>
<eLiterals name="SUM" value="1"/>
<eLiterals name="COUNT" value="2"/>
<eLiterals name="MIN" value="3"/>
<eLiterals name="MAX" value="4"/>
<eLiterals name="AVERAGE" value="5"/>
</eClassifiers>
</ecore:EPackage>

 

 



04/07/2017
2 Poster un commentaire

A découvrir aussi


Inscrivez-vous au site

Soyez prévenu par email des prochaines mises à jour

Rejoignez les 705 autres membres