cancel
Showing results for 
Search instead for 
Did you mean: 

User Defined Function in BPM

Former Member
0 Kudos

Hello - Can I use a call aUser Defined function in the BPM ? If yes, How ? Any help ....Thanks..

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Michal - Thanx for the quick reply.

But I guess, at the runtime the Mapping comes in the last. My requirement is, Based on the user defined function I want to stop the processing in the BPM itself.

If I pass the message to the message mapping (after having passed through the BPM) to call the User defined function then I would not have any control on the message to pass on to the application system(SAP in this case).

Hence I think, I have to call this user defined function in the BPM itself. Pls advise...May be I am mistaking in my understanding. Thanx.

Amrish.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

if you use BPM then then mapping is done with the tranformation step so:

if you have:

receive step -> transformation step (with user function)-> swith step -> send step OR cancel process

then if your user defined function works you can set a value inside the mapping and then use this value inside

the swith step to either send a message or stop if (cancel process)

mapping is always executed during the transformatio step

BTW

all steps are executed one by one

Regards,

michal

MichalKrawczyk
Active Contributor
0 Kudos

Hi Amrish,

you want to use a function in the mapping?

if so then you have use it in your message mapping

and then create interface mapping based on this message mapping

and in the BPM you can use it in a <b>Transformation Step</b>

you can also use your own function if you create a <b>java mapping</b> - then you can base your interface mapping on this <b>java mapping</b>

if you want some guides on how to create user functions:

question 14

/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions

transformation step:

http://help.sap.com/saphelp_nw04/helpdata/en/27/db283fd0ca8443e10000000a114084/content.htm

Regards,

michal