UN/CEFACT Core Component methodology for EIC/TC 57 works and CIM Using Jean-Luc SANSON

Download Report

Transcript UN/CEFACT Core Component methodology for EIC/TC 57 works and CIM Using Jean-Luc SANSON

Using UN/CEFACT Core Component methodology
for EIC/TC 57 works and CIM
Jean-Luc SANSON
Electrical Network Measurement and IT System Department
EDF R&D Division
CIM User Group Conference Call december 8th 2005
1
Use Case
BalanceSupplier
(from BIE_ETSORoleMod...
MeteringPointAdministrator
(from BIE_ETSORoleMod...
EndOfSupply
<<include>>
Consumer
(from BIE_ETSORoleMod...
EndOfSupply_Audit
CIM User Group Conference Call december 8th 2005
2
Sequence Diagram
this Business Process shows how the balance supplier will request an
appointment date for the end of supply
Phase 1 : admissibility
: BalanceSupplier
:
MeteringPointAd...
EndSupplyRequest : Request Appointment Date
EndSupplyAcknowledgment : Admissibility and appointment time interval list
Phase 2 : appoitment
scheduling :
If RECEIVABLE, the process
can continue here
EndSupplyRequest : Chosen Appointment Time Interval
EndSupplyConfirmation : before the end of supply is effective
Phase 3 : end of
process
EndSupplyConfirmation : When the end of supply is effective
CIM User Group Conference Call december 8th 2005
3
Sequence Diagram
this Business Process shows how the balance supplier will request an
appointment date for the end of supply
Phase 1 : admissibility
: BalanceSupplier
:
MeteringPointAd...
EndSupplyRequest : Request Appointment Date
EndSupplyAcknowledgment : Admissibility and appointment time interval list
Phase 2 : appoitment
scheduling :
If RECEIVABLE, the process
can continue here
EndSupplyRequest : Chosen Appointment Time Interval
EndSupplyConfirmation : before the end of supply is effective
Phase 3 : end of
process
EndSupplyConfirmation : When the end of supply is effective
Messages and
Messages’ Content
CIM User Group Conference Call december 8th 2005
4
Question : how Message’s Content could be
semantically consistant accross all exchanges?
The answer is to have a shared Information Model
From which Message Content could be derived
So first, what is an Information Model?
How it could be represented?
How we derived Message Content from this Information
Model?
CIM User Group Conference Call december 8th 2005
5
UML Unified Modeling Language
CIM User Group Conference Call december 8th 2005
6
UML Association Modelling : Role
send
Is send by
CIM User Group Conference Call december 8th 2005
7
Information Model
 An Information Model is a model that represents all classes with :
 all their possible properties
 all their possible associations
 This has some consequences :
 All properties are described as optional
 A lot of associations are left optional
 All associations are bidirectional ones (except for specialized ones
like inheritance and aggregation)
 This means that there is no hierarchy
 dataTyping is kept as generic as possible
 An Information Model is context independant
 The CIM model is based on this philosophy
CIM User Group Conference Call december 8th 2005
8
Information Model
(Abstract Model)
Business Class
CIM User Group Conference Call december 8th 2005
9
How can we generate a Message’s Content
from an Information Model?
First define the context : use case, business process
analysis…
At the end of this analysis, define exchanges as Messages
that have Contents or Documents
Build Contents or Documents as follow :
 What are the classes involved in the exchange?
 What is the principal class involved in the exchange?
 What are the associations required
 What are the classes properties necessary for the exchange?
 What kind of constraints should be applied on the properties type?
In fact what is defined is a view on the information Model
CIM User Group Conference Call december 8th 2005
10
1th step : select Classes involved in the exchange
CIM User Group Conference Call december 8th 2005
11
2th step : define main classes and relations
Root Element
CIM User Group Conference Call december 8th 2005
12
3th step : select class properties involved in the
exchange
In fact we define views of information model classes
CIM User Group Conference Call december 8th 2005
13
4th step : refine Properties DataTypes by
restrictions (constraints)
 We ended up here with a Contextual Model
CIM User Group Conference Call december 8th 2005
14
Define Message Model
according to some
assembly rules
Message Model level
Assembly Rules
CIM User Group Conference Call december 8th 2005
15
From
Information
Model to
Message
Content Model
Information level
Message Content level
CIM User Group Conference Call december 8th 2005
16
Next step from Message Content Model to Message
Content Syntactic Model
Message Content
level
Transformation Process
According to some Rules
<?xml version="1.0" encoding="UTF-8"?>
<xsd:element name=« ServiceLocation">
<xsd:sequence>
<xsd:element name=« serviceLocCode »/>
<xsd:element name=« serviceType »/>
<xsd:element name=« streetNumber »/>
<xsd:element name=« streetName »/>
<xsd:element name=« postalCode »/>
</xsd:sequence>
CIM User Group Conference Call december 8th 2005
Syntactic level
= XML Schema
17
UML/XML
Modelling
layers
Information Model
UML
Modèles Conceptuels
Modèles
Conceptuels
UML
Contextual
UML Models
UML
Modèles d’Echanges
Modèles
d’Echanges
UML
Message
UMLContent
Models UML
Modèle d’Echange
Modèle
d’Echange
XML
(XSD)
Message
Content
XML (XSD)
XML Schemas
CIM User Group Conference Call december 8th 2005
18
UN/CEFACT
“UN Centre for Trade Facilitation and Electronic Business
supports activities dedicated to improving the ability of
business, trade and administrative organizations, from
developed, developing and transitional economies, to
exchange products and relevant services effectively.”
 Cross-sectoral analysis (to promote interoperability & supply chain
synchronicity)
 Business process and information modelling (to capture user
requirements, independent of any specific technology, through the
creation of business collaboration models); and
 New technologies as they emerge (eg eXtensible Markup language
(XML), webServices, shared and/or distributed objects etc)
 International standards for enabling e-business systems &
interoperability
CIM User Group Conference Call december 8th 2005
19
UN/CEFACT External Relations
Memorandum of Understanding - ISO, IEC, ITU, UNECE
 Meetings in Beijing in October 2005 and in Vancouver in March
2006.
UN/CEFACT - OASIS
 A new Cooperation Agreement was signed on 21 June 2005.
 ebXML, UBL
Many other organizations
 Some are delegations in UN/CEFACT
–GS1, SWIFT, …
 Some are not
–OAG, CEN/ISSS, XBRL, …
CIM User Group Conference Call december 8th 2005
20
UN/Cefact
Core Component
Technical
Specification
Core Components
UML
Business Information Entities
UML
Message Content Models
UML
Message Content
XML Schemas
CIM User Group Conference Call december 8th 2005
21
Core Component and Business Information Entity
CIM User Group Conference Call december 8th 2005
22
DataTypes and Core Component Types
Ten Core Component Types:
Amount
Binary Object
Code
Date
Identifier
Indicator
Numeric
Measure
Quantity
Text
From which can be derived DataTypes
CIM User Group Conference Call december 8th 2005
23
Core Component Types
Have a content that is of a primitive type (String,
Decimal…)
And Supplementary attributes that qualify the Content
Example Core Component Type « Amount » have
 A Content whose value is a decimal
 And Supplementary Attributes :
– Currency Identifier
– Currency Code List Version
Example Core Component Type « Measure » have
 A Content whose value is a decimal
 And Supplementary Attributes :
– Unit Code
– Unit Code List Version
CIm is using something similar for its Domain
« Primitive »
CIM User Group Conference Call december 8th 2005
24
Core Component Types
Three of them are dealing
with measuring, compting Objects :
Measure : for measure value
Amount : monnetary representation
Quantity : for anything else
Measure, amount and quantity value are
All expressed as decimal values
Measure Units are based on UN/ECE rec. 20
Currency Units are based on UN/ECE rec. 9
Quantity Unit are user defined
CIM User Group Conference Call december 8th 2005
25
Measure
 Definition
 a numeric value determined by measuring an object along with the specified
unit of measure
 Measure.Content
 decimal
 The numeric value determined by measuring an object.
 Measure Unit.Code
 string
 The type of unit of measure Reference UN/ECE Rec. 20 and X12 355, that
include SI units.
CIM User Group Conference Call december 8th 2005
26
Creating DataTypes by derivation
Default value
Fixed value
There are naming rules that say that a derived by restriction
dataTypes have a name based on the CCT name prefixed by a qualifier
Fixed value
And for multiple ans sub units?
Comment : CIM DataTyping need to be revised and a naming rule should be defined
Measure Class name should be based on quantity name (example voltage)
and the unit expressed by the SI representation symbol (example V)
CIM User Group Conference Call december 8th 2005
27
Creating controlled dataTypes
Use of enumeration to give
only permitted unit value
CIM User Group Conference Call december 8th 2005
28
Core Components
UML
Context Constraint
Language
Business Information Entities
UML
Message Assembly
Message Content Models
UML
Syntax Binding
XML naming and
Design rules
Message Content
XML Schemas
CIM User Group Conference Call december 8th 2005
29
CIM Information Model
UML
CIM
Context
rules ?
CIM/XML
Schema
Derivation
Process
Contextual Model
CIM Message
assembly
Rules ?
Message Content
Model
CIM Syntax Binding ?
CIM XML Schema
Design Rules ?
Message Content
XML Schema
CIM User Group Conference Call december 8th 2005
30
Proposals
CIM Context Constraint Rules?
CIM Message Assembly Rules?
CIM Syntax Binding ? (RDF)
CIM Naming and Design Rules?
We need to have all these rules explicitly described in
the 61968 and 61970 standards (and serves for WG 16
and 19)
One way to do that is to based this work on the
UN/Cefact work
This would also be aligned with the Memorandum Of
Understandind between UN/Cefact and IEC.
CIM User Group Conference Call december 8th 2005
31
Aligne CIM and IEC Standards with UN/Cefact
Work
What would be the work?
For CIM :
 Change all domain package to have UN/Cefact CCTS DataTypes
 And move to SI Units
 Naming Rules for DataTypes
 Use Decimal instead of Float
 Change all attributes types in CIM Classes
 Make good definitions
CIM User Group Conference Call december 8th 2005
32
CIM
CIM UN/Cefact
Core component Type
CIM User Group Conference Call december 8th 2005
33
CIM
CIM UN/Cefact
CIM User Group Conference Call december 8th 2005
34
CIM
CIM UN/Cefact
Core component Type
DataType
CIM User Group Conference Call december 8th 2005
35
Aligne CIM and IEC Standards with UN/Cefact
Work
Benefits :
 Revisit all CIM classes
 Correct a lot of inconsistency
–in modeling,
–in names,
–in attribute typing
 Make CIM the Core Components for the electrotechnical field
CIM User Group Conference Call december 8th 2005
36