Error:anotebk-889Error:anotebk-889RE: Error:anotebk-889Mehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=5064872016-03-31T13:27:39Z2016-03-31T13:26:35Z<span style="font-size: 16px"><span style="font-family: Arial, Helvetica, sans-serif">The problem relates to the command CLOSE_ALL_NOTEBOOKS. The event AfterEditAttributeValue is triggered if the attribute ‘Name' is changed. But only if you close the notebook or change to another attribute scope. Therefore closing the notebook (within the AdoScript) when it the event is triggered within its scope results in the runtime error.<br /><br /></span><span style="font-family: Arial, Helvetica, sans-serif">If you change the name of the instance without opening the notebook (e.g. through the tabular view) you should not have any errors, as the scope of the script is not within the notebook.<br /><br /></span><span style="font-family: Arial, Helvetica, sans-serif">Therefore we have implemented a solution that enables delayed AdoScript exeuction, essentially saving the AdoScript, waiting for the action within the notebook is completed and closed and then dynamically executing it. The functionality saves your AdoScript that should be executed in the ‘AfterEditAttributeValue’ in a global variable called ‘mDelayedAdoScript’ (as a map). This variable is declared within the event AppInitialized and is empty until the name of a task or sub-process instance is changed. This AdoScript is triggered when the notebook of the appropriate instance is closed. The check if the notebook is open and the execution of the saved AdoScript is done by the event ‘MOCTimer’. This event is triggered every 55ms and works as a timer (that we saved before in the variable mDelayedAdoScript) only if the notebook is closed. You can download the library and the AdoScripts at the folllowing link:<br /><a href="https://www.adoxx.org/live/documents/10157/110691/20160324_SeMFIS+extension_FAQ.zip/39438b2e-380e-4284-8ee1-83032850e595">Download Link<br /><br /></a></span><span style="font-family: Arial, Helvetica, sans-serif">Additionally we have added a debug logger to track the commands in the ‘Event Logging’ window dynamically - please feel free to remove this development functionality in case you have completed your implementation task.</span></span>Mehmet Albayrak2016-03-31T13:26:35ZError:anotebk-889Ioanna Ramoutsakihttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=5064632016-03-31T13:12:40Z2016-03-31T13:10:14ZHello,<br />I extend a tool so as to implement semantic annotations in Business Process Models (BPMN 2.0) with automated suggestions. Specifically, the tool will retrieve and recommend annotations on Tasks and SubProcceses of a business process model using an ontology based data matching strategy.The user will have the choice either to select one of the automated suggestions (select and click "ok") or manually to select an annotation using the "Semantic Annotation" chapter of instance's notebook (see the attached file "automaticallySuggestedAnnotations").In the second case of manually selection, when the user click the "cancel" button of the "Select a Concept" box, i want the notebook of the processed task on chapter "Semantic annotation" to display on the screen automatically so as the user could manually select an annotation with an ontology.I have written the below code for this reason (see the ELSE code):<br /><div class="code"><span class="code-lines"> 1</span>IF (endbutton = "ok"){ <br /><span class="code-lines"> 2</span> SET s_selected_annotation: (selection)<br /><span class="code-lines"> 3</span> CC "Core" REMOVE_ALL_INTERREFS objid: (s_selected_objid) attrid: (semanticAnnotID) <br /><span class="code-lines"> 4</span> CC "Core" ADD_INTERREF attrid: (semanticAnnotID) objid: (s_selected_objid) tmodelname: (sModelName) tmodeltype: "Ontology Model" tclassname: "Class" tobjname: (s_selected_annotation)<br /><span class="code-lines"> 5</span>}<br /><span class="code-lines"> 6</span>ELSE{ <br /><span class="code-lines"> 7</span> CC "AdoScript" INFOBOX "Annotation could not be set automatically, select one manually"<br /><span class="code-lines"> 8</span> CC "Modeling" CLOSE_ALL_NOTEBOOKS modelid: (g_modelid) <br /><span class="code-lines"> 9</span> CC "Modeling" EXEC_NOTEBOOK objid: (s_selected_objid) <br /><span class="code-lines">10</span> CC "Modeling" SHOW_NOTEBOOK_CHAPTER objid: (s_selected_objid) chapter:7 chapter-page:1<br /><span class="code-lines">11</span>}<br /></div><br /><br />But the follow error code is displayed. Error Code: anotebk:889 (see the attached file "ADOxx runtimeError889") and then a crush dump file is created (see the attached file "crashDumpFile").<br />I also send the full code of event "AfterEditAttributeValue" that i have written until now. The code that it has problem is below the comment with the number 13 and 24.<br /><br />[font='Courier New', Courier, monospace]I would appriciate any help!!Ioanna Ramoutsaki2016-03-31T13:10:14Z