ARIS Community - We Love BPM

Word report - Getting object of connected relationship type

stijn_improven's picture
by Stijn Hubregtse in Reports & Macros posted on 2017-02-24

I'm having a model where there is a object connected to a relationship type object to a other object.

I want to print in my report for every object the name of the relationship type object (this is easily done) but then i also want to print the other connected object of that relationship type object.

Example of my model:

|Object A| --- <HAS> --- |Object B|

 

Is this possible with prochandbook?

 

Thanks!

6812 Views
0 Likes
4 Comments
There are no attachments
Ariene Kroeze posted on 2017-02-24

Yes, that is possible. 

Cxnobj, xx, typename 

Where xx is the type of the related object. 

Regards, Ariene Kroeze 

Stijn Hubregtse posted on 2017-02-24

I must be doing something wrong.

When i use Cxnobj, xx, typename

is the xx the type of the relation type (11) or the object the relation type is related with (14)?

Both ways tested and i only get a "x"

 

The object = 14 and the relationship type = 11 is this helpful information?

Ariene Kroeze posted on 2017-02-24

Hi,

xx should be the type number of te related object (in your case 14).

Maybe you can upload (or mail) the template or only a relevant part of it (the table?)

Kind regards, Ariene.

Liju Ram posted on 2017-10-11

I am trying to do similar feat with ARIS Report. I have an object of Function type connected to another object of KPI Instance type. I want to create a table with 2 columns. First column with object of Function type and second column with object of KPI Instance type. 

For this i used CxnList function on my object with function type to fetch the relationship. My code is as follows,

var cxn = funcObj[i].CxnList(Constants.EDGES_INOUT)

output.OutputLn("" +cxn,getString("ID_DEFAULT_FONT"),15,RGB(0,0,0), Constants.C_TRANSPARENT,  Constants.FMT_BOLD  |  Constants.FMT_LEFT, 0)

and with the above code, cxn that gets printed is like this

Output cxnlist

CxnDef: ObjDef ID=-
3ERa75mBh_U:p:L-[R]-
ObjDef
ID=7iuw3i8K#GD:p:L,C
xnDef: ObjDef
ID=5dbeI2LNQBi:p:L-
[supports]-ObjDef
ID=7iuw3i8K#GD:p:L,C
xnDef: ObjDef
ID=7RvuBQOrvkJ:p:L-
[activates]-ObjDef
ID=7iuw3i8K#GD:p:L,C
xnDef: ObjDef
ID=7iuw3i8K#GD:p:L-
[activates]-ObjDef ID=-
umXiD23KqN:p:L,CxnD
ef: ObjDef ID=-
17LwwkMHEfR:p:L-[R]-
ObjDef
ID=7iuw3i8K#GD:p:L,C
xnDef: ObjDef
ID=7iuw3i8K#GD:p:L-
[KPI: measured by]-
ObjDef ID=3ZHmYRrPXT7:p:L

I am not sure why the output is like this. Appreciate any help.