ARIS Repository API - Technical Introduction
ARIS Repository API - Technical Introduction
REPOSITORY API
TECHNICAL INTRODUCTION
Contents
Contents ........................................................................................................................................................... I
1 Introduction ............................................................................................................................................. 1
3 Login/Logout .......................................................................................................................................... 3
3.1 Obtaining a UMC session token ............................................................................................. 3
3.2 Releasing a UMC session token ............................................................................................. 5
13 Move an item......................................................................................................................................... 27
14 Attributes .............................................................................................................................................. 28
14.1 Retrieval .................................................................................................................................... 29
14.2 Creation..................................................................................................................................... 30
14.3 Updating or creation for existing item ............................................................................... 31
14.4 Deleting an attribute .............................................................................................................. 32
14.5 Styled values for text attributes ......................................................................................... 33
15 Assignments ......................................................................................................................................... 35
18 Paging ................................................................................................................................................... 40
I
REPOSITORY API TECHNICAL INTRODUCTION
21 Legal information................................................................................................................................. 52
21.1 Documentation scope............................................................................................................ 52
21.2 Support ..................................................................................................................................... 53
II
REPOSITORY API TECHNICAL INTRODUCTION
1 Introduction
This document provides additional information for accessing an ARIS repository via the ARIS
REST API. It should be considered as a supplement to the official API documentation available
on every running ARIS Server and ARIS Design Server under
http://<servername:port>/apidocs. If you do not specify a port number and use
http://<servername>/apidocs instead, the default port is used, for example, 80.
1
REPOSITORY API TECHNICAL INTRODUCTION
2 General principles
The ARIS RESTful APIs are designed to access an ARIS repository by apps typically
running on mobile devices. It is not meant as a replacement for other ways to access an
ARIS repository, for example, the ARIS Report API. Therefore, it has various limitations
with respect to functionality that you might have expected.
Every call to the API is atomic: either the operation succeeds or fails.
Every call to the API requires a valid API cookie/token from ARIS User Management.
Many calls have obligatory and/or optional URL parameters. All parameter values must be
URL-encoded as they may contain special characters.
If URL parameters are passed that are unknown or not the correct ones for the specific
method or misspelled, then they are silently ignored. This may lead to an unexpected
outcome of the requested operation.
Many calls require a database language as parameter. If not given, the fallback language
of the current database is used.
Many operations require an ARIS Method filter GUID as parameter. If not given, a specific
auto-selection mechanism chooses the right filter, like to a login on the ARIS portal. It is
strongly recommended to pass the desired filter as parameter which is also much faster.
The result objects may contain method data, for example, typename. Method data is
delivered in the language from the client’s HTTP header ("accept-language").
Alternatively, you can pass an optional URL parameter methodlanguage in order to set
the method language directly.
For read-requests, there is an absolute result size limit. The limit is typically 100,000 for
object items and 10,000 for all other items. like models or groups (different limits may be
applicable depending on the user license or server settings).
This means that the sum of all result items from all paging requests cannot exceed the
absolute result size limit (page 40).
For write-requests, for example the creation of objects, the limit is 500 items per request
Date parameters must be provided and are returned in UTC in the RFC 3339 Internet
format YYYY-MM-DD, and for timestamps in UTC in the RFC 3339 Internet Zulu time
format is needed YYYY-MM-DD'T'HH:MM:SS'Z', for example, 2023-01-22T08:22:55Z.
2
REPOSITORY API TECHNICAL INTRODUCTION
3 Login/Logout
For all API calls, a valid token from ARIS User Management (also known as UMC) is required.
The token must be obtained by calling a dedicated method from the UMC API. It is not allowed
to use a standard UMC token obtained by logging in to the Connect portal.
The token must be included in all subsequent API calls as URL parameter (umcsession) or
added as cookie to the HTTP request.
EXAMPLE
POST
http://<servername:port>/umc/api/v2/tokens?tenant=default&name=system&pas
sword=manager
Response:
{
"csrfToken": "kZcIkOV2xrD3u3M5bKy9NvzY_TriwE1KmC6k6huUWxQ",
"token" : "eyJhbGciOiJIUzI1NisImp0aSI6FjY "
}
Remarks
All URL parameters must be urlencoded if they contain special characters like umlauts,
non-ASCII, etc.
3
REPOSITORY API TECHNICAL INTRODUCTION
A successful invocation returns a UMC cookie in the HTTP session and in its JSON
response body the UMC token as string. For subsequent API requests you can either
provide the cookie and hand over the token as URL parameter umcsession (do not forget
to urlencode the value).
The JSON response also contains a CSRF-token. This CSRF-token must be passed as URL
parameter csrfToken (urlencoded!) in subsequent requests if the REST API is called from
a web browser environment (i.e. if the user-agent provided by the client indicates a
browser like Chrome or Mozilla).
As many subsequent API calls as desired can be carried out as long as the UMC maximum
session duration limits are not exceeded. These limits can be viewed/edited in the User
management of the ARIS Administration:
When no more API requests will be sent for some time it is strongly recommended to
explicitly "logout" again in order to release the consumed ARIS license (see next chapter:
Releasing a UMC session token (page 5)).
4
REPOSITORY API TECHNICAL INTRODUCTION
It is also possible to obtain the token with preemptive basic authentication. In this case,
user name and password are not specified as parameters. Instead, the HTTP header must
contain the entry Authorization: Basic xyz, where xyz is the BASE64 representation of
the string name:password.
DELETE https://<servername:port>/umc/api/tokens/<token>
EXAMPLE
DELETE
http://<servername:port>/umc/api/tokens/eyJhbGciOiJIUzI1NisImp0aSI6FjY
5
REPOSITORY API TECHNICAL INTRODUCTION
GET http://<servername:port>/abs/api/methodology/objecttypes
This call returns a list with all available object types.
GET http://<servername:port>/abs/api/methodology/cxnbasetypes
This call returns a list with all available connection base types.
GET http://<servername:port>/abs/api/methodology/symboltypes
This call returns a list with all available symbol types.
GET http://<servername:port>/abs/api/methodology/attributetypes
This call returns a list with all available attribute types.
GET http://<servername:port>/abs/api/methodology/attributevaluetypes
This call returns a list with all available attribute value types.
The calls support four optional URL parameters: pagesize and pagetoken to control the
paging (see Paging (page 40)), methodfilter to retrieve the types which are allowed in this
filter, methodlanguage to specify the locale of the method types (see also General principles
(page 2)).
The result is a list with the method types. For each method type is returned the name, type
number, API name and GUID.
6
REPOSITORY API TECHNICAL INTRODUCTION
"apiname": "MT_BPMN_ALLOCATION_DIAGRAM",
"type_guid": ""
}
7
REPOSITORY API TECHNICAL INTRODUCTION
This call returns a list of all available databases for the current user. It is the same list that a
user would see when opening ARIS Architect.
For each database, its name, main group GUID, and some interesting flags are returned. It is
also possible to retrieve the maintained attributes by using the URL parameter attributes.
You can find more about attributes in section Retrieval (page 29).
GET
http://<servername:port>/abs/api/databases/United%20Motor%20Group?languag
e=en&attributes=all
This call returns more detailed information for the given database name: main-group GUID,
isversioned flag and ispublished flag, all maintained attributes in database language EN as
well as a list of all allowed method filters and database languages. Exactly one database
language will have the flag isalternative = true which means that it will be used as the
fallback database language if a request does not pass the URL parameter language.
In case of a versionable database, the existing change lists are returned as well.
8
REPOSITORY API TECHNICAL INTRODUCTION
9
REPOSITORY API TECHNICAL INTRODUCTION
EXAMPLE
[
{
"name": "A",
"user": null,
"description": null,
"sourceDatabaseName": "test_mv",
"sourceVersion": 1,
"targetDatabaseName": "test_mv",
"targetVersion": 2,
"enabled": true
}
]
GET
/api/databaseComparePair(dbPairName)
http://<servername:port>/abs/publishing/databaseComparePair/A
Parameter
dbPairName = A // Name of the database pair
10
REPOSITORY API TECHNICAL INTRODUCTION
EXAMPLE
{
"kind": "RESULT",
"request": "abs#getDatabaseComparePair",
"status": "OK",
"item_count": 1,
"items": [ {
"kind": "DATABASE",
"name": "A",
"user": null,
"description": null,
"sourceName": "test_mv",
"sourceVersion": 1,
"targetName": "test_mv",
"targetVersion": 2,
"enabled": false
} ]
}
11
REPOSITORY API TECHNICAL INTRODUCTION
Parameter
databasePairName = A //Name of the database pair
user = "" //Name of the responsible user
description = "" //Description of the pair
sourceDatabaseName = Test_mv //Name of the source database
sourceVersion = 1 //Version of the source database
targetDatabaseName = Test_mv //Name of the target database
targetVersion = 2 //Version of the target database
enabled = true //Enable the database pair
EXAMPLE
{
"kind": "RESULT",
"request": "abs#createDatabaseComparePair",
"status": "OK",
"item_count": 1,
"items": [ {
"kind": "DATABASE",
"name": "A",
"user": "",
"description": "",
"sourceName": "test_mv",
"sourceVersion": 1,
"targetName": "test_mv",
12
REPOSITORY API TECHNICAL INTRODUCTION
"targetVersion": 2,
"enabled": true
} ]
}
13
REPOSITORY API TECHNICAL INTRODUCTION
Parameter
dbPairName = A //Name of the database pair
EXAMPLE
{
"kind": "RESULT",
"request": "abs#createDatabaseComparePair",
"status": "OK",
"item_count": 1,
"items": [ {
"kind": "DATABASE",
"name": "A",
"user": null,
"description": null,
"sourceName": "test_mv",
"sourceVersion": 1,
"targetName": "test_mv",
"targetVersion": 2,
"enabled": true
} ]
}
14
REPOSITORY API TECHNICAL INTRODUCTION
Parameter
sourceDatabaseName = test_mv //Name of the source database
sourceVersion = 1 //Version of the source database
targetDatabaseName = test_mv //Name of the target database
targetVersion = 2 //Version of the target database
http://<servername:port>/abs/api/databaseComparePair?sourceDatabaseName=test_mv&s
ourceVersion=1&targetName=test_mv&targetVersion=2
EXAMPLE
{
"kind": "RESULT",
"request": "abs#deleteDatabaseComparePair",
"status": "OK",
"item_count": 0,
"items": []
}
This call returns null if everything is correct. Otherwise, all errors will be returned. The given
parameter searches and deletes all pairs. If the databases are the same, source and target are
exchangeable. All found database pairs are deleted even if it should just be one in the first
place.
DELETE
/api/databaseComparePair/{dbPairName}
http://<servername:port>/abs/publishing/databaseComparePair/A
Parameter
databasePairName = A //Name of the database pair
15
REPOSITORY API TECHNICAL INTRODUCTION
Deletes a database pair with the pair name. Only one database name is required for this call.
This call returns null if everything is correct. Otherwise, all errors are returned. The given
parameter searches and deletes all pairs.
EXAMPLE
{
"kind": "RESULT",
"request": "abs#deleteDatabaseComparePair",
"status": "OK",
"item_count": 0,
"items": []
}
16
REPOSITORY API TECHNICAL INTRODUCTION
7 Get an item
The ARIS API offers to retrieve groups, objects (definitions) and models. The desired item
must be identified by its ARIS GUID or a full CONNECT item-id (for example, c.process.United
Motor Group.CibrcP1SEdsnKQALzQzOTg.-1).
Identifying via group path + name is unsupported as this is possibly ambiguous.
EXAMPLE
GET
http://<servername:port>/abs/api/groups/United%20Motor%20Group/1191ae90-0
2f7-11dc-2729-000bcd0cce4e
By default, only the name attribute (AT_NAME) is included in the response. If you need more
attributes, the URL parameter attributes must be given. Possible values are
all: all non-empty attributes
a comma-separated list of attribute type numbers, API names or type-GUIDs (all of these
can be arbitrarily mixed)
Example: attributes = 1, AT_DESC, AT_AUTH // attribute name, description, author
Remarks
Connections are not supported.
Note: It is also possible to retrieve HTTP portal links that can be directly used in the browser
to access the item via the CONNECT portal. Add URL parameter withportallinks = true.
{
"kind": "LINK",
"method": "GET",
"href": "http://<servername:port>/#default/repository/a.model.United Motor
Group.CibrcP1SEdsnKQALzQzOTg.-1",
"rel": "REPO_MODEL" // CONNECT Repository View
},
17
REPOSITORY API TECHNICAL INTRODUCTION
{
"kind": "LINK",
"method": "GET",
"href": "http://<servername:port>/#default/thinclient/c.process.United
Motor Group.CibrcP1SEdsnKQALzQzOTg.-1",
"rel": "TC_MODEL" // CONNECT Designer View
},
{
"kind": "LINK",
"method": "GET",
"href": "http://
<servername:port>/abs/downloadClient/aris_database.jsp?configuration=ARIS
&apps
erver=myserver&database=United%20Motor%20Group&guid=0a26eb70-fd52-11db-27
29- 000bcd0cce4e&language=en_US&tenant=default",
"rel": "DC_MODEL" // CONNECT Download client
}
18
REPOSITORY API TECHNICAL INTRODUCTION
GET
http://<servername:port>/abs/api/groups/United%20Motor%20Group/4a713de0-5
d02-11e3-0fda-fd81e986d7e2/children
This call returns all subgroups of the group identified by the given GUID or CONNECT item-ID.
If you additionally need the models and/or objects in the group, you can add the URL
parameters withmodels=true or withobjects=true.
GET
http://<servername:port>/abs/api/groups/United%20Motor%20Group/4a713de0-5
d02-11e3-0fda-fd81e986d7e2/children?withmodels=true&withobjects=true
Remark
It also possible to retrieve an entire subtree by passing the URL parameter recursive=true.
Note
There is an absolute result size limit of 10,000 items (regardless of the page size you choose
and how many paging requests are sent).
If parameter withobjects=true and withmodels=false is used for retrieving subgroups and
objects, the limit is 100,000. If a group contains more than
10,000 subgroups or
more than 100,000 groups and objects (withobjects=true and withmodels=false),
you will not be able to retrieve them all.
The maximum number of subgroups that can be recursively retrieved is 10,000.
Depending on the ARIS license, other size limits may apply.
19
REPOSITORY API TECHNICAL INTRODUCTION
GET
http://<servername:port>/abs/api/models/United%20Motor%20Group/88ba40a0-c
fb6-11e0-2556-5c260a398437?withcontent=true
Remarks
Model objects/model connections are a blend of data from the occurrence and definition
levels. They do not contain any graphical information, such as dimension (width, height), and
no coordinates of positions and connection paths.
20
REPOSITORY API TECHNICAL INTRODUCTION
21
REPOSITORY API TECHNICAL INTRODUCTION
10 Create an item
The API offers support for creating groups and objects. For objects, groups and models, it is
possible to create attributes (or more correctly formulated in ARIS terminology: it is possible
to maintain attributes with a value). You can add multiple attributes in the same call. For all
added attributes, the same database language will be used (from URL parameter language).
Furthermore, it is possible to create an assignment relationship between an existing object
and an existing model.
Note:
The creation of models is not supported.
For already existing objects, groups, and models, it is possible to add new attributes.
(page 28)
EXAMPLE
Create a new group with name "My Subgroup" in the main group (GUID =
4a713de0-5d02-11e3-0fda-fd81e986d7e2)
POST
http://<servername:port>/abs/api/groups/United%20Motor%20Group?language=e
n&parent=4a713de0-5d02-11e3-0fda-fd81e986d7e2
Request body:
{
"kind": "GROUP",
"attributes": [
{
"kind": "ATTRIBUTE",
"type": "AT_NAME",
"value": "My Subgroup"
}
]
}
EXAMPLE
Create a new object of type 43 (OT_ORG_UNIT) with two attributes (AT_NAME and
AT_DESC). Database language = English; parent group =
4a713de0-5d02-11e3-0fda-fd81e986d7e2 (= main group)
22
REPOSITORY API TECHNICAL INTRODUCTION
POST
http://<servername:port>/abs/api/objects/United%20Motor%20Group?language=
en&parent=4a713de0-5d02-11e3-0fda-fd81e986d7e2
Request body:
{
"kind": "OBJECT",
"type": 43,
"attributes": [
{
"kind": "ATTRIBUTE",
"type": "AT_NAME",
"value": "My first OrgUnit "
},
{
"kind": "ATTRIBUTE",
"type": "AT_DESC",
"value": "This is the long description"
}
]
}
Remarks
The kind entries in the request body are redundant and not required.
There is a slight difference in the behavior whether creating an object or a group with a
duplicate name.
If you create a new group with the name X and there is already a group X in the desired
parent group, then the new group will automatically be renamed to X(1).
If you create a new object with name X and there is already an object X in the desired
parent group, then the new object has the name X, so there are two objects with the
name X.
23
REPOSITORY API TECHNICAL INTRODUCTION
EXAMPLE
PUT
http://<servername:port>/abs/api/models/United%20Motor%20Group/42ad5380-3
d0e-11e5-6479-22000b630ca4
Request body:
{
"modelobjects": [
{
"kind": "MODELOBJECT",
"occid": "#1",
"type" : 22,
"symbol": 335,
"attributes": [
{
"kind": "ATTRIBUTE",
"type": 1,
"value": "new function via model update"
}
]
},
{
"kind": "MODELOBJECT",
"occid": "#2",
"type" : 18,
"symbol": 1,
"attributes": [
{
"kind": "ATTRIBUTE",
"type": 1,
"value": "new event via model update"
}
]
}
],
"modelconnections": [
{
"kind": "MODELCONNECTION",
"type": 44,
"source_occid": "#1",
"target_occid": "#2"
}
24
REPOSITORY API TECHNICAL INTRODUCTION
]
}
Remarks
When creating objects as shown above, a new definition object is created. If you want to
reuse an already existing object, provide the GUID, for example,
{
"kind": "MODELOBJECT",
"occid": "#1",
"guid" : "4686bd20-3d0e-11e5-6479-22000b630ca4"
"type" : 22,
"symbol": 335
}
As model objects and model connections are created without any positional information,
they will be located one above the other in the upper left corner of the model. It is
possible to enforce an automatic layout of the model when it is opened for the first time
in ARIS Architect/Designer by passing the URL parameter layoutonopen=true.
Note: A user with ARIS API Mobile Access license can only create one model object or one
model connection in a single request.
25
REPOSITORY API TECHNICAL INTRODUCTION
DELETE
http://<servername:port>/abs/api/models/United%20Motor%20Group/1672a301-3
d14-
11e5-6479-22000b630ca4/objects?occid=(-7O3yxAzzRgN%3Au%3AL%2B-7RaSdNnA6hr
%3Ax%3AL%2B33%2Bc)
Remarks
Occ-IDs often contain special characters. It is important to ensure properly urlencoded
values.
In the request path, make sure to have /objects or /connections at the end, otherwise
the model itself will be deleted!
Note: A user with ARIS API Mobile Access license can only delete one model object or one
model connection in a single request (automatically deleted model connections are not
counted).
26
REPOSITORY API TECHNICAL INTRODUCTION
13 Move an item
It is possible to move an existing model, group, or object from its current location (i.e. parent
group) to some other group. Exception: the main group of a database cannot be moved.
The move can be done by an update operation (PUT) and passing the URL parameter
PARENT, along with the GUID of the desired new parent group.
Note: The creation of models is not supported.
EXAMPLE
Move the model identified by its GUID 31c0dc4d-467f-11d4-bb1d-00105a0ef4f4 to the group
with GUID 5ba90461-7ec4-11e3-01db-b51dcc951f78.
PUT
http://<servername:port>/abs/api/models/United%20Motor%20Group/
31c0dc4d-467f-11d4-bb1d-00105a0ef4f4?parent= 5ba90461-7ec4-11e3-01db-b51dcc951f78
Request body:
{} // or any desired additional update-data e.g. for attributes
27
REPOSITORY API TECHNICAL INTRODUCTION
14 Attributes
Attributes are no top-level items and are tightly bound to their parent item (database, object,
group, model). You can retrieve attributes only along with its parent item to which they
belong.
Attributes can be identified by an integer type number (for example, 1), the API name (for
example, AT_NAME) or a type GUID. These type identifiers can be freely mixed in the same
request and even in the same parameter, for example, in the URL parameter attributes.
Attributes are maintained in the database language as given by the URL parameter language.
If no such parameter is given, the default language of the current database is used.
Remarks
Currently, only a limited subset of attribute types is supported, especially integer, float,
text, timestamp, time, value attributes, binary.
Binary data must be sent as BASE64 encoded string.
28
REPOSITORY API TECHNICAL INTRODUCTION
14.1 Retrieval
You cannot retrieve an attribute on its own. You must retrieve the parent item (for example,
an object or a model to which the attribute belongs) by using an appropriate get-request and
specifying the attribute type(s) (URL parameter attributes) you want to have in the response.
If no attribute type is given, the value of the Name attribute (AT_NAME) is returned by default
(but not in case of a database).
EXAMPLES
Get the model with GUID bf2a9d60-7cb8-11dc-2729-000bcd0cce4e with all maintained
attributes.
GET
http://<servername:port>/abs/api/models/United%20Motor%20Group/bf2a9d60-7
cb8-11dc-2729-000bcd0cce4e?language=en&attributes=all
Get the model with the attributes Name (AT_NAME, type number 1), Description (AT_DESC),
and Status (AT_STATE_1). Attributes can be specified by type numbers or API names/type
GUIDs. These can be freely mixed in a comma-separated list.
GET
http://<servername:port>/abs/api/models/United%20Motor%20Group/bf2a9d60-7
cb8-11dc-2729-000bcd0cce4e?language=en&attributes=1,AT_DESC,AT_STATE_1
Get the details of the database United Motor Group including all maintained attributes.
GET
http://<servername:port>/abs/api/databases/United%20Motor%20Group?languag
e=en&attributes=all
29
REPOSITORY API TECHNICAL INTRODUCTION
14.2 Creation
You can create an attribute for all items (except databases) together with its parent in the
same request.
EXAMPLE
Create an object with the two attributes name and description.
POST
http://<servername:port>/abs/api/objects/United%20Motor%20Group?language=
en &parent=4a713de0-5d02-11e3-0fda-fd81e986d7e2
Request body:
{
"kind": "OBJECT",
"type": 43,
"attributes":
[
{
"kind": "ATTRIBUTE",
"type": "AT_NAME",
"value": "I am an OrgUnit!"
},
{
"kind": "ATTRIBUTE",
"type": 9,
"value": "This is the long description"
}
]
}
30
REPOSITORY API TECHNICAL INTRODUCTION
EXAMPLE
Update the name of an existing object and add the author attribute.
PUT
http://<servername:port>/abs/api/objects/United%20Motor%20Group/b7e90c56-
00cf-11e2-21d1-5c260a628455?language=en
Request body:
{
"attributes": [
{
"kind": "ATTRIBUTE",
"type": 1,
"value": "Just renamed it"
},
{
"kind": "ATTRIBUTE",
"type": "AT_AUTH",
"value": "I am the author"
}
]
}
31
REPOSITORY API TECHNICAL INTRODUCTION
DELETE
http://<servername:port>/abs/api/objects/United%20Motor%20Group/b7e90c56-
00cf- 11e2-21d1-5c260a628455/attributes?language=en&typenumbers=AT_DESC,
AT_AUTH
Remarks
Do not forget to have /attributes at the end of the URL path, otherwise you do a DELETE
on the parent object and it is gone!
The result of a successful delete operation is simply empty with STATUS = OK, for
example,
{
"kind": "RESULT",
"request": "abs#deleteObjectAttributes",
"status": "OK",
"item_count": 0,
"items": []
}
Note: Only one attribute can be deleted in a single request for users with an ARIS API Mobile
Access license.
32
REPOSITORY API TECHNICAL INTRODUCTION
"styled_value":
"<html><body>
<p style=\"margin-left:0;margin-bottom:0;
margin-top:0\"><b>my updated</b> description
</p>
</body></html>",
Remarks
The URL parameter withstyledtext is not required for write operations (POST, PUT).
If a write operation (POST, PUT) contains both value and styled_value, then
styled_value has precedence and value is basically ignored. According to standard ARIS
behavior, value will then contain a plain-text representation of the HTML from
styled_value.
Only a basic set of HTML is supported: <b>, <i>, <u>, <strike>, <ul>, <ol>, <li>, <br>, <p>,
<span>, <div>.
For styling information (margin, color, font-family, size), use an inline style attribute, for
example,
33
REPOSITORY API TECHNICAL INTRODUCTION
<span style=\"font-size:48pt;\">
<span style=\"font-family:Kokila;\">Hello World</span>
</span>
Unsupported HTML tags are silently ignored (only their text content will be considered).
Make sure to correctly escape JSON special characters, for example, \n must be escaped
as \\n and " as \".
If the HTML in styled_value does not contain any real formatting, a plain text value is set,
for example,
<html><body><p> My name is Bond. James Bond.</p></body></html>
Result
"value" : "My name is Bond. James Bond."
"styled_value" : null
34
REPOSITORY API TECHNICAL INTRODUCTION
15 Assignments
An assignment is simply a link between an existing object and an existing model. With the
ARIS Repository API, you can create and delete assignments. It is not possible to retrieve a
specific assignment; assignments are always included automatically in the response when
you retrieve an object.
EXAMPLE
Create an assignment
POST
http://<servername:port>/abs/api/objects/United Motor
Group/6aa1b167-fac0-11de-55c7-001a6b3c820f/assignment/a39aefb0-fa1c-11db-
2729-000bcd0cce4e
objectGUID (source of assignment)
modelGUID (target of assignment)
EXAMPLE
Delete an assignment
DELETE
http://<servername:port>/abs/api/objects/United Motor
Group/6aa1b167-fac0-11de-55c7-001a6b3c820f/assignment/a39aefb0-fa1c-11db-
2729-000bcd0cce4e
35
REPOSITORY API TECHNICAL INTRODUCTION
16 Model graphic
The ARIS API does not provide positional information when retrieving a model with its
contents. But it is possible to get a model graphic. It has format PNG (Portable Network
Graphics) and is returned as a BASE64-encoded string. There are two optional URL
parameters maxwidth and maxheight that allow you to control the size (in image pixels) of
the generated graphic.
EXAMPLE
GET
http://<servername:port>/abs/api/models/United%20Motor%20Group/0a26eb70-f
d52- 11db-2729-000bcd0cce4e/graphic
36
REPOSITORY API TECHNICAL INTRODUCTION
EXAMPLE
Find all models of type 13 (MT_EEPC), whose names start with Sale (written with small or
large s).
GET
http://<servername:port>/abs/api/databases/United%20Motor%20Group/find?ki
nd=MODEL&typefilter=13&language=en&attrfilter=AT_NAME=Sale
Remarks
Available item kinds: MODEL, OBJECT, GROUP
For all attributes: + (isMaintained), - (isNotMaintained)
For numbers, the usual operators are available: =, !=, >, <, >=, <=
For Boolean: = and !=
For text attributes: =
The parameter attrfilter may contain fully parenthesized expressions (parenthesis= { }),
combined with operators AND, OR.
Date values must be given in UTC in the RFC 3339 Internet format YYYY-MM-DD, for
example, 2021-10-15
Timestamp values must be given in UTC in the RFC 3339 Internet Zulu time format
YYYY-MM- DD'T'HH:MM:SS'Z', for example, 2021-10-15T08:22:55Z
37
REPOSITORY API TECHNICAL INTRODUCTION
Important: in case of a parenthesized expression, the search value must not contain
{ or }. If the search value must contain a curly parenthesis, pass an escaped character, for
example, \} when searching for text attributes.
The normal search behavior is similar to that of standard search engines: Contents of text
attributes are token-based, that is, typical separators, such as blanks or dashes (-), are
ignored. If the text attribute contains tokens from the search value (regardless of
order/position), this is considered a match.
URL parameter matchcase: if true, searching will be case-sensitive and order of tokens is
relevant
URL parameter exactsearch: if true, only exact matches are returned; special characters
and notably the asterisk ( * ) are interpreted as simple character; in addition, the order of
the tokens is important.
38
REPOSITORY API TECHNICAL INTRODUCTION
A*B returns all strings that start with A (A must be a string of length >=2, the first two
characters must be letters or digits) and end with B.
IMPORTANT NOTE
The search functionality described above is not intended to load large amounts of data from
an ARIS repository. Therefore, there is a result size limit (typically 100,000 items for
kind=OBJECT, otherwise 10,000; both limits are also depending on the user license). This limit
is absolute, that is, it is independent on the page size you choose and how many paging
requests are sent.
Example: If a search query is sent to get all models of EPC type and the database contains
15,000 such models, then only the first 10,000 hits can be retrieved (for example, by sending
50 paging requests with page size 100).
In general, a search request that leads to several thousand hits should always be refined with
more concrete search criteria.
39
REPOSITORY API TECHNICAL INTRODUCTION
18 Paging
Typically, when using the database-find operation from the previous chapter, many items will
be found and returned to the caller. A default page size of 100 is in effect. A different page
size can be indicated with the URL parameter pagesize. The maximum allowed page size
depends on the user's license and server settings.
If there are more items to be returned than the page size allows, the response will contain an
entry next_pagetoken. This indicates to the client that there is more data to load.
EXAMPLE
Request
http://<servername:port>/abs/api/databases/United%20Motor%20Group/find?ki
nd=MODEL&language=en&attrfilter=AT_NAME&wildcards=true&attrcriterion==S*
Response
{
"kind": "RESULT",
"request": "abs#find",
"status": "OK",
"item_count": "100",
"next_pagetoken": "1:100:guid",
"items": [
… 100 items here
]
}
In order to get the next page of results, the client must send the same request again and
add the page token, for example, as query parameter.
GET
http://<servername:port>/abs/api/databases/United%20Motor%20Group/find?ki
nd=MODEL&language=en&attrfilter=AT_NAME&wildcards=true&attrcriterion==S*&
pagetoken=1:100:guid
Response
{
"kind": "RESULT",
"request": "abs#find",
"status": "OK",
"item_count": "35",
"items": [
… remaining 35 items here
]
}
40
REPOSITORY API TECHNICAL INTRODUCTION
In the above example, the second response contains no entry next_pagetoken --> the client
knows that there are no more items to load.
Notes
The maximum allowed page size is 10,000 for object items and 1,000 for all other items
like models, groups, etc. If a page size is given that is too large, it will be silently corrected
to the allowed maximum.
Regardless of paging, there is an absolute size limit for the results depending on the
user license, typically 100,000 for object items and 10,000 for all other items like models,
groups, etc. For example, if you use page size 10,000 for getting object items or 1,000 for
getting models, at most 10 paging requests will return data. If the total result set is larger,
it is not possible to retrieve the remainder.
41
REPOSITORY API TECHNICAL INTRODUCTION
You can pass the URL parameter orderby in order to indicate a different sorting, for example,
…&orderby = name (order by attribute AT_NAME, ascending)
…&orderby = -name (order by attribute AT_NAME, descending)
42
REPOSITORY API TECHNICAL INTRODUCTION
20 Generic queries
Generic queries attempt to provide a kind of graph-based retrieval of items. Syntax and
functionality are similar to the XML-based transformation configuration used in ARIS.
Familiarity with these transformation configurations might therefore be helpful in
understanding the use of the generic queries.
The general idea is as follows:
A search context must be specified with which the query should start. The search
context can be a list of specific objects or models (defined as a comma-separated list of
GUIDs, for example, "start_guids" = "id1, id2, id3") or a list of object or model type
numbers ("start_types" = "6, 43, 78").
If the search context is made up of objects, the endpoint must be: /abs/api/objects/<db
name>/query
If the search context is made up of models, the endpoint must be: /abs/api/models/<db
name>/query
The search context must consist of GUIDs or type numbers representing either objects or
models. Mixing objects and models is not allowed.
Filter items that should be returned as result must be marked as TARGET.
Non-TARGET filter items can be marked as FILTER for clarity (not required).
Starting from the items defined by the search context, it is possible to find and retrieve
objects or models that can be reached from the start items through a sequence of filter
items. Each sequence is a nested path of items. Only one item of the TARGET function is
allowed within a single path.
Available properties for filter items:
type MODEL, OBJECT, CONNECTION, ASSIGNMENT, OCCURRENCE,
CONNECTIONOCCURRENCE
function FILTER, TARGET
direction IN, OUT (only allowed for items with type CONNECTION)
typenum comma-separated list of types
Type information (for the item property "typenum") can be numbers, API names, or
type-GUIDs. It is usually most efficient to use type numbers (integers). Use API names
(for example, OT_FUNC) if you want to make the JSON more human readable, or a
type-GUID in case of user-defined types.
43
REPOSITORY API TECHNICAL INTRODUCTION
Query with two parallel filter paths: the upper path returns all objects of type 6 or 43 to which
the start object has an incoming connection; the lower path returns all objects of type 6 or 43
to which the start object has an outgoing connection.
44
REPOSITORY API TECHNICAL INTRODUCTION
Remarks
Not all possible combinations of filter items lead to useful results. Only the use-case
examples listed below are officially supported. Other combinations might not work.
Although a generic query is of read-only nature, it must be sent as a POST request
because the query definition must be provided in the request body.
The request body must contain a JSON structure with the query, which is a nested list of
filter items.
Start items appear in the result as top-level entries (that is, the item_count in the
response reflects the number of these top-level items, not the number of all objects
found that match the filter criteria).
The descendants of each top-level node represent the TARGET objects that meet the
filter criteria; this list is empty if there was no match for the respective top-level item (=
start item).
45
REPOSITORY API TECHNICAL INTRODUCTION
EXAMPLE
POST
http://<servername:port>/abs/api/objects/United%20Motor%20Group/query
Request body:
{
"start_guids" : "ad687d6e-f19c-11db-2729-000bcd0cce4e",
"items" : [
{ "type" : "CONNECTION",
"direction" : "IN",
"items" : [
{ "type" : "OBJECT",
"typenum" : "6,43",
"function" : "TARGET"
}
]
},
{ "type" : "CONNECTION",
"direction" : "OUT",
"items" : [
{ "type" : "OBJECT",
"typenum" : "6,43",
"function" : "TARGET"
}
]
}
]
}
46
REPOSITORY API TECHNICAL INTRODUCTION
to the occurrence level. Within the CONNECTIONOCCURRENCE item, define the desired
connection and target object.
EXAMPLE
POST
http://<servername:port>/abs/api/objects/United%20Motor%20Group/query
Request body:
{
"start_guids":"ad687d6e-f19c-11db-2729-000bcd0cce4e",
"items":[
{
"type":"OCCURRENCE",
"items":[
{
"type":"CONNECTIONOCCURRENCE",
"items":[
{
"type":"CONNECTION",
"direction":"IN"
},
{
"type":"OCCURRENCE",
"items":[
{
"type":"OBJECT",
"typenum":"6,43",
"function":"TARGET"
}
]
}
]
}
]
}
]
}
The above query explicitly requires that there is a connection between the start object and
the target object. Sometimes it may be sufficient for your needs that there is a connection on
definition level, but you want the target object to have an occurrence, that is, that the target
is used in a model. This can be formulated as shown in the following example. Note that the
OCCURRENCE item must have a typenum property with the type of the symbol used for the
object occurrence.
47
REPOSITORY API TECHNICAL INTRODUCTION
EXAMPLE
POST
http://<servername:port>/abs/api/objects/United%20Motor%20Group/query
Request body:
{
"start_guids": "ad687d6e-f19c-11db-2729-000bcd0cce4e",
"items": [
{
"type": "CONNECTION",
"direction": "IN",
"items": [
{
"type": "OBJECT",
"typenum": "6",
"function": "TARGET",
"items": [
{
"type": "OCCURRENCE",
"typenum" : "ST_APPL_SYS_TYPE",
"function": "FILTER"
}
]
}
]
}
]
}
EXAMPLE
POST
http://<servername:port>/abs/api/objects/United%20Motor%20Group/query
Request body:
48
REPOSITORY API TECHNICAL INTRODUCTION
{ "start_guids":"6e285d97-b5a4-11e3-61a7-c1b8f41beb93",
"items":[
{
"start_guids" : "ad687d6e-f19c-11db-2729-000bcd0cce4e",
"items" : [
{
"type" : "OCCURRENCE",
"items" : [
{
"type" : "MODEL",
"typenum" : "13, 134",
"function" : "TARGET"
}
]
}
]
}
Example
POST
http://<servername:port>/abs/api/models/United%20Motor%20Group/query
Request body:
{ "start_guids":"6e285d97-b5a4-11e3-61a7-c1b8f41beb93",
"items":[
{
"type":"ASSIGNMENT",
"function":"FILTER",
"items":[
{
"type":"OBJECT",
"typenum":"22",
"function":"TARGET"
}
]
}
] }
49
REPOSITORY API TECHNICAL INTRODUCTION
Example
POST
http://<servername:port>/abs/api/models/United%20Motor%20Group/query
Request body:
{
"start_guids" : "45ad5550-f97c-11db-2729-000bcd0cce4e",
"items" : [
{
"type" : "OCCURRENCE",
"items" : [
{
"type" : "OBJECT",
"typenum" : "22",
"function" : "FILTER"
},
{
"type" : "CONNECTIONOCCURRENCE",
"items" : [
{
"type" : "CONNECTION",
"function" : "FILTER",
"direction" : "IN",
"items" : [
{
"type" : "OBJECT",
"typenum" : "6",
"function" : "TARGET"
}
]
}
]}
]}
]}
50
REPOSITORY API TECHNICAL INTRODUCTION
Example
POST
http://<servername:port>/abs/api/objects/United%20Motor%20Group/query
Request body:
{
"start_guids" : "1055825e-f979-11db-2729-000bcd0cce4e,
10558255-f979-11db-2729-000bcd0cce4e",
"items": [
{
"type":"ASSIGNMENT",
"items":[
{
"type":"MODEL",
"typenum":"14",
"function":"TARGET"
}
]
}
]
}
51
REPOSITORY API TECHNICAL INTRODUCTION
21 Legal information
52
REPOSITORY API TECHNICAL INTRODUCTION
21.2 Support
If you have any questions on specific installations that you cannot perform yourself, contact
your local Software AG sales organization
(https://www.softwareag.com/corporate/company/global/offices/default.html). To get
detailed information and support, use our Web sites.
If you have a valid support contract, you can contact Global Support ARIS at: +800
ARISHELP. If this number is not supported by your telephone provider, please refer to our
Global Support Contact Directory.
For issues regarding the product documentation, you can also send an e-mail to
[email protected] (mailto:[email protected]).
ARIS COMMUNITY
Find information, expert articles, issue resolution, videos, and communication with other ARIS
users. If you do not yet have an account, register at ARIS Community.
PRODUCT DOCUMENTATION
You can find product documentation also on our documentation Web site.
In addition, you can also access the cloud product documentation. Navigate to the desired
product and then, depending on your solution, go to Developer Center, User Center or
Documentation.
PRODUCT TRAINING
You can find helpful product training material on our Learning Portal.
TECH COMMUNITY
You can collaborate with Software AG experts on our Tech Community Web site. From here
you can, for example:
Browse through our vast knowledge base.
Ask questions and find answers in our discussion forums.
Get the latest Software AG news and announcements.
Explore our communities.
Go to our public GitHub and Docker repositories and discover additional Software AG
resources.
53
REPOSITORY API TECHNICAL INTRODUCTION
PRODUCT SUPPORT
Support for Software AG products is provided to licensed customers via our Empower Portal
(https://empower.softwareag.com/). Many services on this portal require that you have an
account. If you do not yet have one, you can request it. Once you have an account, you can,
for example:
Download products, updates and fixes.
Add product feature requests.
Search the Knowledge Center for technical information and tips.
Subscribe to early warnings and critical alerts.
Open and update support incidents.
54