SlideShare a Scribd company logo
EXTENDING EA WITH CUSTOM SCRIPTS
TO CATER FOR SPECIFIC NEEDS
AND USER REQUESTS
LONDON EAUG 2018
Blog: www.umlchannel.com
Add-in: www.eautils.com
Twitter: @umlchannel
Guillaume FINANCE
CONTENT
03. SCRIPTS HELPERS
04. EA-MATIC TRIGGERED SCRIPTS
02. EA SCRIPTS OVERVIEW
01. INTRODUCTION
2
05. DEBUG & HINTS
06. DEMONSTRATION
Tool customization
LANGUAGE
TOOL METHOD
INTRODUCTION
EA tool customization
3
Model-based
approach pillars
Custom project structure Stereotypes/UML Profiles, toolbars
Custom searches
INTRODUCTION
4
EA tool customization
Custom EA User Interface (13.5) New features using EA API…
INTRODUCTION
EA Scripts
5
EA tool customization
Why do we need scripts?
Replace repetitive tasks performed by users
INTRODUCTION
Custom Excel publication
Update details in Excel
Work with Excel
Custom tools and solutions integration
Model QA
And much more!
6
Internal use
Why do we need scripts?
INTRODUCTION
7
EA users
(analysts, architects…)
Stakeholders, client…
Method & processes,
model consistency…
Third party tools
Outside people & applications
Alternatives in using EA API
INTRODUCTION
EA add-ins
3rd party tools,
ext. scripts
Excel macros
EA Scripts
Installation User Interface Language(s)
None - import file in
the project, available
for all users
VBScript, JavaScript,
JScript
Message or Input box,
system output…
8
EA DATA
Alternatives in using EA API
INTRODUCTION
EA add-ins
3rd party tools,
ext. scripts
Excel macros
EA Scripts
Installation User Interface Language(s)
None - import file in
the project, available
for all users
VBScript, JavaScript,
JScript
Enhanced windows,
system output…
Installation on all
clients, available to
use with any project
C#, VB.Net, Java,
C++…
Message or Input box,
system output…
9
EA DATA
Alternatives in using EA API
INTRODUCTION
EA add-ins
3rd party tools,
ext. scripts
Excel macros
EA Scripts
Installation User Interface Language(s)
None - import file in
the project, available
for all users
VBScript, JavaScript,
JScript
Enhanced windows,
system output…
Installation on all
clients, available to
use with any project
C#, VB.Net, Java,
C++…
Optional Linked with the
chosen language
C#, VB.Net, Java, C++,
Python, Perl…
Message or Input box,
system output…
10
EA DATA
Alternatives in using EA API
INTRODUCTION
EA add-ins
3rd party tools,
ext. scripts
Excel macros
EA Scripts
Installation User Interface Language(s)
None - import file in
the project, available
for all users
VBScript, JavaScript,
JScript
Enhanced windows,
system output…
Installation on all
clients, available to
use with any project
C#, VB.Net, Java,
C++…
Optional Linked with the
chosen language
C#, VB.Net, Java, C++,
Python, Perl…
n/a (Excel required) Excel Excel VBA
Message or Input box,
system output…
11
EA DATA
Alternatives in using EA API
INTRODUCTION
EA add-ins
3rd party tools,
ext. scripts
Excel macros
EA Scripts
Installation User Interface Language(s)
None - import file in
the project, available
for all users
VBScript, JavaScript,
JScript
Enhanced windows,
system output…
Installation on all
clients, available to
use with any project
C#, VB.Net, Java,
C++…
Optional Linked with the
chosen language
C#, VB.Net, Java, C++,
Python, Perl…
n/a (Excel required) Excel Excel VBA
Message or Input box,
system output…
12
EA DATA
Web applications
Custom tools integration
Alternatives in using EA API
INTRODUCTION
EA add-ins
3rd party tools,
ext. scripts
Excel macros
EA Scripts
Installation User Interface Language(s)
None - import file in
the project, available
for all users
VBScript, JavaScript,
JScript
Enhanced windows,
system output…
Installation on all
clients, available to
use with any project
C#, VB.Net, Java,
C++…
Optional Linked with the
chosen language
C#, VB.Net, Java, C++,
Python, Perl…
n/a (Excel required) Excel Excel VBA
Message or Input box,
system output…
13
EA DATA
Web applications
Custom tools integration
Compatible with frequent
releases for a large group of users
CONTENT
03. SCRIPTS HELPERS
04. EA-MATIC TRIGGERED SCRIPTS
02. EA SCRIPTS OVERVIEW
01. INTRODUCTION
14
05. DEBUG & HINTS
06. DEMONSTRATION
Script Group Types
18
A script is defined under a group
EA SCRIPTS OVERVIEW
Main group types
Scripts under a Normal Group are available from the Scripting view
Scripts under a Project Browser Group are available from the Scripting view or via a right click in the Project Browser
Scripts under a Diagram Group are available from the Scripting view or via a right click in a diagram
Scripts organization
EA SCRIPTS OVERVIEW
Reserved for the scripts
administrator/dev team
Libraries of reusable
functions and routines
Users scripts, available
from a diagram or the
Project Browser
Use Groups to organize your scripts
Example:
16
Naming conventions
EA SCRIPTS OVERVIEW
Define prefixes to group and identify script functions
Example:
XLS = Excel related scripts (XLS-1 = import/export, XLS-2 = others)
QA = Quality related (QA-1 = cleaning, QA-2 = stats, QA-3 = controls)
TSK = Automated tasks (TSK-1 = generate, TSK-2 = migrate, TSK-3 = update)
SEC = Users, groups and permissions
XT = Extract EA information
17
New order
Re-used script functions
EA SCRIPTS OVERVIEW
Project Browser and Diagram scripts + Common script
18
«Project Browser script»
XLS-1-c-Excel Export Class
Details from Branch
«Diagram script»
XLS-1-e-Excel Export Class
Details
«Normal script»
ExportClassDetails-Common
+ processPackage()
+ processDiagram()
- exportClassElements()
Exports details of EA Elements …
1- Located in the provided package (processPackage)
2- Or matching Diagram Objects in the provided Diagram List (processDiagram)
Both call exportClassElements private function
Calls processPackage with
the current package
Calls processDiagram with
the current diagram
Re-used script
EA API Methods
EA Automation Interface provides a way of accessing the internals of Enterprise Architect models
EA SCRIPTS OVERVIEW
Repository
Package
EA API Object Model
Element, Connector, Diagram, etc.
set parentPkg = Repository.GetPackageByID(curElement.PackageID): element’s parent package
set curElement = Repository.GetElementByID(selectedDiagObject.ElementID): element matching a diagram object
Using Object methods - VBScript examples:
19
Repository
+ GetDiagramByGuid(String): Object
+ Execute(String): Void
+ GetAttributeByGuid(String): Attribute
+ GetElementsByQuery(String, String): Collection
+ SQLQuery(String): String
+ GetAttributeByID(Int32): Attribute
+ GetElementByID(Int32): Element
+ GetPackageByID(Int32): Package
+ GetDiagramByID(Int32): Diagram
+ GetConnectorByID(Int32): Connector
+ OpenDiagram(Int32): Void
+ GetElementByGuid(String): Element
+ GetConnectorByGuid(String): Connector
«property»
+ IsSecurityEnabled(): Boolean
+ ProjectGUID(): String
Package
«property»
+ Name(): String
+ Packages(): Collection
+ Elements(): Collection
+ Diagrams(): Collection
+ Notes(): String
+ PackageID(): Int32
+ PackageGUID(): String
+ TreePos(): Int32
+ Element(): Element
+ Alias(): String
Element
+ Update(): Boolean
+ Refresh(): Void
«property»
+ Name(): String
+ TaggedValues(): Collection
+ Notes(): String
+ ElementGUID(): String
+ Stereotype(): String
+ Type(): String
+ ElementID(): Int32
+ PackageID(): Int32
+ Methods(): Collection
+ Attributes(): Collection
+ ClassifierID(): Int32
+ TreePos(): Int32
+ ObjectType(): ObjectType
+ Properties(): Properties
provides an entry point to the
model packages and collections
e.g. a Class, Use Case
or an Object
The classes contain anon-exhaustive list
of operations and properties.
*1
1
Run SQL queries against the model
EA SCRIPTS OVERVIEW
When a query or update cannot be achieved via a method.
SQL queries can be used …
20
To select specific elements, preventing time consuming loops.
e.g. select datatype stereotyped Classes with the name matching the given variable;
SELECT Object_ID FROM t_object WHERE (Object_Type = 'Class' and (Stereotype = 'datatype'))
and name = '"&attributeType&"'"
To address performance issues related. Example with a bulk creation of ~1000 attributes :
API method call execution time: 120 minutes
set elementAttr = elt.Attributes.AddNew("&attrName&","")
elementAttr.Update()
API method call with a SQL insert execution time : 4 minutes
insert into t_attribute(object_id, name, ea_guid) values …
Use SQL queries
EA SCRIPTS OVERVIEW
21
Repository object available methods:
Repository.GetElementSet(query,2) : returns a collection of EA elements according to the SQL query
Use SQL queries
EA SCRIPTS OVERVIEW
22
Repository object available methods:
Repository.GetElementSet(query,2) : returns a collection of EA elements according to the SQL query
Repository.SQLQuery(query) : returns an XML formatted string value (SELECT queries only)
Use SQL queries
EA SCRIPTS OVERVIEW
23
Repository object available methods:
Repository.GetElementSet(query,2) : returns a collection of EA elements according to the SQL query
Repository.SQLQuery(query) : returns an XML formatted string value (SELECT queries only)
Repository.Execute(query) : runs a query (UPDATE/DELETE/INSERT)
Use SQL queries
EA SCRIPTS OVERVIEW
24
Be careful when running UPDATE/DELETE/INSERT queries, it can delete or break your model!
Queries must be compatible with the used DBMS (MySQL, SQL Server, Postgres, Oracle, Jet/EAP)
e.g. apply the right asterisk wild card  * vs %
Use Repository.RepositoryType method to get the DB name e.g. POSTGRES
Use EA SQL Scratch pad
To build queries (IntelliSense available: Ctrl+Space)
To test and fix queries from the DEBUG System Output
Documentation
EA SCRIPTS OVERVIEW
25
Object Model API: see EA User Guide
EA DB schema: generate a reverse (98 tables)
http://www.sparxsystems.com/enterprise_architect_user_guide/14.0/automation/reference.html
CONTENT
03. SCRIPTS HELPERS
04. EA-MATIC TRIGGERED SCRIPTS
02. EA SCRIPTS OVERVIEW
01. INTRODUCTION
26
05. DEBUG & HINTS
06. DEMONSTRATION
For the developer
SCRIPTS HELPERS
27
Scripting variables used
bShowOutput = false
'bShowOutput = true
sOutputPath = ""
'sOutputPath = "C:UsersGFIDesktop"
dim outHeader
outHeader = " | XLS_1-Excel Export Class Details from Branch"
Debug Mode
if (bShowOutput) then
Session.Output SQL
end if
z
Prompt for a Folder?
Script name for
the System Output
Session.Output Now & outHeader & " - Starting"
Dev Helper
For the developer
SCRIPTS HELPERS
28
Scripting source EA project Publication EA project Target EA project
XML file
Export reference data
(Automation Scripts)
XML file
Import reference data
Export reference data
(Automation Scripts)
XML file
Import reference data
Delete temporary script
groups SCRIPT: Delete temp scripts
Export reference data
(Automation Scripts)
XML file
Import reference data
Delete temporary script
groups SCRIPT: Delete temp scripts
Disable the scripting
Debug Mode SCRIPT: Set DEBUG OFF
Export reference data
(Automation Scripts)
All scripts are exported
(no selection available)
Publication process :
DEMO
XML file
Import reference data
Delete temporary script
groups SCRIPT: Delete temp scripts
Disable the scripting
Debug Mode SCRIPT: Set DEBUG OFF
XML file
Export reference data
(Automation Scripts)
Export reference data
(Automation Scripts)
XML file
Import reference data
Delete temporary script
groups SCRIPT: Delete temp scripts
Disable the scripting
Debug Mode SCRIPT: Set DEBUG OFF
XML file
Export reference data
(Automation Scripts)
Export reference data
(Automation Scripts)
Import reference data
Published scripts
available to install
EA Support EA AdminEA Support
Deletes
reserved scripts
Updates all scripts
'bShowOutput = true
'sOutputPath =
"C:UsersGFIDesktop"
Dev Helper
Dev working project Intermediary project (blank) Client project
For the users
SCRIPTS HELPERS
29
Store the last selected folder for the input or output file(s)
Save time with the option to reuse the previous file location
Built-in help
DEMO
Apply scripts filters
Workaround for the lack of sub menus with 15+ scripts
User Helper
CONTENT
03. SCRIPTS HELPERS
04. EA-MATIC TRIGGERED SCRIPTS
02. EA SCRIPTS OVERVIEW
01. INTRODUCTION
30
05. DEBUG & HINTS
06. DEMONSTRATION
Automatically triggered scripts for users
EA-MATIC ADD-IN
31
ea-Matic is a free add-in by Geert Bellekens.
ea-Matic can trigger a script with an associated event.
Replaces users repetitive tasks.
DEMO
EA broadcast events are sent to all add-ins.
e.g. EAOnPostNewElement is received when a new element is created
bellekens.com/ea-matic
'EA-Matic
'a new connector has been created.
function EA_OnPostNewConnector(Info)
'get the connector id
dim connectorID, newConnector
connectorID = Info.Get("ConnectorID")
set newConnector = Repository.GetConnectorByID(connectorID)
MsgBox "New connector type: " & newConnector.Type
end function
“Magic keyword”
User Helper
Associated
event
Add-in installed only for the target users.
CONTENT
03. SCRIPTS HELPERS
04. EA-MATIC TRIGGERED SCRIPTS
02. EA SCRIPTS OVERVIEW
01. INTRODUCTION
32
05. DEBUG & HINTS
06. DEMONSTRATION
Principles
SCRIPT DEBUGGING
33
Script debugging aids in the development and maintenance of scripts.
Set Breakpoints to step over/into/out.
View local variables values at the time of execution.
Start Debug
Run Script
Code editor key shortcuts
HINTS
34
Ctrl+F2 to set bookmarks, F2/Shift+F2 go to next or previous
Ctrl+Shift+C = Toggle line comment on selection
Ctrl+Space = Intellisense
Shift+Alt+Return = Fullscreen
Ctrl+U = to lowercase, Ctrl+Shift+U = to uppercase
Ctrl+keypad(-) Zoom out, Ctrl+keypad(+) Zoom in, Ctrl+keypad(/) restore
Various
HINTS
35
Search in Scripts
Use Sparx EA built-in libraries
CONTENT
03. SCRIPTS HELPERS
04. EA-MATIC TRIGGERED SCRIPTS
02. EA SCRIPTS OVERVIEW
01. INTRODUCTION
36
05. DEBUG & HINTS
06. DEMONSTRATION
Internal use
DEMONSTRATION
37
EA users
Stakeholders, client…
Method
Third party tools
Outside applications & people
Standards
Lock/unlock Branch
Versions
Migrate Diagrams
Attributes mapping
User Helper
Move classes/tables with
criteria (prefix, attr count)
QA
Compare model
with template
Manage EA user permissions
Admin
UML to JDL Generator
(JHipster Entities)
Main topics
Main topics
DEMONSTRATION
38
DEMO
EA User Group London 2018
Author: Guillaume FINANCE | Blog: www.umlchannel.com | EA add-in: www.eautils.com
Extending EA with custom scripts
39
Blog: www.umlchannel.com
Add-in: www.eautils.com
Twitter: @umlchannel
LinkedIn: fr.linkedin.com/in/guillaumefinance
Guillaume FINANCE
CONTACT

More Related Content

What's hot

Data Source API in Spark
Data Source API in SparkData Source API in Spark
Data Source API in Spark
Databricks
 
(ATS4-APP05) What's new in Isentris 4.0SP1
(ATS4-APP05) What's new in Isentris 4.0SP1(ATS4-APP05) What's new in Isentris 4.0SP1
(ATS4-APP05) What's new in Isentris 4.0SP1
BIOVIA
 
ESSIR LivingKnowledge DiversityEngine tutorial
ESSIR LivingKnowledge DiversityEngine tutorialESSIR LivingKnowledge DiversityEngine tutorial
ESSIR LivingKnowledge DiversityEngine tutorial
Jonathon Hare
 
R to Forecast Solr Activity - Patrick Beaucamp, Bpm-Conseil
R to Forecast Solr Activity - Patrick Beaucamp, Bpm-ConseilR to Forecast Solr Activity - Patrick Beaucamp, Bpm-Conseil
R to Forecast Solr Activity - Patrick Beaucamp, Bpm-Conseil
Lucidworks
 
Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...
Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...
Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...
Databricks
 
Building a modern Application with DataFrames
Building a modern Application with DataFramesBuilding a modern Application with DataFrames
Building a modern Application with DataFrames
Spark Summit
 
Lab manual asp.net
Lab manual asp.netLab manual asp.net
Lab manual asp.net
Vivek Kumar Sinha
 
Shraddha weka
Shraddha wekaShraddha weka
Shraddha weka
shraddha18
 
Database access and JDBC
Database access and JDBCDatabase access and JDBC
Database access and JDBC
Fulvio Corno
 

What's hot (9)

Data Source API in Spark
Data Source API in SparkData Source API in Spark
Data Source API in Spark
 
(ATS4-APP05) What's new in Isentris 4.0SP1
(ATS4-APP05) What's new in Isentris 4.0SP1(ATS4-APP05) What's new in Isentris 4.0SP1
(ATS4-APP05) What's new in Isentris 4.0SP1
 
ESSIR LivingKnowledge DiversityEngine tutorial
ESSIR LivingKnowledge DiversityEngine tutorialESSIR LivingKnowledge DiversityEngine tutorial
ESSIR LivingKnowledge DiversityEngine tutorial
 
R to Forecast Solr Activity - Patrick Beaucamp, Bpm-Conseil
R to Forecast Solr Activity - Patrick Beaucamp, Bpm-ConseilR to Forecast Solr Activity - Patrick Beaucamp, Bpm-Conseil
R to Forecast Solr Activity - Patrick Beaucamp, Bpm-Conseil
 
Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...
Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...
Using Crowdsourced Images to Create Image Recognition Models with Analytics Z...
 
Building a modern Application with DataFrames
Building a modern Application with DataFramesBuilding a modern Application with DataFrames
Building a modern Application with DataFrames
 
Lab manual asp.net
Lab manual asp.netLab manual asp.net
Lab manual asp.net
 
Shraddha weka
Shraddha wekaShraddha weka
Shraddha weka
 
Database access and JDBC
Database access and JDBCDatabase access and JDBC
Database access and JDBC
 

Similar to EA User Group London 2018 - Extending EA with custom scripts to cater for specific needs and user requests using Sparx API

.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
mwillmer
 
What's New in Visual Studio 2008
What's New in Visual Studio 2008What's New in Visual Studio 2008
What's New in Visual Studio 2008
Acend Corporate Learning
 
Utilisation de MLflow pour le cycle de vie des projet Machine learning
Utilisation de MLflow pour le cycle de vie des projet Machine learningUtilisation de MLflow pour le cycle de vie des projet Machine learning
Utilisation de MLflow pour le cycle de vie des projet Machine learning
Paris Data Engineers !
 
Angularjs2 presentation
Angularjs2 presentationAngularjs2 presentation
Angularjs2 presentation
dharisk
 
Pratk kambe rac
Pratk kambe racPratk kambe rac
Pratk kambe rac
Pratik Kambe
 
Eclipse Modeling Framework
Eclipse Modeling FrameworkEclipse Modeling Framework
Eclipse Modeling Framework
Ajay K
 
Implementing one feature set in two JavaScript engines (Web Engines Hackfest ...
Implementing one feature set in two JavaScript engines (Web Engines Hackfest ...Implementing one feature set in two JavaScript engines (Web Engines Hackfest ...
Implementing one feature set in two JavaScript engines (Web Engines Hackfest ...
Igalia
 
Alteryx SDK
Alteryx SDKAlteryx SDK
Alteryx SDK
James Dunkerley
 
Eclipse e4 Overview
Eclipse e4 OverviewEclipse e4 Overview
Eclipse e4 Overview
Lars Vogel
 
Angular 2 Essential Training
Angular 2 Essential Training Angular 2 Essential Training
Angular 2 Essential Training
Patrick Schroeder
 
Building Push Triggers for Logic Apps
Building Push Triggers for Logic AppsBuilding Push Triggers for Logic Apps
Building Push Triggers for Logic Apps
BizTalk360
 
ISI work
ISI workISI work
ISI work
dgarijo
 
C++ Programming
C++ ProgrammingC++ Programming
C++ Programming
C++ ProgrammingC++ Programming
C++ Programming
Rounak Samdadia
 
Module design pattern i.e. express js
Module design pattern i.e. express jsModule design pattern i.e. express js
Module design pattern i.e. express js
Ahmed Assaf
 
Eclipse 40 - Eclipse Summit Europe 2010
Eclipse 40 - Eclipse Summit Europe 2010Eclipse 40 - Eclipse Summit Europe 2010
Eclipse 40 - Eclipse Summit Europe 2010
Lars Vogel
 
Visual studio 2008
Visual studio 2008Visual studio 2008
Visual studio 2008
Luis Enrique
 
ADO.NET Entity Framework DevDays
ADO.NET Entity Framework DevDaysADO.NET Entity Framework DevDays
ADO.NET Entity Framework DevDays
ukdpe
 
Whidbey old
Whidbey old Whidbey old
Whidbey old
grenaud
 
Prompt engineering for iOS developers (How LLMs and GenAI work)
Prompt engineering for iOS developers (How LLMs and GenAI work)Prompt engineering for iOS developers (How LLMs and GenAI work)
Prompt engineering for iOS developers (How LLMs and GenAI work)
Andrey Volobuev
 

Similar to EA User Group London 2018 - Extending EA with custom scripts to cater for specific needs and user requests using Sparx API (20)

.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
 
What's New in Visual Studio 2008
What's New in Visual Studio 2008What's New in Visual Studio 2008
What's New in Visual Studio 2008
 
Utilisation de MLflow pour le cycle de vie des projet Machine learning
Utilisation de MLflow pour le cycle de vie des projet Machine learningUtilisation de MLflow pour le cycle de vie des projet Machine learning
Utilisation de MLflow pour le cycle de vie des projet Machine learning
 
Angularjs2 presentation
Angularjs2 presentationAngularjs2 presentation
Angularjs2 presentation
 
Pratk kambe rac
Pratk kambe racPratk kambe rac
Pratk kambe rac
 
Eclipse Modeling Framework
Eclipse Modeling FrameworkEclipse Modeling Framework
Eclipse Modeling Framework
 
Implementing one feature set in two JavaScript engines (Web Engines Hackfest ...
Implementing one feature set in two JavaScript engines (Web Engines Hackfest ...Implementing one feature set in two JavaScript engines (Web Engines Hackfest ...
Implementing one feature set in two JavaScript engines (Web Engines Hackfest ...
 
Alteryx SDK
Alteryx SDKAlteryx SDK
Alteryx SDK
 
Eclipse e4 Overview
Eclipse e4 OverviewEclipse e4 Overview
Eclipse e4 Overview
 
Angular 2 Essential Training
Angular 2 Essential Training Angular 2 Essential Training
Angular 2 Essential Training
 
Building Push Triggers for Logic Apps
Building Push Triggers for Logic AppsBuilding Push Triggers for Logic Apps
Building Push Triggers for Logic Apps
 
ISI work
ISI workISI work
ISI work
 
C++ Programming
C++ ProgrammingC++ Programming
C++ Programming
 
C++ Programming
C++ ProgrammingC++ Programming
C++ Programming
 
Module design pattern i.e. express js
Module design pattern i.e. express jsModule design pattern i.e. express js
Module design pattern i.e. express js
 
Eclipse 40 - Eclipse Summit Europe 2010
Eclipse 40 - Eclipse Summit Europe 2010Eclipse 40 - Eclipse Summit Europe 2010
Eclipse 40 - Eclipse Summit Europe 2010
 
Visual studio 2008
Visual studio 2008Visual studio 2008
Visual studio 2008
 
ADO.NET Entity Framework DevDays
ADO.NET Entity Framework DevDaysADO.NET Entity Framework DevDays
ADO.NET Entity Framework DevDays
 
Whidbey old
Whidbey old Whidbey old
Whidbey old
 
Prompt engineering for iOS developers (How LLMs and GenAI work)
Prompt engineering for iOS developers (How LLMs and GenAI work)Prompt engineering for iOS developers (How LLMs and GenAI work)
Prompt engineering for iOS developers (How LLMs and GenAI work)
 

Recently uploaded

Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
Neo4j
 
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham HillinQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
LizaNolte
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
Fwdays
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
ScyllaDB
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
christinelarrosa
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
AWS Certified Solutions Architect Associate (SAA-C03)
AWS Certified Solutions Architect Associate (SAA-C03)AWS Certified Solutions Architect Associate (SAA-C03)
AWS Certified Solutions Architect Associate (SAA-C03)
HarpalGohil4
 
From Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMsFrom Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMs
Sease
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
Mydbops
 
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
AlexanderRichford
 
A Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's ArchitectureA Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's Architecture
ScyllaDB
 
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance PanelsNorthern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving
 
AI in the Workplace Reskilling, Upskilling, and Future Work.pptx
AI in the Workplace Reskilling, Upskilling, and Future Work.pptxAI in the Workplace Reskilling, Upskilling, and Future Work.pptx
AI in the Workplace Reskilling, Upskilling, and Future Work.pptx
Sunil Jagani
 
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdfLee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
leebarnesutopia
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
UiPathCommunity
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!
Ortus Solutions, Corp
 

Recently uploaded (20)

Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
 
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham HillinQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
AWS Certified Solutions Architect Associate (SAA-C03)
AWS Certified Solutions Architect Associate (SAA-C03)AWS Certified Solutions Architect Associate (SAA-C03)
AWS Certified Solutions Architect Associate (SAA-C03)
 
From Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMsFrom Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMs
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
 
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
 
A Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's ArchitectureA Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's Architecture
 
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance PanelsNorthern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
 
AI in the Workplace Reskilling, Upskilling, and Future Work.pptx
AI in the Workplace Reskilling, Upskilling, and Future Work.pptxAI in the Workplace Reskilling, Upskilling, and Future Work.pptx
AI in the Workplace Reskilling, Upskilling, and Future Work.pptx
 
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdfLee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!
 

EA User Group London 2018 - Extending EA with custom scripts to cater for specific needs and user requests using Sparx API

  • 1. EXTENDING EA WITH CUSTOM SCRIPTS TO CATER FOR SPECIFIC NEEDS AND USER REQUESTS LONDON EAUG 2018 Blog: www.umlchannel.com Add-in: www.eautils.com Twitter: @umlchannel Guillaume FINANCE
  • 2. CONTENT 03. SCRIPTS HELPERS 04. EA-MATIC TRIGGERED SCRIPTS 02. EA SCRIPTS OVERVIEW 01. INTRODUCTION 2 05. DEBUG & HINTS 06. DEMONSTRATION
  • 3. Tool customization LANGUAGE TOOL METHOD INTRODUCTION EA tool customization 3 Model-based approach pillars
  • 4. Custom project structure Stereotypes/UML Profiles, toolbars Custom searches INTRODUCTION 4 EA tool customization
  • 5. Custom EA User Interface (13.5) New features using EA API… INTRODUCTION EA Scripts 5 EA tool customization
  • 6. Why do we need scripts? Replace repetitive tasks performed by users INTRODUCTION Custom Excel publication Update details in Excel Work with Excel Custom tools and solutions integration Model QA And much more! 6
  • 7. Internal use Why do we need scripts? INTRODUCTION 7 EA users (analysts, architects…) Stakeholders, client… Method & processes, model consistency… Third party tools Outside people & applications
  • 8. Alternatives in using EA API INTRODUCTION EA add-ins 3rd party tools, ext. scripts Excel macros EA Scripts Installation User Interface Language(s) None - import file in the project, available for all users VBScript, JavaScript, JScript Message or Input box, system output… 8 EA DATA
  • 9. Alternatives in using EA API INTRODUCTION EA add-ins 3rd party tools, ext. scripts Excel macros EA Scripts Installation User Interface Language(s) None - import file in the project, available for all users VBScript, JavaScript, JScript Enhanced windows, system output… Installation on all clients, available to use with any project C#, VB.Net, Java, C++… Message or Input box, system output… 9 EA DATA
  • 10. Alternatives in using EA API INTRODUCTION EA add-ins 3rd party tools, ext. scripts Excel macros EA Scripts Installation User Interface Language(s) None - import file in the project, available for all users VBScript, JavaScript, JScript Enhanced windows, system output… Installation on all clients, available to use with any project C#, VB.Net, Java, C++… Optional Linked with the chosen language C#, VB.Net, Java, C++, Python, Perl… Message or Input box, system output… 10 EA DATA
  • 11. Alternatives in using EA API INTRODUCTION EA add-ins 3rd party tools, ext. scripts Excel macros EA Scripts Installation User Interface Language(s) None - import file in the project, available for all users VBScript, JavaScript, JScript Enhanced windows, system output… Installation on all clients, available to use with any project C#, VB.Net, Java, C++… Optional Linked with the chosen language C#, VB.Net, Java, C++, Python, Perl… n/a (Excel required) Excel Excel VBA Message or Input box, system output… 11 EA DATA
  • 12. Alternatives in using EA API INTRODUCTION EA add-ins 3rd party tools, ext. scripts Excel macros EA Scripts Installation User Interface Language(s) None - import file in the project, available for all users VBScript, JavaScript, JScript Enhanced windows, system output… Installation on all clients, available to use with any project C#, VB.Net, Java, C++… Optional Linked with the chosen language C#, VB.Net, Java, C++, Python, Perl… n/a (Excel required) Excel Excel VBA Message or Input box, system output… 12 EA DATA Web applications Custom tools integration
  • 13. Alternatives in using EA API INTRODUCTION EA add-ins 3rd party tools, ext. scripts Excel macros EA Scripts Installation User Interface Language(s) None - import file in the project, available for all users VBScript, JavaScript, JScript Enhanced windows, system output… Installation on all clients, available to use with any project C#, VB.Net, Java, C++… Optional Linked with the chosen language C#, VB.Net, Java, C++, Python, Perl… n/a (Excel required) Excel Excel VBA Message or Input box, system output… 13 EA DATA Web applications Custom tools integration Compatible with frequent releases for a large group of users
  • 14. CONTENT 03. SCRIPTS HELPERS 04. EA-MATIC TRIGGERED SCRIPTS 02. EA SCRIPTS OVERVIEW 01. INTRODUCTION 14 05. DEBUG & HINTS 06. DEMONSTRATION
  • 15. Script Group Types 18 A script is defined under a group EA SCRIPTS OVERVIEW Main group types Scripts under a Normal Group are available from the Scripting view Scripts under a Project Browser Group are available from the Scripting view or via a right click in the Project Browser Scripts under a Diagram Group are available from the Scripting view or via a right click in a diagram
  • 16. Scripts organization EA SCRIPTS OVERVIEW Reserved for the scripts administrator/dev team Libraries of reusable functions and routines Users scripts, available from a diagram or the Project Browser Use Groups to organize your scripts Example: 16
  • 17. Naming conventions EA SCRIPTS OVERVIEW Define prefixes to group and identify script functions Example: XLS = Excel related scripts (XLS-1 = import/export, XLS-2 = others) QA = Quality related (QA-1 = cleaning, QA-2 = stats, QA-3 = controls) TSK = Automated tasks (TSK-1 = generate, TSK-2 = migrate, TSK-3 = update) SEC = Users, groups and permissions XT = Extract EA information 17 New order
  • 18. Re-used script functions EA SCRIPTS OVERVIEW Project Browser and Diagram scripts + Common script 18 «Project Browser script» XLS-1-c-Excel Export Class Details from Branch «Diagram script» XLS-1-e-Excel Export Class Details «Normal script» ExportClassDetails-Common + processPackage() + processDiagram() - exportClassElements() Exports details of EA Elements … 1- Located in the provided package (processPackage) 2- Or matching Diagram Objects in the provided Diagram List (processDiagram) Both call exportClassElements private function Calls processPackage with the current package Calls processDiagram with the current diagram Re-used script
  • 19. EA API Methods EA Automation Interface provides a way of accessing the internals of Enterprise Architect models EA SCRIPTS OVERVIEW Repository Package EA API Object Model Element, Connector, Diagram, etc. set parentPkg = Repository.GetPackageByID(curElement.PackageID): element’s parent package set curElement = Repository.GetElementByID(selectedDiagObject.ElementID): element matching a diagram object Using Object methods - VBScript examples: 19 Repository + GetDiagramByGuid(String): Object + Execute(String): Void + GetAttributeByGuid(String): Attribute + GetElementsByQuery(String, String): Collection + SQLQuery(String): String + GetAttributeByID(Int32): Attribute + GetElementByID(Int32): Element + GetPackageByID(Int32): Package + GetDiagramByID(Int32): Diagram + GetConnectorByID(Int32): Connector + OpenDiagram(Int32): Void + GetElementByGuid(String): Element + GetConnectorByGuid(String): Connector «property» + IsSecurityEnabled(): Boolean + ProjectGUID(): String Package «property» + Name(): String + Packages(): Collection + Elements(): Collection + Diagrams(): Collection + Notes(): String + PackageID(): Int32 + PackageGUID(): String + TreePos(): Int32 + Element(): Element + Alias(): String Element + Update(): Boolean + Refresh(): Void «property» + Name(): String + TaggedValues(): Collection + Notes(): String + ElementGUID(): String + Stereotype(): String + Type(): String + ElementID(): Int32 + PackageID(): Int32 + Methods(): Collection + Attributes(): Collection + ClassifierID(): Int32 + TreePos(): Int32 + ObjectType(): ObjectType + Properties(): Properties provides an entry point to the model packages and collections e.g. a Class, Use Case or an Object The classes contain anon-exhaustive list of operations and properties. *1 1
  • 20. Run SQL queries against the model EA SCRIPTS OVERVIEW When a query or update cannot be achieved via a method. SQL queries can be used … 20 To select specific elements, preventing time consuming loops. e.g. select datatype stereotyped Classes with the name matching the given variable; SELECT Object_ID FROM t_object WHERE (Object_Type = 'Class' and (Stereotype = 'datatype')) and name = '"&attributeType&"'" To address performance issues related. Example with a bulk creation of ~1000 attributes : API method call execution time: 120 minutes set elementAttr = elt.Attributes.AddNew("&attrName&","") elementAttr.Update() API method call with a SQL insert execution time : 4 minutes insert into t_attribute(object_id, name, ea_guid) values …
  • 21. Use SQL queries EA SCRIPTS OVERVIEW 21 Repository object available methods: Repository.GetElementSet(query,2) : returns a collection of EA elements according to the SQL query
  • 22. Use SQL queries EA SCRIPTS OVERVIEW 22 Repository object available methods: Repository.GetElementSet(query,2) : returns a collection of EA elements according to the SQL query Repository.SQLQuery(query) : returns an XML formatted string value (SELECT queries only)
  • 23. Use SQL queries EA SCRIPTS OVERVIEW 23 Repository object available methods: Repository.GetElementSet(query,2) : returns a collection of EA elements according to the SQL query Repository.SQLQuery(query) : returns an XML formatted string value (SELECT queries only) Repository.Execute(query) : runs a query (UPDATE/DELETE/INSERT)
  • 24. Use SQL queries EA SCRIPTS OVERVIEW 24 Be careful when running UPDATE/DELETE/INSERT queries, it can delete or break your model! Queries must be compatible with the used DBMS (MySQL, SQL Server, Postgres, Oracle, Jet/EAP) e.g. apply the right asterisk wild card  * vs % Use Repository.RepositoryType method to get the DB name e.g. POSTGRES Use EA SQL Scratch pad To build queries (IntelliSense available: Ctrl+Space) To test and fix queries from the DEBUG System Output
  • 25. Documentation EA SCRIPTS OVERVIEW 25 Object Model API: see EA User Guide EA DB schema: generate a reverse (98 tables) http://www.sparxsystems.com/enterprise_architect_user_guide/14.0/automation/reference.html
  • 26. CONTENT 03. SCRIPTS HELPERS 04. EA-MATIC TRIGGERED SCRIPTS 02. EA SCRIPTS OVERVIEW 01. INTRODUCTION 26 05. DEBUG & HINTS 06. DEMONSTRATION
  • 27. For the developer SCRIPTS HELPERS 27 Scripting variables used bShowOutput = false 'bShowOutput = true sOutputPath = "" 'sOutputPath = "C:UsersGFIDesktop" dim outHeader outHeader = " | XLS_1-Excel Export Class Details from Branch" Debug Mode if (bShowOutput) then Session.Output SQL end if z Prompt for a Folder? Script name for the System Output Session.Output Now & outHeader & " - Starting" Dev Helper
  • 28. For the developer SCRIPTS HELPERS 28 Scripting source EA project Publication EA project Target EA project XML file Export reference data (Automation Scripts) XML file Import reference data Export reference data (Automation Scripts) XML file Import reference data Delete temporary script groups SCRIPT: Delete temp scripts Export reference data (Automation Scripts) XML file Import reference data Delete temporary script groups SCRIPT: Delete temp scripts Disable the scripting Debug Mode SCRIPT: Set DEBUG OFF Export reference data (Automation Scripts) All scripts are exported (no selection available) Publication process : DEMO XML file Import reference data Delete temporary script groups SCRIPT: Delete temp scripts Disable the scripting Debug Mode SCRIPT: Set DEBUG OFF XML file Export reference data (Automation Scripts) Export reference data (Automation Scripts) XML file Import reference data Delete temporary script groups SCRIPT: Delete temp scripts Disable the scripting Debug Mode SCRIPT: Set DEBUG OFF XML file Export reference data (Automation Scripts) Export reference data (Automation Scripts) Import reference data Published scripts available to install EA Support EA AdminEA Support Deletes reserved scripts Updates all scripts 'bShowOutput = true 'sOutputPath = "C:UsersGFIDesktop" Dev Helper Dev working project Intermediary project (blank) Client project
  • 29. For the users SCRIPTS HELPERS 29 Store the last selected folder for the input or output file(s) Save time with the option to reuse the previous file location Built-in help DEMO Apply scripts filters Workaround for the lack of sub menus with 15+ scripts User Helper
  • 30. CONTENT 03. SCRIPTS HELPERS 04. EA-MATIC TRIGGERED SCRIPTS 02. EA SCRIPTS OVERVIEW 01. INTRODUCTION 30 05. DEBUG & HINTS 06. DEMONSTRATION
  • 31. Automatically triggered scripts for users EA-MATIC ADD-IN 31 ea-Matic is a free add-in by Geert Bellekens. ea-Matic can trigger a script with an associated event. Replaces users repetitive tasks. DEMO EA broadcast events are sent to all add-ins. e.g. EAOnPostNewElement is received when a new element is created bellekens.com/ea-matic 'EA-Matic 'a new connector has been created. function EA_OnPostNewConnector(Info) 'get the connector id dim connectorID, newConnector connectorID = Info.Get("ConnectorID") set newConnector = Repository.GetConnectorByID(connectorID) MsgBox "New connector type: " & newConnector.Type end function “Magic keyword” User Helper Associated event Add-in installed only for the target users.
  • 32. CONTENT 03. SCRIPTS HELPERS 04. EA-MATIC TRIGGERED SCRIPTS 02. EA SCRIPTS OVERVIEW 01. INTRODUCTION 32 05. DEBUG & HINTS 06. DEMONSTRATION
  • 33. Principles SCRIPT DEBUGGING 33 Script debugging aids in the development and maintenance of scripts. Set Breakpoints to step over/into/out. View local variables values at the time of execution. Start Debug Run Script
  • 34. Code editor key shortcuts HINTS 34 Ctrl+F2 to set bookmarks, F2/Shift+F2 go to next or previous Ctrl+Shift+C = Toggle line comment on selection Ctrl+Space = Intellisense Shift+Alt+Return = Fullscreen Ctrl+U = to lowercase, Ctrl+Shift+U = to uppercase Ctrl+keypad(-) Zoom out, Ctrl+keypad(+) Zoom in, Ctrl+keypad(/) restore
  • 35. Various HINTS 35 Search in Scripts Use Sparx EA built-in libraries
  • 36. CONTENT 03. SCRIPTS HELPERS 04. EA-MATIC TRIGGERED SCRIPTS 02. EA SCRIPTS OVERVIEW 01. INTRODUCTION 36 05. DEBUG & HINTS 06. DEMONSTRATION
  • 37. Internal use DEMONSTRATION 37 EA users Stakeholders, client… Method Third party tools Outside applications & people Standards Lock/unlock Branch Versions Migrate Diagrams Attributes mapping User Helper Move classes/tables with criteria (prefix, attr count) QA Compare model with template Manage EA user permissions Admin UML to JDL Generator (JHipster Entities) Main topics
  • 38. Main topics DEMONSTRATION 38 DEMO EA User Group London 2018 Author: Guillaume FINANCE | Blog: www.umlchannel.com | EA add-in: www.eautils.com Extending EA with custom scripts
  • 39. 39 Blog: www.umlchannel.com Add-in: www.eautils.com Twitter: @umlchannel LinkedIn: fr.linkedin.com/in/guillaumefinance Guillaume FINANCE CONTACT