cancel
Showing results for 
Search instead for 
Did you mean: 

Global variables array in PI 7.1

Former Member
0 Kudos

Hello,

I am aware that the global variable is of occurence 0.1 in PI 7.1. I have a situation to handle the count of contexts and do a boolean logic using the global variable. Is there a way I can assign this global variable to have array values?

Teresa

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

In my experience I figured out, that global variables cannot be used for complex scenarios.

So you better create a UDF then you can be sure that the result is what you expect.

Former Member
0 Kudos

Thanks Stefan. Thats what I thought too and good to see your message after a long time.

Teresa

Answers (2)

Answers (2)

former_member518917
Participant
0 Kudos

To create Global variables array you need to go to

Message Mapping -> Functions (TAB) -> Select Attributes and Methods -> right side you can wirte the syntex to create global variables.

example : SortedSet uniquerecords = new TreeSet();

This uniquerecords will be like global variable available in all the UDFs of the mapping..

Former Member
0 Kudos

Not that i know of, you cannot use arrays. however you can use several variables and map them together.

Regards,

Pavan