Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xrm
basic
Commits
db3a5df3
Commit
db3a5df3
authored
4 years ago
by
Johannes Goderbauer
Browse files
Options
Downloads
Patches
Plain Diff
Added a registry for ObjectRelationTypes for future usage
parent
6404e10d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
process/ObjectRelationTypeRegistry_basic/ObjectRelationTypeRegistry_basic.aod
+9
-0
9 additions, 0 deletions
...onTypeRegistry_basic/ObjectRelationTypeRegistry_basic.aod
process/ObjectRelationTypeRegistry_basic/process.js
+15
-0
15 additions, 0 deletions
process/ObjectRelationTypeRegistry_basic/process.js
with
24 additions
and
0 deletions
process/ObjectRelationTypeRegistry_basic/ObjectRelationTypeRegistry_basic.aod
0 → 100644
+
9
−
0
View file @
db3a5df3
<?xml version="1.0" encoding="UTF-8"?>
<process
xmlns=
"http://www.adito.de/2018/ao/Model"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
VERSION=
"1.2.1"
xsi:schemaLocation=
"http://www.adito.de/2018/ao/Model adito://models/xsd/process/1.2.1"
>
<name>
ObjectRelationTypeRegistry_basic
</name>
<majorModelMode>
DISTRIBUTED
</majorModelMode>
<process>
%aditoprj%/process/ObjectRelationTypeRegistry_basic/process.js
</process>
<variants>
<element>
LIBRARY
</element>
</variants>
</process>
This diff is collapsed.
Click to expand it.
process/ObjectRelationTypeRegistry_basic/process.js
0 → 100644
+
15
−
0
View file @
db3a5df3
/**
* Provides static functionality for a registry of objectrelation-type ids. <br/>
* <br/>
* The reason for this is a convenient usage within jdito-code and autocomplete functionality within the designer. <br/>
* Addtional benefits of using the "constants" (in fact they are functions that return always the same value) are better readability of the code and
* more stable code regarding to changes.
*
* @class
*
*/
function
$ObjectRelationTypeRegistry
(){}
//currently it's empty here but this library may be used in the future to provide ObjectRelationTypes within jdito code
//add semi-constants for different objectRelationTypes to use them in the jdito code instead of IDs
//$ObjectRelationTypeRegistry.myObjectRelationType = function(){return "<<uid of the type>>";};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment