Scenario CollectionPresentation of implementation scenarios questions answersRE Buttons on the Drawing AreaMateusz Dziedzichttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=17480122019-12-09T11:42:33Z2019-12-09T11:41:49ZDear Benedikt br A model type can have only one graphical representation To display two buttons in a model type you must do this via the GraphRep attribute The GraphRep code for two different buttons in a model type could look like this br br GRAPHREP layer 3 br br IF _outdevtype 034 drawingarea 034 br SET printIcon 034 db btn_print png 034 br BITMAPINFO printIcon br BITMAP printIcon x 1cm y 0 5cm w 1 5cm h 1 5cm br HOTSPOT 034 _PrintModel_ 034 text 034 Print Model 034 x 1cm y 0 5cm w 1 5cm h 1 5cm br SET printIcon2 034 db btn_print png 034 br BITMAPINFO printIcon2 br BITMAP printIcon2 x 3cm y 0 5cm w 1 5cm h 1 5cm br HOTSPOT 034 _PrintModel_ 034 text 034 Print Model 034 x 3cm y 0 5cm w 1 5cm h 1 5cm brMateusz Dziedzic2019-12-09T11:41:49ZRE Buttons on the Drawing AreaBenedikt Kaiserhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=17300692019-11-14T11:29:07Z2019-11-14T11:29:07ZHello br br I am trying to have two different Buttons in the same drawing area I already created the second button however it is not shown in the drawing area br I am pretty sure that I have to do this in Add ons but unfortunately it is not working br div class code span class code lines 1 span MODELTYPE 034 Role Model 034 from none plural 034 Samples 034 pos 0 not simulateable bitmap 034 db sample bmp 034 graphrep 034 First Button GraphRep 034 from none plural 034 Samples 034 pos 3 not simulateable graphrep 034 Second Button GraphRep 034 div br The button with the GraphRep 034 Second Button GraphRep 034 is not shown br br Best regards br br Benedikt KaiserBenedikt Kaiser2019-11-14T11:29:07ZADOxxWEB KPI DashboardDamiano Falcionihttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=13904402018-10-12T10:21:12Z2018-10-12T10:17:35Zspan style font size 16px The following scenario demonstrate the 034 marriage 034 between a Model that represent Key Performance Indicators with Goals and Metrics and real data obtained from an external sources The results are visualized in a widget based web dashboard that allow to visualize the KPI Goals and Metrics values in a customizable way br br DOWNLOAD span ul style list style disc inside li span style font size 16px a href https www adoxx org svn devtools 2 20ADOxx 20Building 20Blocks 3 20ADOxxWEB 20Dashboard ADOxxWeb 20Dashboard 20v2 20KPI 20Library abl KPI Model Library abl a span li li a href https www adoxx org svn devtools 2 20ADOxx 20Building 20Blocks 3 20ADOxxWEB 20Dashboard ADOxxWeb 20Dashboard 20v2 20KPI 20Model adl span style font size 16px Demo models span a li li span style font size 16px a href https www adoxx org svn devtools 2 20ADOxx 20Building 20Blocks 3 20ADOxxWEB 20Dashboard ADOxxWeb 20Dashboard 20v2 20Tomcat_Deploy MSC 7z ADOxxWeb Dashboard v2 Tomcat_Deploy MSC 7z a span li ul style list style disc inside span style font size 16px br LIVE Dashboard a href https www adoxx org dashboard_new https www adoxx org dashboard_new a br span br span style font size 16px SOURCE CODE span ul style list style disc inside li span style font size 16px SVN span a href https www adoxx org svn devtools 2 20ADOxx 20Building 20Blocks 3 20ADOxxWEB 20Dashboard ADOxxWeb 20Dashboard 20v2 20src https www adoxx org svn devtools 2 20ADOxx 20Building 20Blocks 3 20ADOxxWEB 20Dashboard ADOxxWeb 20Dashboard 20v2 20src a li ul style list style disc insideDamiano Falcioni2018-10-12T10:17:35ZADOxxWEB SimulationMilica Milichttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=13896602018-10-12T09:02:36Z2018-10-11T13:58:36Zspan style font size 16px The following Simulation scenario shows a fast and extendible way to simulate business process executions span span style font size 16px The service is provided through a REST interface that take as input the model to simulate and some simulation parameters and return an XML with simulation results The service is focused on business process models but is flexible enough to be adapted and to simulate any kind of models The Simulation service provide also an asynchronous html javascript client in order to use and test the service without integrate it in a tool span span style font size 16px br br span span style font size 16px Download span ul style list style disc inside li a href https www adoxx org svn devtools 2 20ADOxx 20Building 20Blocks 4 20ADOxxWEB 20Simulation BPMN Simulation abl span style font size 16px BPMN Simulation abl span a li li span style font size 16px a href https www adoxx org svn devtools 2 20ADOxx 20Building 20Blocks 4 20ADOxxWEB 20Simulation ADOxxWebSimulation_Tomcat_Deploy 7z ADOxxWebSimulation_Tomcat_Deploy 7z a span li ul style list style disc inside span style font size 16px br Live Demo span a href https www adoxx org simulation span style font size 16px https www adoxx org simulation span a span style font size 16px br br Source Code span a href https www adoxx org svn devtools 2 20ADOxx 20Building 20Blocks 4 20ADOxxWEB 20Simulation simulation https www adoxx org svn devtools 2 20ADOxx 20Building 20Blocks 4 20ADOxxWEB 20Simulation simulation a span style font size 16px br span span style font size 16px br a href https www adoxx org live adoxxweb simulation details Do a span a href https www adoxx org live adoxxweb simulation details span style font size 16px cumentation span a span style font size 16px a href a span span style font size 16px br span span style font size 16px br spanMilica Milic2018-10-11T13:58:36ZStoring files in objects of a modelPatrikhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=13877432018-10-08T12:32:57Z2018-10-08T12:31:59ZHello br br Thank you for the idea I was facing a similar problem storing file content in the model so it can be exchanged through the import export functionality I solved it like you described by storing the file content in a table split in separate rows I have also extracted just that functionality and attached it to this post with the necessary AdoScript a library that shows how it works and a short readme Note that this solution doesn 039 t allow to directly visualize images stored like this throgh the GraphRep it only focuses on storing the file content and exchanging it through import export functionalities br br Best regards br PatrikPatrik2018-10-08T12:31:59ZSocial Media Wiki API Web Service InvocationNedim Rifatbegovichttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=8627362018-10-12T11:16:11Z2017-05-23T11:31:34ZThe following Scenario gives an introduction how to invoke external services into your modelling language br br Download br br Webinar br a href https www adoxx org live interaction with external api webinar Webinar Video a br br a href https www adoxx org live documents 10157 0 Scenario_SocialMediaManager_WikiPage_Twitter zip dba04f1f 4ae4 4513 abec 1bc5edb844c9 Documentation a br br br span style font size 16px strong Concept br strong span br img src https x3a x2f x2f www x2e adoxx x2e org x2f svn x2f all repo x2f 7_Scenario_Collection x2f 3 x2e x25 20API_Web Service x25 20Invocation x2f WIKI x25 20Invocation x2e png br br br span style font size 16px strong Result strong span br ul style list style disc inside br br ul style list style disc inside img src https x3a x2f x2f www x2e adoxx x2e org x2f live x2f documents x2f 10157 x2f 158262 x2f Screenshot x2e PNG x2f bc54ebaa 7b7a 44ad b98d 9bcf3aafd0e0 x3f t x3d 1495543298711Nedim Rifatbegovic2017-05-23T11:31:34ZSearch AlgorithmsNedim Rifatbegovichttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=7356852020-10-30T09:43:13Z2016-12-16T08:10:47ZThe following package provides a documentation how to implement and trigger search algorithms on a search tree model type br The scenario documentation offers a step by step description of the classes and attributes to be added and how to adapt them to make the search algorithms work br br br strong To Download the Search Algorithm Package strong a href https git boc group eu adoxx training search algorithms uploads fbf2103fab5b2a141ab1a765ff4493cf SearchAlgorithms_v1 2 7z Click Here a a href https www adoxx org svn all repo 7_Scenario_Collection 5 20Search 20Algorithms 20Scenario Search 20Algorithms zip a a href https www adoxx org svn all repo 7_Scenario_Collection 5 20Search 20Algorithms 20Scenario a br strong To Download the ABL File strong a href https git boc group eu adoxx training search algorithms blob master MODELS ADOxx 201 5 20Search 20Algorithms 20Library 20v1 0 abl Click Here a br strong To Download the ADL File strong a href https git boc group eu adoxx training search algorithms blob master MODELS Search 20Tree 20Models 20v1 0 adl Click Here a br br For the strong Depth First Search strong File a href https git boc group eu adoxx training search algorithms raw master AdoScript depthFirstSearch asc inline false Click Here a br For the strong Breadth First Search strong File a href https git boc group eu adoxx training search algorithms raw master AdoScript breadthFirstSearch asc inline false Click Here a br For the strong Hill Climbing strong File a href https git boc group eu adoxx training search algorithms raw master AdoScript hillClimbing asc inline false Click Here a br For the strong Branch and Bound strong File a href https git boc group eu adoxx training search algorithms raw master AdoScript branchAndBound asc inline false Click Here a br For the strong A strong File a href https git boc group eu adoxx training search algorithms raw master AdoScript AStar asc inline false Click Here a br br Result br br br img src https x3a x2f x2f www x2e adoxx x2e org x2f live x2f documents x2f 10157 x2f 0 x2f Search x2b Algorithms x2f 24126e31 acca 4ca8 860c db6114fcd7ef x3f t x3d 1602774927685Nedim Rifatbegovic2016-12-16T08:10:47ZGeolocation CityBike ScenarioNedim Rifatbegovichttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=7196672018-11-02T09:00:28Z2016-11-22T10:34:06Zimg src br The following package provides a documentation how to implement and trigger an algorithm which has the objective to determine and visualize if enough city bike stops are close to a POI This is done by defining a walking distance circle and count elements inside plus color code br br Webinar a href https www youtube com watch v 4LuLEb3royA feature youtu be Geolocation CityBike a br br Download the 034 Geolocation CityBike 034 Scenario a href https www adoxx org live documents 10157 719682 Scenario CityBike zip 2d88a40d 7bfc 43d2 bed7 496fc8cedc59 Download Link a br br br img src https x3a x2f x2f www x2e adoxx x2e org x2f live x2f documents x2f 10157 x2f 86217 x2f CityBike x2b Screenshot x2e png x2f 076bf391 8656 4b72 9c4a dd75a6cc833c x3f t x3d 1479814331908Nedim Rifatbegovic2016-11-22T10:34:06ZWe have found a SolutionFritz Oscar Berngruberhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=4829742016-03-14T13:39:53Z2016-03-14T13:39:53ZDear Wilfrid br br we have come to a complete solution for our import export problem br On the setAttributValue event we encode the image as base64 split it into segments and put these segments into a Record br On the openModel event we check if we can find the original image as set in the path in our objects br and if not we recreate the image from the segments of the corresponding record We then save the recreated image in a specified folder br and reset the path of our object to that folder br br Thanks for your help and all the best br The e GPM team at WPS brFritz Oscar Berngruber2016-03-14T13:39:53ZRE Reacting on adl ExportFritz Oscar Berngruberhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=4782962016-03-09T10:24:22Z2016-03-09T10:23:56ZDear Wilfrid br br br thank you for your response br br Instead of writing the base64 string to a LONGSTRING on a save event we decided to do so on setAttributeValue event br When exporting on save we had the problem that it was possible to e g change a path to an external image not saving the model and exporting without creating the base64 string br br To make the solution work on setAttributeValue we are setting a boolean 034 global variable on StartADLImport to 1 x2013 so that we know we are about to import And we set it back to 0 on EndADLImport br Checking that variable on setAttributeValue is giving us the chance to avoid unwanted override actions when an import is running br br But we ran into another problem br We decided to use CLOBs to save the base64 code of the images It seems that CLOBs are not supported anymore by the ADO environment br When we create a CLOB attribute and export and import our library the CLOB attribute is changed to a LONGSTRING attribute br br The problem is that the LONGSTRING attribute does not take enough characters to save an entire base64 encoded image img alt emoticon src https www adoxx org livehttps www adoxx org ADOxxORGv3 theme images emoticons sad gif br By the way we took a very small image that was of 25 KB size not encoded br br We would like to ask you again for your advice x2013 do you have an idea how to solve our problem br br Sincerely the e GPM Team at WPSFritz Oscar Berngruber2016-03-09T10:23:56ZRE Reacting on adl ExportWilfrid Utzhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=4726572016-03-03T14:26:46Z2016-03-03T14:26:46ZDear Fritz Oscar br br thank you for this interesting question We are currently preparing a proposal for you to show case how this potentially could be done A potential solution would be br br a Save and store all linked documents in PROGRAMCALL attributes into a base64 encoded STRING attribute during model save br b Use the default ADL Import Export functionality br c Re construct the files and re set links during the model open event br br This approach should make it possible to included images files and make them portable br Thanks for your patienceWilfrid Utz2016-03-03T14:26:46ZReacting on adl ExportFritz Oscar Berngruberhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=4644742016-02-23T13:48:49Z2016-02-23T13:48:24ZHi br br br we are currently developing a new version for our e GPM modeling implementation for AdoXX br We have a use case where we want to react to an export of models adl br In our models we are able to assign external graphics to objects via an absolute path br These graphic are not included when models are exported and that is what we 039 d like to change br br One solution we could imagine might be to include a base64 encoded image via writing it into a CLOB just before the export and reconstruct it into an internal folder on import and settting the path again br To achieve that we would need to be able to react on a StartExport event like it is possible for imports But there is no such event or is it br br If the first solution isn t possible it might be another solution to store the image into a CLOB whenever the attribute holding the path to the image changes br This has some drawbacks since the SetAttributeValue event is also invoked on import Also this is wasting resources br Does anyone know if it is possible to react to an export event Or is there a better solution to achieve our goal br br A short answer would be nice even a glimpse of an idea br br Thanks br br fritz oscarFritz Oscar Berngruber2016-02-23T13:48:24ZRE Calculation of the width of a relationMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=4323922016-01-07T15:44:23Z2016-01-07T15:29:26ZIn order to have this functionality also by changing the position of the instances you can also work with the event 034 SetAttributeValue 034 Please have a look at the following code which is also integrated in the attached library br This AdoScript shows you how you can extend the above scenario also by changing the position of the source or target instance br br div class code span class code lines nbsp 1 span ON_EVENT 034 SetAttributeValue 034 br span class code lines nbsp 2 span br span class code lines nbsp 3 span Save the pregiven values of the event br span class code lines nbsp 4 span SET nObjId instid br span class code lines nbsp 5 span SET nAttrId attrid br span class code lines nbsp 6 span SET nModelId modelid br span class code lines nbsp 7 span SET sOldVal oldval br span class code lines nbsp 8 span br span class code lines nbsp 9 span br span class code lines 10 span CC 034 Core 034 GET_CLASS_ID classname 034 A 034 br span class code lines 11 span SET nAClassId classid br span class code lines 12 span CC 034 Core 034 GET_ATTR_ID classid nAClassId attrname 034 Position 034 br span class code lines 13 span SET nPositionAAttrId attrid br span class code lines 14 span br span class code lines 15 span Trigger the Functionality if the Position attribute is changed br span class code lines 16 span IF nAttrId nPositionAAttrId nbsp nbsp br span class code lines 17 span nbsp CC 034 Core 034 GET_ATTR_VAL objid nObjId attrname 034 Position 034 br span class code lines 18 span nbsp SET nFromObjPosition val nbsp nbsp br span class code lines 19 span nbsp CC 034 Core 034 GET_OBJ_NAME objid nObjId br span class code lines 20 span nbsp SET sObjName objname nbsp nbsp br span class code lines 21 span nbsp CC 034 Core 034 nbsp GET_CLASS_ID objid nObjId br span class code lines 22 span nbsp SET nInstClassId classid nbsp nbsp br span class code lines 23 span br span class code lines 24 span Get Connectors and their Endpoints of the classes A and B br span class code lines 25 span nbsp IF nInstClassId nAClassId br span class code lines 26 span nbsp nbsp CC 034 AQL 034 nbsp EVAL_AQL_EXPRESSION expr 034 034 034 sObjName 034 034 034 A 034 gt 034 a2b 034 034 modelid nModelId br span class code lines 27 span nbsp nbsp SET sConnectedObjIds objids nbsp br span class code lines 28 span nbsp nbsp IF sConnectedObjIds 034 034 br span class code lines 29 span nbsp nbsp nbsp nbsp EXIT br span class code lines 30 span nbsp nbsp nbsp nbsp br span class code lines 31 span nbsp nbsp CC 034 AQL 034 EVAL_AQL_EXPRESSION expr 034 034 034 sObjName 034 034 034 A 034 gt lt 034 a2b 034 gt 034 modelid nModelId br span class code lines 32 span nbsp nbsp SET sConnectorIds objids br span class code lines 33 span nbsp ELSE nbsp nbsp br span class code lines 34 span nbsp nbsp CC 034 AQL 034 EVAL_AQL_EXPRESSION expr 034 034 034 sObjName 034 034 034 B 034 lt 034 a2b 034 034 modelid nModelId nbsp nbsp br span class code lines 35 span nbsp nbsp SET sConnectedObjIds objids br span class code lines 36 span nbsp nbsp IF sConnectedObjIds 034 034 br span class code lines 37 span nbsp nbsp nbsp nbsp EXIT br span class code lines 38 span nbsp nbsp nbsp nbsp nbsp br span class code lines 39 span nbsp nbsp CC 034 AQL 034 EVAL_AQL_EXPRESSION expr 034 034 034 sObjName 034 034 034 B 034 lt lt 034 a2b 034 gt 034 modelid nModelId nbsp nbsp br span class code lines 40 span nbsp nbsp SET sConnectorIds objids nbsp nbsp br span class code lines 41 span nbsp nbsp nbsp br span class code lines 42 span br span class code lines 43 span nbsp CC 034 Core 034 GET_ATTR_VAL objid VAL sConnectedObjIds attrname 034 Position 034 nbsp nbsp br span class code lines 44 span nbsp SET nToObjPosition val br span class code lines 45 span br span class code lines 46 span nbsp LEO parse nFromObjPosition get tmm value n_x_fromobj 034 x 034 get tmm value n_y_fromobj 034 y 034 br span class code lines 47 span nbsp nbsp nbsp nbsp nbsp nbsp get tmm value n_w_fromobj 034 w 034 get tmm value n_h_fromobj 034 h 034 br span class code lines 48 span nbsp LEO parse nToObjPosition get tmm value n_x_toobj 034 x 034 get tmm value n_y_toobj 034 y 034 br span class code lines 49 span nbsp nbsp nbsp nbsp nbsp nbsp get tmm value n_w_toobj 034 w 034 get tmm value n_h_toobj 034 h 034 br span class code lines 50 span br span class code lines 51 span If your source and target instance are resizebale then request also the height and the width of the instances br span class code lines 52 span Otherwise take the values you defined in the GraphRep br span class code lines 53 span Differenciate if the target and source instance are in the same line vertically and horizontally br span class code lines 54 span nbsp IF n_y_fromobj n_y_toobj br span class code lines 55 span nbsp nbsp SET n_xDist abs CMS n_x_fromobj n_x_toobj CMS n_w_fromobj 2 CMS n_w_toobj 2 br span class code lines 56 span nbsp nbsp SET n_yDist abs CMS n_y_fromobj n_y_toobj br span class code lines 57 span nbsp ELSIF n_x_fromobj n_x_toobj br span class code lines 58 span nbsp nbsp SET n_yDist abs CMS n_y_fromobj n_y_toobj CMS n_h_fromobj 2 CMS n_h_toobj 2 br span class code lines 59 span nbsp nbsp SET n_xDist abs CMS n_x_fromobj n_x_toobj br span class code lines 60 span nbsp ELSE br span class code lines 61 span nbsp nbsp SET n_xDist abs CMS n_x_fromobj n_x_toobj CMS n_w_fromobj 2 CMS n_w_toobj 2 br span class code lines 62 span nbsp nbsp SET n_yDist abs CMS n_y_fromobj n_y_toobj CMS n_h_fromobj 2 CMS n_h_toobj 2 br span class code lines 63 span nbsp br span class code lines 64 span Calculate the distance with the formula of Pythagoras br span class code lines 65 span nbsp SET nDistance sqrt pow n_xDist 2 pow n_yDist 2 br span class code lines 66 span Set the value of the calculated distance into a hidden attribute so you can call it from the graphrep of the relation br span class code lines 67 span nbsp CC 034 Core 034 GET_CLASS_ID classname 034 a2b 034 SET nRelationClassId classid br span class code lines 68 span nbsp CC 034 Core 034 GET_ATTR_ID classid nRelationClassId attrname 034 Distance 034 br span class code lines 69 span nbsp SET nDistanceAttrId attrid br span class code lines 70 span nbsp CC 034 Core 034 SET_ATTR_VAL objid VAL sConnectorIds attrid nDistanceAttrId val nDistance nbsp br span class code lines 71 span br div br brMehmet Albayrak2016-01-07T15:29:26ZRE Calculation of the width of a relationMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=4313722016-01-08T07:05:10Z2016-01-05T15:19:39ZAs the position is an attribute you can work wih the event handler 034 SetAttributeValue 034 Note that you have to trigger this event in two cases br br movement of an instance of the source class br movement of an instance of the target class br br The rest of the implementation is equivalent to the implementation above after you query the source target instance positionMehmet Albayrak2016-01-05T15:19:39ZRE Calculation of the width of a relationPhilipp Küllerhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=4313332016-01-05T13:13:19Z2016-01-05T13:13:19ZThanks for your answer works quite good br br Do you have any idea how to deal with the situation that the distance might changes afterwards e g an endpoint moves I tried different event handler but without sucess br br Thanks and best regards br br PhilippPhilipp Küller2016-01-05T13:13:19ZRE Calculation of the width of a relationMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=4281102015-12-21T10:57:01Z2015-12-21T10:35:18ZYou can trigger an AdoScript code that calculates the length of the relation and save the result into a hidden attribute if the relation is created with the event handler 034 AfterCreateModelingConnector 034 br To calculate the length of the relation you neeed the position information of the source and target object The AdoScript below shows yo how you can implement this scenario which you also can find in the attached library as an example br br div class code span class code lines nbsp 1 span ON_EVENT 034 AfterCreateModelingConnector 034 br span class code lines nbsp 2 span br span class code lines nbsp 3 span Save the pregiven values br span class code lines nbsp 4 span nbsp SET nModelId modelid br span class code lines nbsp 5 span nbsp SET nObjId objid br span class code lines nbsp 6 span nbsp SET nClassId classid br span class code lines nbsp 7 span nbsp SET nFromObjId fromobjid br span class code lines nbsp 8 span nbsp SET nToObjId toobjid br span class code lines nbsp 9 span br span class code lines 10 span Get position of the source instance br span class code lines 11 span nbsp CC 034 Core 034 GET_ATTR_VAL objid nFromObjId attrname 034 Position 034 br span class code lines 12 span nbsp SET nFromObjPosition val br span class code lines 13 span br span class code lines 14 span Get position of the target instance br span class code lines 15 span nbsp CC 034 Core 034 GET_ATTR_VAL objid nToObjId attrname 034 Position 034 br span class code lines 16 span nbsp SET nToObjPosition val br span class code lines 17 span br span class code lines 18 span Parse the position attributes of the source and target instance and save the values you need in variables br span class code lines 19 span nbsp LEO parse nFromObjPosition get tmm value n_x_fromobj 034 x 034 get tmm value n_y_fromobj 034 y 034 br span class code lines 20 span nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp get tmm value n_w_fromobj 034 w 034 get tmm value n_h_fromobj 034 h 034 br span class code lines 21 span nbsp LEO parse nToObjPosition get tmm value n_x_toobj 034 x 034 get tmm value n_y_toobj 034 y 034 br span class code lines 22 span nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp get tmm value n_w_toobj 034 w 034 get tmm value n_h_toobj 034 h 034 br span class code lines 23 span br span class code lines 24 span If your source and target instance are resizebale then request also the height and the width of the instances br span class code lines 25 span Otherwise take the values you defined in the GraphRep br span class code lines 26 span br span class code lines 27 span Differenciate if the target and source instance are in the same line vertically and horizontally br span class code lines 28 span Note These are simple conditions for demonstration br span class code lines 29 span nbsp IF n_y_fromobj n_y_toobj br span class code lines 30 span nbsp nbsp SET n_xDist abs CMS n_x_fromobj n_x_toobj CMS n_w_fromobj 2 CMS n_w_toobj 2 br span class code lines 31 span nbsp nbsp SET n_yDist abs CMS n_y_fromobj n_y_toobj br span class code lines 32 span nbsp ELSIF n_x_fromobj n_x_toobj br span class code lines 33 span nbsp nbsp SET n_yDist abs CMS n_y_fromobj n_y_toobj CMS n_h_fromobj 2 CMS n_h_toobj 2 br span class code lines 34 span nbsp nbsp SET n_xDist abs CMS n_x_fromobj n_x_toobj br span class code lines 35 span nbsp ELSE br span class code lines 36 span nbsp nbsp SET n_xDist abs CMS n_x_fromobj n_x_toobj CMS n_w_fromobj 2 CMS n_w_toobj 2 br span class code lines 37 span nbsp nbsp SET n_yDist abs CMS n_y_fromobj n_y_toobj CMS n_h_fromobj 2 CMS n_h_toobj 2 br span class code lines 38 span nbsp br span class code lines 39 span br span class code lines 40 span Calculate the distance with the formula of PythagorasSET nDistance sqrt pow n_xDist 2 pow n_yDist 2 br span class code lines 41 span Set the value of the calculated distance into a hidden attribute so you can call it from the graphrep of the relation br span class code lines 42 span nbsp CC 034 Core 034 GET_ATTR_ID classid nClassId attrname 034 Distance 034 br span class code lines 43 span nbsp SET nDistanceAttrId attrid br span class code lines 44 span nbsp CC 034 Core 034 SET_ATTR_VAL objid nObjId attrid nDistanceAttrId val nDistance br span class code lines 45 span br div br br Now you can call the attribute value of the Distance attribute in the GraphRep and set the width of the text as follows br br br div class code span class code lines 1 span GRAPHREP br span class code lines 2 span br span class code lines 3 span AVAL nDistance 034 Distance 034 br span class code lines 4 span SET vDistance CM nDistance br span class code lines 5 span br span class code lines 6 span MIDDLE br span class code lines 7 span ATTR 034 Name 034 x 0 1cm w c vDistance h b br div br br brMehmet Albayrak2015-12-21T10:35:18ZCalculation of the width of a relationPhilipp Küllerhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=4211962015-12-20T13:33:15Z2015-12-06T16:53:07ZHello br I like to connect to classes with a relation This relation should have a variable showing the value of the relationship This works as well as showing the variable top or left right br br However I currently use a fixed with of the text 3cm This means a long text looks quite ugly on a long relation and on a short realtion the text might run into another class Is it possible to calculate the with of a relation to define the with of the text br br Here is the graphrep extract br br div class code span class code lines nbsp 1 span GRAPHREP br span class code lines nbsp 2 span AVAL bColor 034 Color 034 br span class code lines nbsp 3 span AVAL bLR 034 Show Value Left Right 034 br span class code lines nbsp 4 span AVAL bShowValue 034 Schow Value 034 br span class code lines nbsp 5 span br span class code lines nbsp 6 span PEN w 0 02cm color bColor br span class code lines nbsp 7 span SHADOW mode off br span class code lines nbsp 8 span br span class code lines nbsp 9 span EDGE br span class code lines 10 span br span class code lines 11 span START br span class code lines 12 span FILL color bColor br span class code lines 13 span POLYGON 3 x1 0cm y1 1cm x2 0 3cm y2 0 0cm x3 0cm y3 1cm br span class code lines 14 span br span class code lines 15 span MIDDLE br span class code lines 16 span FONT h 8pt bold color bColor br span class code lines 17 span IF bLR 034 1 034 br span class code lines 18 span ATTR 034 Value 034 line break words x 0 10cm y 0 00cm w l 3cm h b br span class code lines 19 span br span class code lines 20 span IF bLR 034 0 034 br span class code lines 21 span ATTR 034 Value 034 line break words x 0 00cm y 0 00cm w c 3cm h b br span class code lines 22 span br span class code lines 23 span br span class code lines 24 span END br span class code lines 25 span FILL color bColor br span class code lines 26 span POLYGON 3 x1 3cm y1 1cm x2 0cm y2 0cm x3 3cm y3 1cm br div br br Thank you for any idea br br Best regards br br PhilippPhilipp Küller2015-12-06T16:53:07ZCoupling Modelling Languages to Support Modeling ProcedureMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1732742014-09-19T14:10:33Z2014-09-19T14:10:33ZThe following Scenario demonstrates how to combine two modelling approaches For this purpose two implementations of different modeling approaches are combined to support a common modeling procedure span style font size 10px br br span The scenario consists of two parts Part I discusses some theoretical conceptual aspects of coupling two modeling languages Part II provides a step by step hands on guide for the realization of the theoretical part br br Download br Documentation Slides br a href https www adoxx org svn all repo 7_Scenario_Collection 4 20Coupling 20Modelling 20Languages DOC 4 20Coupling 20Modelling 20Languages pdf Coupling Modelling Languages pdf a br Library br a href https www adoxx org svn all repo 7_Scenario_Collection 4 20Coupling 20Modelling 20Languages BIN BPMN UC 20Integrated 20View 20for 20Requirements 20Engineering 20v0 4 abl BPMN UC Integrated View for Requirements Engineering abl a br Models br a href https www adoxx org svn all repo 7_Scenario_Collection 4 20Coupling 20Modelling 20Languages DOC Example 20models 20for 20v0 4 adl Example Models adl a br GraphReps br a href https www adoxx org svn all repo 7_Scenario_Collection 4 20Coupling 20Modelling 20Languages SRC 1 20GraphRep GRAPHREP_Task leo GRAPHREP_Task leo a br AttrReps br a href https www adoxx org svn all repo 7_Scenario_Collection 4 20Coupling 20Modelling 20Languages SRC 2 20AttrRep ATTRREP_Task leo ATTRREP_Task leo a br AdoScript br a href https www adoxx org svn all repo 7_Scenario_Collection 4 20Coupling 20Modelling 20Languages SRC 3 20AdoScript LIB_External 20coupling 20AdoScript asc LIB_External coupling AdoScript asc a br br br span style font size 16px strong br Concept strong span br br br img src https x3a x2f x2f www x2e adoxx x2e org x2f svn x2f all repo x2f 7_Scenario_Collection x2f 4 x2e x25 20Coupling x25 20Modelling x25 20Languages x2f DOC x2f Coupling2 x2e png br br br br br img src https x3a x2f x2f www x2e adoxx x2e org x2f svn x2f all repo x2f 7_Scenario_Collection x2f 4 x2e x25 20Coupling x25 20Modelling x25 20Languages x2f DOC x2f Coupling1 x2e png br br br br br span style font size 16px strong Result br br br img src https x3a x2f x2f www x2e adoxx x2e org x2f svn x2f all repo x2f 7_Scenario_Collection x2f 4 x2e x25 20Coupling x25 20Modelling x25 20Languages x2f DOC x2f Coupling3 x2e png strong spanMehmet Albayrak2014-09-19T14:10:33ZAPI Web Service InvocationMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1731732014-09-19T13:39:45Z2014-09-19T13:39:45ZThe following Scenario gives an introduction how to invoke external services into your modeling language by the two examples br ol style list style decimal inside li Wiki Interaction br Models defined using the i implementation in ADOxx are made available in a MediaWiki environment li li Google Maps Interaction br Models defined for the design of supply chain distribution networks are enhanced with geolocation data using the Google Maps WS and Open Street Map WS li ol The scenario consists of two parts Part I discusses some theretical conceptual aspects of the Interaction with external services Part II provides a step by step hands on guide for the implementation of the external service invocation br br Download br br Documentation Slides br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation 3 20API_Web Service 20Invocation pdf API_Web Service Invocation pdf a br Libraries br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation BIN iSTAR 20v1 0 abl iSTAR v1 0 abl a br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20B 20GeoService 20Invocation BIN Geolocation 20Library abl Geolocation Library abl a br Models br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation DOC iSTAR 20v1 0 20Example 20Models adl iSTAR v1 0 Example Models adl a br GraphReps br 1 iSTAR br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 1 20GraphRep GRAPHREP_Softgoal leo GRAPHREP_Softgoal leo a br 2 Geolocation br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20B 20GeoService 20Invocation SRC 1 20GraphRep GRAPHREP_ModelType leo GRAPHREP_ModelType leo a br AttrReps br 1 iSTAR br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 2 20AttrRep ATTR_Actor leo ATTR_Actor leo a br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 2 20AttrRep ATTR_Agent leo ATTR_Agent leo a br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 2 20AttrRep ATTR_Aggregation leo ATTR_Aggregation leo a br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 2 20AttrRep ATTR_Belief leo ATTR_Belief leo a br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 2 20AttrRep ATTR_Goal leo ATTR_Goal leo a br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 2 20AttrRep ATTR_Model 20Attribute 20iSTAR 20Model 20Attributes leo ATTR_Model Attribute iSTAR Model Attributes leo a br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 2 20AttrRep ATTR_Note leo ATTR_Note leo a br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 2 20AttrRep ATTR_Position leo ATTR_Position leo a br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 2 20AttrRep ATTR_Resource leo ATTR_Resource leo a br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 2 20AttrRep ATTR_Role leo ATTR_Role leo a br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 2 20AttrRep ATTR_Softgoal leo ATTR_Softgoal leo a br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 2 20AttrRep ATTR_Task leo ATTR_Task leo a br 2 Geolocation br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20B 20GeoService 20Invocation SRC 2 20AttrRep ATTRREP_ModelType leo ATTRREP_ModelType leo br a br AdoScript br 1 iSTAR br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20A 20MediaWiki 20Invocation SRC 3 20AdoScript AdoScript a br 2 Geolocation br a href https www adoxx org svn all repo 7_Scenario_Collection 3 20API_Web Service 20Invocation Case 20B 20GeoService 20Invocation SRC 3 20AdoScript AdoScript a br br br span style font size 16px strong Concept strong span br ul style list style disc inside li iSTAR li ul style list style disc inside br br img src https x3a x2f x2f www x2e adoxx x2e org x2f svn x2f all repo x2f 7_Scenario_Collection x2f 3 x2e x25 20API_Web Service x25 20Invocation x2f WIKI x25 20Invocation x2e png br br br br br ul style list style disc inside li Google Maps li ul style list style disc inside br img src https x3a x2f x2f www x2e adoxx x2e org x2f svn x2f all repo x2f 7_Scenario_Collection x2f 3 x2e x25 20API_Web Service x25 20Invocation x2f GoogleMapsInvocation x2e png br br br br br span style font size 16px strong Result strong span br ul style list style disc inside li iSTAR li ul style list style disc inside img src https x3a x2f x2f www x2e adoxx x2e org x2f svn x2f all repo x2f 7_Scenario_Collection x2f 3 x2e x25 20API_Web Service x25 20Invocation x2f WIKI_Result x2e png br br br br br ul style list style disc inside li Geolacation li ul style list style disc inside br img src https x3a x2f x2f www x2e adoxx x2e org x2f svn x2f all repo x2f 7_Scenario_Collection x2f 3 x2e x25 20API_Web Service x25 20Invocation x2f GoogleMapsResult x2e png br brMehmet Albayrak2014-09-19T13:39:45ZImplementing an Algorithm Create Comparison Matrix ModelMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1732342015-11-12T10:23:59Z2014-09-19T12:16:28ZThe following package provides a documentation how to implement and trigger an algorithm by the create comparison matrix model example This algorithm queries business process models and creates a comparison matrix listing structural similarities br br The scenario consists of two parts Part I discusses some theretical conceptual aspects of the implementation of an algorithm Part II provides a step by step hands on guide for the realization of the creating a comparison matrix model br br span style font size 16px strong Download strong span br Documentation br a href https www adoxx org svn all repo 7_Scenario_Collection 2 20Mechanisms 20 20Algorithms 20Scenario DOC 2 20Mechanisms 20 20Algorithms 20Scenario pdf Mechanisms amp Algorithms_CreateComparisonMatrixModel pdf a br Library br a href https www adoxx org svn all repo 7_Scenario_Collection 2 20Mechanisms 20 20Algorithms 20Scenario BIN BPMN UC 20Integrated 20View 20v0 1 abl BPMN UC Integrated View abl a br Models br a href https www adoxx org svn all repo 7_Scenario_Collection 2 20Mechanisms 20 20Algorithms 20Scenario DOC Example 20models adl Example models adl a br GraphReps br a href https www adoxx org svn all repo 7_Scenario_Collection 2 20Mechanisms 20 20Algorithms 20Scenario SRC 1 20GraphRep Box_GraphRep leo Box_GraphRep leo a br a href https www adoxx org svn all repo 7_Scenario_Collection 2 20Mechanisms 20 20Algorithms 20Scenario SRC 1 20GraphRep Row 20Name_GraphRep leo Row Name_GraphRep leo a br AttrReps br a href https www adoxx org svn all repo 7_Scenario_Collection 2 20Mechanisms 20 20Algorithms 20Scenario SRC 2 20AttrRep Box_AttrRep txt Box_AttrRep txt a br a href https www adoxx org svn all repo 7_Scenario_Collection 2 20Mechanisms 20 20Algorithms 20Scenario SRC 2 20AttrRep Row 20Name_AttrRep txt Row Name_AttrRep txt a br Adoscript br a href https www adoxx org svn all repo 7_Scenario_Collection 2 20Mechanisms 20 20Algorithms 20Scenario SRC 3 20AdoScript structural comparison asc structural comparison asc a br br br br span style font size 16px strong Concept br br strong span ul style list style disc inside li An approach of how to realize implementing the algorithm li ul style list style disc inside br br img src http x3a x2f x2f www x2e adoxx x2e org x2f live x2f documents x2f 10157 x2f 173140 x2f Realization x2b Approach x2e png x2f 16adb987 a458 4f64 9aac d4fe25f21457 x3f t x3d 1411136291243 br br br br br span style font size 16px strong Result br br strong span br img src http x3a x2f x2f www x2e adoxx x2e org x2f live x2f documents x2f 10157 x2f 173140 x2f Result x2e png x2f 1f52366e 0713 428a ade8 a0d29c5055e5 x3f t x3d 1411136102905Mehmet Albayrak2014-09-19T12:16:28Z