Getting Connectors IDs of a specific typeGetting Connectors IDs of a specific typeRE: Getting Connectors IDs of a specific typeMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=3359912015-07-03T06:03:40Z2015-07-03T05:41:17ZDear Fadi,<br /><br />Thank you for your question. For getting only the instances of a special relation using the command GET_CONNECTORS can be done in the following way:<br /><br /><div class="code"><span class="code-lines"> 1</span>CC "Core" GET_CONNECTORS objid: (objid)<br /><span class="code-lines"> 2</span>#-->RESULT ecode:intValue objids:strValue<br /><span class="code-lines"> 3</span>SET sConnectorList: (objids)<br /><span class="code-lines"> 4</span>SET sFlowConnectorList:""<br /><span class="code-lines"> 5</span>FOR i in: (sConnectorList) {<br /><span class="code-lines"> 6</span> CC "Core" GET_CLASS_ID objid: (VAL i) <br /><span class="code-lines"> 7</span> #--> RESULT ecode:intValue classid:intValue<br /><span class="code-lines"> 8</span> SET nObjClassId: (classid)<br /><span class="code-lines"> 9</span> CC "Core" GET_CLASS_NAME classid: (nObjClassId)<br /><span class="code-lines">10</span> #--> RESULT ecode:intValue classname:strValue isrel:intValue<br /><span class="code-lines">11</span> SET sObjClassName: (classname)<br /><span class="code-lines">12</span> IF (sObjClassName="Flow") {<br /><span class="code-lines">13</span> SET sFlowConnectorList: (tokunion (sFlowConnectorList , i, " "))<br /><span class="code-lines">14</span> }<br /><span class="code-lines">15</span>}<br /></div><br /><br />In this case I would suggest you to work with AQL. The following AQL delivers the same output like the AdoScript above.<br /><br /><div class="code"><span class="code-lines">1</span>CC "Core" GET_OBJ_NAME objid: (objid)<br /><span class="code-lines">2</span>SET sObjname: (objname)<br /><span class="code-lines">3</span>CC "AQL" debug EVAL_AQL_EXPRESSION expr: ("({\""+sObjname+"\"} -> <\"anyRany\">) OR ({\""+sObjname+"\"} <- <\"anyRany\">)") modelid: (modelid)<br /></div><br />You can find the AQL documentation at the following Link:<br /><strong><span style="font-size: 12px"><a href="http://www.adoxx.org/live/adoxx-query-language-aql">http://www.adoxx.org/live/adoxx-query-language-aql</a></span></strong>Mehmet Albayrak2015-07-03T05:41:17ZGetting Connectors IDs of a specific typeFadi Al Machothttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=3354752015-07-02T08:31:13Z2015-07-02T08:17:50ZGetting Connectors IDs of a specific type?<br />I found the command "GET_CONNECTORS" which gives back the is_inside also. What we need is the connectors of type "Flow" only, is there any specific command for that?<br />ThanksFadi Al Machot2015-07-02T08:17:50Z