Hi ARIS community!
I am trying to use the following method,
var aConObj = commonUtils.search.searchConnectedObjOccs( p_oObj, p_oObj.Cxns( p_nDir, p_nCxnType) )
I am calling the above "searchConnectedObjOccs" method to get the connected object occurrences.
For example,for "input" the value of p_nDir will be "Constants.EDGES_IN" and p_nCxnType will be "Constants.EDGES_NONSTRUCTURE"
Similarly, for output the value of p_nDir will be "Constants.EDGES_OUT" and p_nCxnType will be "Constants.EDGES_NONSTRUCTURE".
I am successfully getting the input and the output related objects from this method.
But, I want to get the object occurrences based on the connection,
for example if a "role" object has a "provides input for" connection TO a process,i want to access the name of the "role" object using the
If "role" object has an "accept" connection FROM a process,i want to access the name of the "role" object.
Can anyone please tell me a method that can help me out with the above question.
Regards.
Mateusz Kniżewski on
If i get you right you have situation(something like in the picture). And you want to get all proceses tat are connected to this role by only one type of connection.
if yes :) i used creator to get code like this:
Code below will show you all names of process that are connected to this role obj with one type of connection (i use random connection type)
// this obj p_aObjDef is the Role obj for(var i=0; i<p_aObjDef.length; i++) { iteration_group(p_output, p_aObjDef[i].getConnectedObjs([Constants.OT_FUNC], Constants.EDGES_TYP, [Constants.CT_AGGREG])) } function iteration_group(p_output, p_aObjDef1) { // repetition of queried data: for(var i1=0; i1<p_aObjDef1.length; i1++) { p_output.BeginParagraphF(getString("ID_STYLE_RD_DEFAULT")) writeData(p_output, p_aObjDef1[i1].Name(nLocale)) p_output.EndParagraph() } function writeData(p_output, p_String) { p_output.OutputLnF(p_String, getString("ID_STYLE_RD_DEFAULT")) }