cancel
Showing results for 
Search instead for 
Did you mean: 

parameterized mapping in pi 7.1

Former Member
0 Kudos

Hi All

In PI 7.1 you can make use of parameters, I want to use the import parameter to pass to my java mapping. The question is can the import parameters only be constants or is there a way to make the fields dynamic? For instance get the value from source structure and pass it to java mapping.

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

> For instance get the value from source structure and pass it to java mapping.

When you have the value in source structure, you can access it in your Java mapping anyway, so why do you want this feature?

When you have several mapping steps, you can pass parameters from one mapping to another, and inside a BPM you can provide parameter values from container objects, but in a standard single mapping it is not possible to use dynamic values.

Former Member
0 Kudos

Hi

How will I access the value from the java mapping? do I have to use the DOM parser and loop through the elements or is ther easier way to et the value from source?

stefan_grube
Active Contributor
0 Kudos

> How will I access the value from the java mapping? do I have to use the DOM parser and loop through the elements or is ther easier way to et the value from source?

There are different options. That depends what your Java mapping should do.

Former Member
0 Kudos

I call a stored procedure inside my java mapping so I want to use some of the values from the source structure to pass it to my stored procedure.

Former Member
0 Kudos

You can opt for JDBC look up for the case when you have to call a stored procedure while doing mapping. There are lots of material on SDN, just search around and you will find some..

Regards,

Nipun

stefan_grube
Active Contributor
0 Kudos

In that case I would go for DOM parser.