The CATIA Magic adapter supports extraction of traceability information from CATIA Magic projects.
The CATIA Magic data access configuration specifies the Teamwork Cloud server to connect and the projects to use.
Open the ANALYZE configuration with the ANALYZE configuration editor, and add a new data access as described in section "Data accesses".
Select Dassault Catia Magic as data access type.
Supported keywords:
Sample configuration:
host "twcloud.itemis.de"
port 8443
ssl true
rest-api-port 8111
rest-api-path "/osmc"
projects {
"climate control system.MASTER" revision 4
}
In the example above, ANALYZE will connect to a Teamwork Cloud server at https://twcloud.itemis.de:8443 (using the REST API at https://twcloud.itemis.de:8111/osmc). ANALYZE will consider elements from revision 4 of the project ‚climate control system.MASTER’.
When you first start ANALYZE with the adapter enabled, a dialog will ask you for a user name, password, client-identity & client-secret for the login. You can store this information in Eclipse’s Secure Store such that you don’t need to re-enter it later. If you don’t know them, you will need to ask your Teamwork cloud administrator for a client-identity & client-secret.
You can also provide the login credentials as java system properties
CATIA_TWC_LOGIN_USERNAME,
CATIA_TWC_LOGIN_PASSWORD,
CATIA_TWC_LOGIN_CLIENT_ID &
CATIA_TWC_LOGIN_CLIENT_SECRET.
You can set these properties either directly via the the command line or in a configuration file that you specify with ANALYZE’s
--properties command line option (see
Executing itemis ANALYZE in batch mode ). Alternatively, you can define environment variables with the same names.
Open the ANALYZE configuration with the ANALYZE configuration editor, and add a new artifact type as described in section "Artifact types".
Select your previously-configured Catia Magic data access in the Data access drop-down list.
By default ALL the model elements from your Catia Magic Project element will be included. Usually this is a large amount of data and it is sensible to add filters to reduce the number of elements included.
You can filter by metatype, stereotype & namespace.
Supported keywords:
Sample configuration:
subset stereotype "Block"
subset namespace "Data::Climate Control System::Test"
map {
id to attribute(UUID)
type to attribute(Metatype)
}
In this example only model elements that have a stereotype named ‚Block’ applied to them will be included as Artifacts, and only if those elements are in the package ‚Data::Climate Control System::Test’ or any package transitively contained below it.
The ANALYZE attributes ‚id’ and ‚type’ will correspondingly contain the ‚UUID’ and actual ‚Metatype’ of the Catia Magic model elements.
The Catia Magic adapter allows to specify which links itemis ANALYZE should import from the Catia Magic data access. Make sure that the required artifact types have been configured first.
Open the ANALYZE configuration with the ANALYZE configuration editor, and add a new link type as described in section "Configuring a link type".
The configuration follows the same format as the Artifact type Configuration with two differences:
Sample configuration:
subset metatype uml.Association
subset namespace "Data::Climate Control System::Test"
map {
id to attribute(UUID)
}
link source is B
In this example only model elements that are Associations will be included as Links, and only if those elements are in the packages ‚Data::Climate Control System::Test’ or any package transitively contained below it.
The UUID of the Association is added as an attribute ‚id’ on the corresponding ANALYZE link.
Additionally the link direction is specified, with the source being Artifact B.