Filtering MODEL_SELECT_BOX listFiltering MODEL_SELECT_BOX listRE: Filtering MODEL_SELECT_BOX listMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=5072832016-04-01T06:52:30Z2016-04-01T06:39:35Z<span style="font-size: 16px">1) Yes, you can execute files also with the AppInitialized event.<br />2) The parameters that you can define for the command MODEL_SELECT_BOX are as follows:<br /></span><br /><div class="code"><span class="code-lines"> 1</span>CC "CoreUI" MODEL_SELECT_BOX [ opened-models | loaded-models ]<br /><span class="code-lines"> 2</span> [ multi-sel ]<br /><span class="code-lines"> 3</span> [ show-all-versions ]<br /><span class="code-lines"> 4</span> [ threads ]<br /><span class="code-lines"> 5</span> [ presel-modelids:strValue ]<br /><span class="code-lines"> 6</span> [ without-models ]<br /><span class="code-lines"> 7</span> [ mgroup-sel ] [ presel-mgroupids:strValue ]<br /><span class="code-lines"> 8</span> [ with-app-models ]<br /><span class="code-lines"> 9</span> [ SingleMTFilter | MultiMTFilter ]<br /><span class="code-lines">10</span> [ title:strValue ]<br /><span class="code-lines">11</span> [ boxtext:strValue ]<br /><span class="code-lines">12</span> [ oktext:strValue ]<br /><span class="code-lines">13</span> [ w:intValue h:intValue ]<br /><span class="code-lines">14</span> [ min-w:intValue min-h:intValue ]<br /><span class="code-lines">15</span> [ setdblclick:intValue ]<br /><span class="code-lines">16</span> [ extra:{ Extra } ]<br /></div><span style="font-size: 16px"><br />By definition there are no additional filters for models with certain properties. But here we can make a work-around as follows:<br /><br />1) Query the models with the certain property with ADOxx Query Language (AQL)<br /><a href="https://www.adoxx.org/live/adoxx-query-language-aql">AQL Documentation</a><br />2) Open the models from step 1.<br />3) Close all other models.<br />4) add the extension 'opened-models' to the MODEL_SELECT_BOX command</span><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 16px"> </span><br /><br /><span style="font-size: 16px">The following code snippet is an example to implement the above described step.</span><br /><br /></span><div class="code"><span class="code-lines"> 1</span>#Query the models with the "Model type"-attribute value equals "Current model"<br /><span class="code-lines"> 2</span>CC "AQL" EVAL_AQL_EXPRESSION expr:"<\"Business process diagram (BPMN 2.0)\">[?\"Model type\"=\"Current model\" ]" modelscope<br /><span class="code-lines"> 3</span>SET sCurrentModelsModelType: (objids)<br /><span class="code-lines"> 4</span>#Close all other opend models<br /><span class="code-lines"> 5</span>CC "Modeling" GET_OPENED_MODELS<br /><span class="code-lines"> 6</span>SET sOpenedModels: (modelids)<br /><span class="code-lines"> 7</span>SET sNotMathingModels: (tokdiff(sOpenedModels,sCurrentModelsModelType))<br /><span class="code-lines"> 8</span>FOR i in: (sNotMathingModels) {<br /><span class="code-lines"> 9</span> CC "Modeling" CLOSE modelid: (VAL i)<br /><span class="code-lines">10</span>}<br /><span class="code-lines">11</span>#Open the models of the query result<br /><span class="code-lines">12</span>CC "Modeling" OPEN modelids: (sCurrentModelsModelType)<br /><span class="code-lines">13</span>#Add "opened-models" extension<br /><span class="code-lines">14</span>CC "CoreUI" MODEL_SELECT_BOX opened-models<br /></div>Mehmet Albayrak2016-04-01T06:39:35ZFiltering MODEL_SELECT_BOX listhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=5072672016-04-01T06:21:01Z2016-04-01T06:21:01ZHello,<br />1. Could I place an execute file on event 'appInitialized' using the code: EXECUTE file: (db:\\suggestOntologiesForAnnotations.asc)?<br />I want when the application opens to search for each BPMN model which is the most 'suitable' ontologies for annotations automatically.<br /><br />2. On 'Model Select Box', how could I choose to appear only some of my BPMN models that meet certain criteria?<br />I use the restriction: modeltype: "Business process diagram (BPMN 2.0)" but i don't want all BPMN models. Is there a solution for this case?<br /><br />Kind regards2016-04-01T06:21:01Z