cancel
Showing results for 
Search instead for 
Did you mean: 

creating function Library in PI 7.1

Former Member
0 Kudos

Hi All,

I have a requirement in which I need to write a function library which taking field value as input and returning the concatenation of the entire field.

For Example

Node 0-----unbounded

Field 1 1--1

Field 2 1--1

Field 3 1--1

Field 4 1--1

Field n 1--1

My Question is how can I give input to the function as number of field is not fixed. i.e I want to take N no of input and concat.

Thanks

Navneet

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181962
Active Contributor
0 Kudos

Hi Sumeet,

I am not sure how Function Library concept will address your issue.

Function Library is to make the UDFs available to other message mappings.

Coming to your requirement, the data can be dynamic, but the structure should be static.

In other words, you should always know the number of fields in a node. How can it be dynamic?

If it is dynamic, how do you define your source message type / data type etc?

Regards,

Ravi Kanth Talagana

Former Member
0 Kudos

Hi Ravi,

I have different Mapping and in each of the mapping I need to concatanate all the field comming and mapp into one field.

so that I decided to write a common Library function so that i can use the same function in each of the mapping.

in Each of the mapping the Number of field is not fixed.

regards,

Navneet

former_member181962
Active Contributor
0 Kudos

Hi Sumit,

I think the signature of a UDF i.e. the number of import and export parameters in fixed for a UDF.

YOu may have to use different UDFs for your requirement.

Regards,

Ravi Kanth Talagana