MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
Integrating data process a roundtrip modeling using e rwin data modeler_erwin process modeler_09292010
1. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Integrating Data & Process
A roundtrip modeling using
ERwin Data Modeler & ERwin Process Modeler
Manan Shah
manan@myriadinc.net
301.476.9190 (Office)
301.385.2059 (Cell)
WWW.MYRIADINC.NET
2. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
ERwin
ERwin Data Import / Export
Saphir
Profiler Bridge
Option
ERwin ERwin Data
ERwin Data
Model Model
Modeler
Navigator Validator
ERwin ERwin
Crystal
Process Model
Reports
Modeler Manager
( Other ODBC)
WWW.MYRIADINC.NET
3. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
ERwin Data
Modeler
ERwin
Process
Modeler
WWW.MYRIADINC.NET
4. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Why Map Models?
Mapping of process models to data models
ensures completeness of analysis.
enables sharing of data across business units and
functions.
guarantees that the there is a supply of data (entity) for
all data needs (activity).
ensures that data is available when needed.
WWW.MYRIADINC.NET
5. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
4 Model Mapping Steps
•Mapping of process models to data models
STEP 1: Map entities to arrows.
STEP 2: Map attributes to arrow entities.
STEP 3: Identify process action(s) upon entities.
STEP 4: Identify process action(s) upon attributes.
•Occurs at the leaf level.
WWW.MYRIADINC.NET
6. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Step 1: Map Entities to Arrows
IDEF0 Model IDEF1X Data Model
PUBLISH
ASSEMBLY ASSEMBLY
INSTRUCTIONS INSTRUCTION
Assembly
Instructions assembled
into
MAKE PART
Parts
PART
assembled
Finished from
ASSEMBLE Products
PART
PRODUCT
WWW.MYRIADINC.NET
7. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Step 2: Map Attributes to Arrow Entities
Determine attribute mapping for each mapped entity
IDEF0 Model IDEF1X Data Model
ASSEMBLY INSTRUCTION
Product ID (FK)
PUBLISH Part Number (FK)
ASSEMBLY Assembly Step (FK)
INSTRUCTIONS Assembly Instruction
Assembly Time
Assembly PART
Instructions Part Number
MAKE Part Name assembled
Parts into
PART Part Cost
Quantity On Hand
Finished
PRODUCT
ASSEMBLE Products
Product ID
PART assembled
Product Name from
Product Status
Product Cost
WWW.MYRIADINC.NET
8. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Entity Data Usage Rules (CRUD)
Allowable Activity Actions on Entities Associated with Arrows
CONTROL (R)
Entities are NOT CHANGED by the process.
Must be READ ONLY!!
INPUT R & (U or D) IDEF0 OUTPUT (C &/or U)
(TRANSFORMED by the process) (RESULT from the process)
PROCESS
Entities must be Entities must be
READ and DELETED OR UPDATED CREATED and/or UPDATED
MECHANISM
Entity Mapping NOT APPLICABLE
C: CREATE R: READ U: UPDATE D: DELETE
WWW.MYRIADINC.NET
9. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Step 3: Identify Activity Action Upon Entities
IDEF0 Model IDEF1X Data Model
New CREATE
Log New Part PART
Part Part Number
Part Name
Part Cost
Quantity On Hand
Quantity
Count on Hand UPDATE
Parts
Employee
C: CREATE R: READ U: UPDATE D: DELETE
WWW.MYRIADINC.NET
10. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Attributes Data Usage Rules (IRUN)
Allowable Activity Actions on Attributes Associated with Arrows
CONTROL (R)
Attributes ARE NOT CHANGED by the process.
Must be READ ONLY!!
INPUT R & (U or N) IDEF0 OUTPUT (I &/or U)
(TRANSFORMED by the process) (RESULT from the process)
PROCESS
Attributes can be Attributes can be
READ (if entity is Read) INSERTED and/or UPDATED
AND (if entity is Create or Update)
UPDATED (if entity is Update)
NULLIFIED (if entity is Created MECHANISM
or Update) Entity Mapping NOT APPLICABLE
I: INSERT R: READ U: UPDATE N: NULLIFY
WWW.MYRIADINC.NET
11. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Step 4:
Identify Activity Action Upon Attributes
IDEF0 Model IDEF1X Data Model
New INSERT
Log New Part PART
Part Part Number
Part Name
Part Cost
Quantity On Hand
Quantity
Count on Hand UPDATE
Parts
Employee
I: INSERT R: READ U: UPDATE N: NULLIFY
WWW.MYRIADINC.NET
12. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Process Modeler and ERwin DM
• Process Modeler can export and import Data Model
information to and from ERwin.
– further define business activities.
– cross-validate function models and data models.
– improve model quality and consistency.
– reduce development time. Target Server Database
Process DB2
Modeler ERwin Informix
Ingres
IDEF1X Data Microsoft SQL Server
IDEF0 & IDEF3
Modeling and Oracle
Business
Database Schema Rdb
Process Modeling
Generation Sybase SQL Server
and more...
WWW.MYRIADINC.NET
13. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Integrating ERwin and Process Modeler
• The ERwin Modeling Suite offers links between ERwin
data models & Process Models
–From ERwin to Process Modeler through ‘.eax’ files.
–From Process Modeler to ERwin through ‘.bpx’ files.
• These files are used to synchronize entity and attribute
information in both models.
Process Models ERwin Data Model
BPX files
EAX files
WWW.MYRIADINC.NET
14. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Integrating ERwin and Process Models
• .eax data files created in ERwin are used to transfer entity and attribute
information into Process Modeler.
Process Model ERwin Data Model
Entity and Attribute
NAMES &
DEFINITIONS
WWW.MYRIADINC.NET
15. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Integrating ERwin and Process Modeler
• .bpx files are created in Process Modeler to
–export entity and attribute names and definitions into a
new or existing ERwin model.
–export activity names from Process Modeler resulting in
the creation of subject areas in an ERwin model.
Process Model ERwin Data Model
Entities, Attributes, &
Process Subject Areas
WWW.MYRIADINC.NET
16. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
REVIEW: Data Usage Rules Summary
Activity Actions on Entities & Attributes Associated with Arrows
ENTITIES: C = Create R = Read U = Update D = Delete
ATTRIBUTES: I = Insert R = Read U = Update N = Nullify
APPROPRIATE INAPPROPRIATE
ACTIONS ACTIONS
ARROW TYPE Entities Attributes Entities Attributes
INPUT RUD RUN C I
OUTPUT CU IU R R
CONTROL R R CUN IUN
MECHANISM (n/a) (n/a) (n/a) (n/a)
WWW.MYRIADINC.NET
17. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
REVIEW: Process Driven Data Modeling
CREATE
DATABASE DESIGN
ENTRY POINT
IDENTIFY DEFINE
CREATE ATTRIBUTE REVIEW
& CAPTURE PHYSICAL LAYER
E-R MODEL E-R MODEL FINAL DESIGN
BUSINESS RULES OF MODEL
$100 $150 $200 $200 $150
IDENTIFY LIST CANDIDATE REVIEW & SELECT TARGET VERIFY ENTITIES
CANDIDATE ATTRIBUTES FOR VERIFY DBMS & DEFINITIONS
ENTITIES EACH ENTITY CARDINALITIES
NAME TABLES & VERIFY
IDENTIFY ADD KEYS TO DEFINE COLUMNS RELATIONSHIPS
RELATIONSHIPS MODEL REFERENTIAL & DEFINITIONS
NAME & DEFINE
INTEGRITY
DEFINE ATTRIBUTE & INDEXES VERIFY
ENTITIES & NORMALIZE IDENTIFY ATTRIBUTES &
DEFINE
RELATIONSHIPS MODEL BUSINESS DEFINITIONS
COLUMNS
DOMAINS
REVIEW ENTITY- DEFINE VERIFY
VERIFY/UPDATE
RELATIONSHIP ATTRIBUTES IDENTIFY BUSINESS
TRIGGERS
MODEL ATTRIBUTE CONSTRAINTS
REVIEW LOGICAL
DEFAULT GENERATE
MODEL APPROVE
VALUES REPORTS
SCHEMA
DESIGN
WWW.MYRIADINC.NET
18. 16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
Manan Shah
manan@myriadinc.net
16843 Harbour Town Drive
Silver Spring, MD 20905
Tel: 301.476.9190
Fax: 301.476.9195
WWW.MYRIADINC.NET