Frequently Asked QuestionsFrequently asked questions and answers introducing ADOxx.org.RE: Connect to other modelling editors and synchronize contenthttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=25829582022-09-14T05:43:40Z2022-09-14T05:43:40ZDear ADOxx Community Member,<br /><br /> thank you for your message! Regarding your questions, please find our hints/suggestions below:<br /><br /> ad 1) This is possible and you need to a) think about the mapping from the tools/editors you consider the source and the language you have implemented and b) assess the interfaces these tools provide (format, syntax, realisation)<br /> ad 2) Synchronization (on the ADOxx-side) can happen through various possibilities. Depending on the source system, you can decide what you want to use. The simplest way is file-based synchronization which can be realized using AdoScript (parsing and mapping any format that is textual), a generic example is here <a href="https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.adoxx.org%2Flive%2Ffaq%2F-%2Fmessage_boards%2Fmessage%2F59640&data=05%7C01%7Canna.sumereder%40boc-group.com%7C46eec6fd45f84432412908da95ace2a0%7C47564ca806334c4a9c3b54f8edf171b3%7C0%7C0%7C637986867014698248%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=k3tIWJ2YiQer%2FoitZ8YF6oWcnu2qF2WS0lzMdeoCkl8%3D&reserved=0">https://www.adoxx.org/live/faq/-/message_boards/message/59640</a>. More complex solutions are web service clients and servers to control the synchronization.<br /><br /> In case of any further question, please do not hesitate to contact us.<br /><br /> Best regards,<br /> the ADOxx.org Team2022-09-14T05:43:40ZConnect to other modelling editors and synchronize contenthttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=25829522022-09-14T05:42:47Z2022-09-14T05:42:47ZDear ADOxx Team,<br /><br />I need help for my specific needs:<br /> 1. How to connect my language created on ADOxx with other modeling editors mainly Capella and Archimate?<br /> 2. A specific need is to connect/ synchronize the content of my ADOxx model and that of these models.<br /><br />Thank you very much in advance!2022-09-14T05:42:47ZRE: Create a model where modelling is not possibleMateusz Dziedzichttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=15841172019-05-29T09:05:34Z2019-05-29T09:03:54ZIf you add a mode with the attribute “no-modeling” to a model type, then this mode will not be shown in View→Mode menu in the ADOxx Modelling Toolkit. Therefore it is not possible to manually switch a model of the specified model type to the “no-modeling” mode. To my knowledge it is also not possible to switch a model to a “no-modeling” modi using AdoScript. However, as your purpose is to “Create a model where modelling is not possible” then you can f.e. do the following: Write an AdoScript code to create your model and then to open it “write-protected”. Here you have a short example code:<br /><br /><div class="code"><span class="code-lines"> 1</span>CC "CoreUI" MODEL_SELECT_BOX mgroup-sel without-models<br /><span class="code-lines"> 2</span>#--> RESULT ecode:intValue mgroupids:idList<br /><span class="code-lines"> 3</span><br /><span class="code-lines"> 4</span>CC "Core" CREATE_MODEL modeltype: ("Sample")<br /><span class="code-lines"> 5</span> modelname: ("TestModel22")<br /><span class="code-lines"> 6</span> version: ("0.1")<br /><span class="code-lines"> 7</span> mgroups: (mgroupids)<br /><span class="code-lines"> 8</span><br /><span class="code-lines"> 9</span>#--> RESULT ecode:intValue modelid:id threadid:id refids:strValue<br /><span class="code-lines">10</span><br /><span class="code-lines">11</span>CC "Core" DISCARD_MODEL modelid: (modelid)<br /><span class="code-lines">12</span>CC "Modeling" OPEN modelids: (STR modelid) write-protected<br /></div><br />In the above code a new model of a specified model type is created within a selected model group. Next, the created model is opened “write-protected”, which disables changes in the model.Mateusz Dziedzic2019-05-29T09:03:54ZCreate a model where modelling is not possiblehttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=15841022019-05-29T08:16:38Z2019-05-29T08:16:21ZMy purpose is to create a model of a modeltype, where modelling is not possible. I saw that it is possible to add a mode to a model type with a property „no-modeling“. Doing this it says that the defined mode will not be applicable for modeling and will not be shown in the menu entry "Mode" of the modeling component (https://www.adoxx.org/live/model-types). Now my Question: How can I switch the mode for a model to a „no-modelling“ mode respectively can I specify during the creation of a model that it should be created in the „no-modelling“ mode?2019-05-29T08:16:21ZRE: Avoid immediately deleting objectsMateusz Dziedzichttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=14384152018-12-10T08:13:24Z2018-12-10T08:06:49ZOne possibility is to use the "<a href="https://www.adoxx.org/AdoScriptDoc/files/Events/Core/BeforeDeleteInstance-js.html#BeforeDeleteInstance">BeforeDeleteInstance</a>" event to execute a script before an instance is deleted. Within the script you can define a query for the user. Thereafter you can use the returned value as an input for the <a href="https://www.adoxx.org/AdoScriptDoc/files/General_AdoScript_Commands/EXIT-js.html#EXIT">EXIT</a> command to either stop the execution of the code and thus preventing the deletion of an instance or not.<br /><br />The code for this purpose would look the following (You place the event in the external coupling of your library): <br /><div class="code"><span class="code-lines">1</span>ON_EVENT "BeforeDeleteInstance" {<br /><span class="code-lines">2</span>EXECUTE file: ("db:\\EVENT_before_delete_instance.asc") scope:same <br /><span class="code-lines">3</span>EXIT(nBeforeDeleteInstanceExit)<br /><span class="code-lines">4</span>}<br /></div><br />In this case the content of the EVENT_before_delete_instance.asc AdoScript file looks the following:<br /><div class="code"><span class="code-lines">1</span>CC "AdoScript" QUERYBOX "Ary you really sure that you want to delete this object?" yes-no def-no<br /><span class="code-lines">2</span># -->RESULT endbutton:strValue<br /><span class="code-lines">3</span>IF(endbutton = "no") {<br /><span class="code-lines">4</span> SET nBeforeDeleteInstanceExit: -1<br /><span class="code-lines">5</span>} ELSE{<br /><span class="code-lines">6</span> SET nBeforeDeleteInstanceExit: 0<br /><span class="code-lines">7</span>}<br /></div><br />Thus,depending on what option the user selects on the querybox the variable “nBeforeDeleteInstanceExit” will hold either -1 or 0. The value serves as a parameter for the EXIT command within the “ON_EVENT” scope. EXIT (0) means that there will be no abortion and the instance will be deleted. EXIT (-1) means that the execution will be aborted without an error and the instance will not be deleted. <br /><br />See attached an example library with the included event and the corresponding AdoScript file.Mateusz Dziedzic2018-12-10T08:06:49ZAvoid immediately deleting objectshttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=14351802018-12-07T13:51:49Z2018-12-07T13:50:46ZHi!<br /><br />It sometimes happens to me that I accidentally delete an object when moving too fast through the context menu. The problem is that if the object has some connectors all the connectors are also deleted and I have to model it once again. But if one just cuts the object, then a message is displayed warning that there are some connectors associated with this particular object. This is not the case if one simply selects Delete from the context menu. Is there a possibility to avoid the deleting of the connectors or at least to warn the user before all the objects will be deleted?2018-12-07T13:50:46ZRE: Run DashboardTransformer.javaNedim Rifatbegovichttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=10766072017-12-11T14:14:26Z2017-12-11T14:14:26ZDear Andrea,<br /><br />In order to solve the problem please follow the steps under https://www.adoxx.org/live/dashboard-extend. At the end, you will have to open the file in an Eclipse environment. <br /><br />If you have any more questions, please don't hesitate to contact us anytime. Nedim Rifatbegovic2017-12-11T14:14:26ZHow to save datas into cockpit from RECORD classfabio montenerihttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=6168062016-07-08T11:38:02Z2016-07-08T11:38:02ZHi,<br />i'm writing an Adoxx program, i have a class with a RECORD attribute inside. It is linked to a Record Class.<br />I'm trying to add the RECORD attribute to my cockpit file as following:<br /><br /><xsl:element name="ATTRIBUTES"><br /><xsl:attribute name="NAME">Change Attribute</xsl:attribute><br /><xsl:attribute name="TYPE"> <xsl:value-of select="./attribute[@name='change attribute']/@type"></xsl:value-of></xsl:attribute><br /><xsl:element name="VALUE"><xsl:value-of select="./attribute[@name='change attribute']"></xsl:value-of></xsl:element><br /></xsl:element><br /><br /><br />I cannot receive the expected result because in cockpit file i receive this string:<br /><br /><ATTRIBUTES NAME="Change Attribute" TYPE=""><br /><br />As you can see, Type "" is empty so it cannot see the attribute.<br /><br /><br />Hope you can help me,<br />thank you very much.<br /><br />Fabio Monteneri.fabio monteneri2016-07-08T11:38:02ZRE: Run DashboardTransformer.javaAndrea Rapaccihttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=6164142016-07-08T06:47:44Z2016-07-08T06:47:44ZHello,<br /><br />Our problem is that we are not able to generate the data.json file. The guide says that we have to open the DashboardTransformer.java, how to do it? if we run it via console we receive this error: "package org.apache.log4j does not exist.<br /><br /><br />Our major problem is also that we are trying to personalize the dashboard view, we are modifying the dashboard.js file but what we write there doesn't appear in the header of the dashboard that we load.<br /><br />Thank you, we are looking forward to hear you soon.Andrea Rapacci2016-07-08T06:47:44ZRun DashboardTransformer.javaAndrea Rapaccihttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=6162822016-07-07T13:33:48Z2016-07-07T13:33:48ZHello,<br /><br />how can I run DashboardTransformer.java?<br /><br />Thank you very muchAndrea Rapacci2016-07-07T13:33:48ZRE: Class renameAndrea Rapaccihttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=6129182016-07-01T13:56:38Z2016-07-01T13:56:38ZOk ThanksAndrea Rapacci2016-07-01T13:56:38ZRE: Class renameMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=6128642016-07-01T13:34:04Z2016-07-01T13:32:59ZHi,<br />Renaming of classes in ADOxx is not possible. But you can copy one class within your application library. After you selected the the 'superclass' from which the copied class should be inherited, you can give this class a name. Afterwards, it is up to you, if you want to delete the original class. <br /><span style="font-size: 18px"><strong>NOTE:</strong></span> Please check library on errors as it can occur some mis-matches because of previous definitions e.g.: MODI, InterRefs, ...Mehmet Albayrak2016-07-01T13:32:59ZClass renameAndrea Rapaccihttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=6128342016-07-07T14:02:23Z2016-07-01T13:12:30ZHello,<br /><br />I would like to know if is possible to rename a class in the class hierarchy after the creation. <br /><br />Thank youAndrea Rapacci2016-07-01T13:12:30ZRE: Relation classMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=6097882016-06-28T05:32:36Z2016-06-28T05:32:36Z<span style="font-size: 16px">Hi,<br />You have also to ensure that the source class and the target class of the relation is defined in this model type (step 4). If only one of them is missing the relation will not be displayed as you cannot model it.</span>Mehmet Albayrak2016-06-28T05:32:36ZRelation classAndrea Rapaccihttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=6097202016-06-27T20:23:19Z2016-06-27T20:23:19ZHello,<br /><br />we are trying to create a new Relation class. <br />Our procedure is:<br />1- Go into Class Hierarchy<br />2- Relation Classes -> New -> New Relationclass<br />3- i punt a name, from class and to class<br />4- i add the relation class created into my library attribute addons<br /><br />When i go to the modeling toolkit there's not the relation class created... What is the problem?<br /><br />Thanks a lotAndrea Rapacci2016-06-27T20:23:19ZRE: Cockpit creation for the dashboardAndrea Rapaccihttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=5792342016-06-03T13:18:28Z2016-06-03T13:18:28ZHi,<br />our problem is that we cannot generate the cockpit xml file. We are arrived to the script <br /><span style="font-family: monospace"><span style="font-size: 16px">ITEM "Generate COCKPITxml" importexport:"Documentation"</span></span><br /><span style="font-family: monospace"><span style="font-size: 16px">EXECUTE file:"db:\\ADOXML2COCKPIT.asc"<br /><br />Should we have now a cockpit.xml file? we cannot find it.<br /><br />thank you very much<br /><br /></span></span>Andrea Rapacci2016-06-03T13:18:28ZRE: Cockpit creation for the dashboardMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=5786052016-06-03T09:43:37Z2016-06-03T07:54:15Z<span style="font-size: 16px">The 'ADOxx Dashboard' building block (<a href="https://www.adoxx.org/live/dashboard-details"><strong>Link</strong></a>) is implemented on the '<strong>Cause and Effect Model</strong>' model type for defining strategic and operational goals and their performance indicators. This means if you change the modelling language of this modeltype than you have also to change the XSL stylesheet 'adoxml2cockpit.xsl'. You can perform this transformation with Adoscript (see below code) through a menu item as described in the extend section of the 'ADOxx Dashboard' building block documentation (<a href="https://www.adoxx.org/live/dashboard-extend"><strong>Link</strong></a>). <br />If you want to implement this scenario to your library please follow the setps below:<br /><br />1) Adopt the modeling language of the "<strong>Cause and Effect Model</strong>" model type into your application library or use the 'Cause and Effect Model Library'. <br /><br /><img src="https://www.adoxx.org/live/documents/10157/436357/CauseAndEffect.png/b6b10bae-3e08-4ccd-8b7c-4983b8da7767?t=1464949479670" /><br /><strong> Metamodel of "Cause and Effect Model" model type</strong><br /><br /><br />2) Import ADOXML2COCKPIT.asc and adoxml2cockpit.xsl files into your library (See <a href="https://www.youtube.com/watch?v=ILI1FPyRMuI">Video tutorial</a>)<br />3) Copy the following Adoscript code into the library attributes 'Add ons'<br /><br /></span><span style="font-size: 16px"></span><div class="code"><span class="code-lines">1</span>######################################################<br /><span class="code-lines">2</span>############# Generate COCKPITxml ####################<br /><span class="code-lines">3</span>######################################################<br /><span class="code-lines">4</span>ITEM "Generate COCKPITxml" importexport:"Documentation"<br /><span class="code-lines">5</span>EXECUTE file:"db:\\ADOXML2COCKPIT.asc"<br /></div><span style="font-size: 16px"><br />For a better understanding how to realize this scenario please look also into the attached example library.<br />Please <strong>NOTE </strong>that, if you change the meta model you have to adjust also the adoxml2cockpit.xsl</span>Mehmet Albayrak2016-06-03T07:54:15ZCockpit creation for the dashboardAndrea Rapaccihttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=5742222016-06-01T07:32:48Z2016-06-01T07:32:48Z<span style="font-size: 12px">Goodmorning,<br /><br />I want to implement a personalized dashboard for our adooxx project. I have downloaded the plugin but I'm not able to create the cockpit file in order to transform it in .jason<br /><br />Thanks a lot.<br /></span>Andrea Rapacci2016-06-01T07:32:48ZRE: Error: (Wrong value in attribute "Configuration of documentation")fabio montenerihttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=5488182016-05-11T12:20:08Z2016-05-11T12:20:08ZThank you very much, this solved my problem.fabio monteneri2016-05-11T12:20:08ZRE: Error: (Wrong value in attribute "Configuration of documentation")Mehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=5427962016-05-06T05:55:51Z2016-05-06T05:53:58ZAs the BPMN library of ADOxx.org contains 'RTF' and 'HTML' documentation. These documentations need an extension in the modeltype definitions. This means if you define new modeltypes you have to add a MODE called 'Documentation' to your modeltype definition by adding the following line of code.<br /><br /><div class="code"><span class="code-lines">1</span>MODE "Documentation" from:all no-modeling</div><br />The extension 'no-modelling means that this MODE will not be shown in the option "Modes" in the Modelling Component.Mehmet Albayrak2016-05-06T05:53:58Z