cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Content Direction

vrault
MEGA Partner
MEGA Partner

Hello,

I would like to know if there is a way, through API, to access to the Content direction information:

 

MEGA_ContentDirection.JPG

 

Thanks in advance for your help,

Valery

4 Replies

RGenin
Trusted Contributor

@oguimard , 

What would be the equivalent in GraphQl ?

Thanks

The attribute you mentioned is a link attribute stored in the MetaAssociation.

 

To get it you need to navigate from Message Flow to your content.

 

Here is an example of a script in VB Script that does what you need

oColMessageFlow = GetCollection("~CK0MCRcD9bV1[Message Flow]")
for each oMsgFlow in oColMessageFlow 
oColContents = oMsgFlow.getCollection("~zVsPGacD9T30[Content]")
  for each oContent in oColContents 
print oContent.getProp("Name") & " - " & oContent.getProp("~uBPPgYsI9j50[Content direction]","display")
  next
next

 

Result : 

MEGA HOPEX Models::MEGA HOPEX::Any data in - Downstream
MEGA HOPEX Models::MEGA HOPEX::Any data out - Upstream
MEGA HOPEX Models::MEGA HOPEX::Existing Diagrams - Downstream
MEGA HOPEX Models::MEGA HOPEX::Persons / Users - Downstream

 

You need to adapt to Java.

 

Of course in this example we loop on all Message Flow and Al content. You need to adjust to the Message Flow or Content you need.

 

Java

Thanks

oguimard
Retired

Hello,

 

Which API are you talking about :

  • VB Script
  • Java
  • C#
  • REST API

?