on 10-23-2007 2:13 PM
Hi Expert,
I'd like to know if there is a way to globalize a user defined function?
I'd like to reuse a user defined function (e. g. DeleteLeadingCharacter) in several scenario/SWC instead of recreated it from scratch everytime - Is it possible?
Thanks
This functionality is supposed to be coming in PI 7.1, more easily than deploying a jar file to file system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can do that. All that you need to do is, create a class with the function of requried functionality. And create it as archive (.jar or .zip) and import the same in Import Arhives in IR.
So you can use the same function when and as you want.
Dont forget to enter import statement refering to the arvhice classes.
Hope this helps.
Prasad Babu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
There are no global functions.Global variables are possible.
You can use a UDF only in the Message Mapping where you created it.
Also you can create a java UDF and import it as an archive in whichever scenario you want.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi SALA,
<b>I'd like to reuse a user defined function (e. g. DeleteLeadingCharacter) in several scenario/SWC instead of recreated it from scratch everytime - Is it possible?</b>
its not possible...u have to recreate it.....
u can copy the code and modify only..
i min to say ..suppose u have created one UDF in one Message mapping...u cant reuse it in another Mapping..evenif bothe the mappings are under same namespace.
regards
biplab
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
NO you cannot not reuse one UDF not even in other namespace even in the same namespace in diff Mapping programme.
UDF is liminted to GraphicalMappingProgramme that you created you cannot reuse it in other MappingProgrammes.
Like your MM =A has function <b>getMyName</b>
you can use it in MM=A but if you want to use it in MM=B then u cannot.
So its not possible in XI or PI.
But it is possible in new release PI 7.1. That says you can write UDF and can reuse in any MM programme.
Thanks
Farooq.
*Rewards Points if you find it useful*
Hi SALA
Yes u can define global method by creating a java class
Steps
> create java class with whatever method u want to use again and again
> create JAR file of the java class
> import into impotted archive folder
> and while creating UDF u can use import statement like normal java program
> and access those method in ur code
rewards point if helpfull
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<i>I'd like to know if there is a way to globalize a user defined function?</i>
No. A particular variable can be made as global variable
<i>
I'd like to reuse a user defined function (e. g. DeleteLeadingCharacter) in several scenario/SWC instead of recreated it from scratch everytime - Is it possible?</i>
UDF visibility is in the message mapping in which it is created
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi SALA JEROME ,
We can use Global variables not Global Functions . That too specific to Namespaces .
Regards.,
V.Rangarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.