Skip to Content
0

NW BPM: issue with N:1 operation mapping

Oct 20, 2016 at 04:40 PM

101

avatar image

Hello!

I am developing my first NW BPM for PI purposes. There is an issue with imported operation mapping N:1.

The whole task is: to receive async request, to pass this request to an external service and get a response (sync) and to merge request and response into a single message, then to pass merged message back to the sender system.

DO_Req is populated from the very beginning. DO_Resp gets filled after "Call service" step. DO_RR has to be populated after "Mapping" step but it does not behave this way.

BPM log shows no errors but result of mapping is empty (only "Message1" element is present there) and thus DO_RR also remains empty.

It is strange that there was no problem when similar BPM was deployed from "Local development". But after I recreated it from scratch on a development configuration, it does not work as it has to.

Mapping service group has local provider checked and WS protocol.

Please help to solve the issue.

Here is BPM log:

10/20/20167:17:27 PM MSKProcess 'pool_v185_sc001_salesrepsms' initiated by message '2548ee9a96d611e6a1370000004f97fa'Control flowProcess initiated10/20/20167:17:27 PM MSKWeb service call startedApplicationApplication launched10/20/20167:17:27 PM MSKWeb service call returnedApplicationApplication result10/20/20167:17:27 PM MSKData object updatedData flowData object updated10/20/20167:17:27 PM MSKWeb service call startedApplicationApplication launched (WS)10/20/20167:17:27 PM MSKWeb service call returnedApplicationApplication result10/20/20167:17:27 PM MSKData object updatedData flowData object updated10/20/20167:17:27 PM MSKWeb service call startedApplicationApplication launched10/20/20167:17:27 PM MSKProcess 'pool_v185_sc001_salesrepsms' completedControl flowProcess completed
process.png (13.9 kB)
mapping-1.png (25.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

9 Answers

Raghuraman S Oct 21, 2016 at 03:46 AM
0

Hello Andrey,

DO_RR is output of Call webservice step If am not wrong.

Did you complete output mapping of that step,I mean did you complete the mapping of data to artifact in the Webservice step?

Share
10 |10000 characters needed characters left characters exceeded
Andrey Petin Oct 21, 2016 at 06:43 AM
0

DO_RR (I meant "RequestResponse") has to be a result of Mapping step which merges separate request and response variables (DO_Req and DO_Resp).

"Call service" step returns DO_Resp, it is filled well (I see it in logs).

Further examinations showed that source messages are not received by mapping (as if only root elements are present). Maybe there is something specific about N:1 mappings? I implemented another mapping, which is simple 1:1, it works well.

Maybe there is a way to monitor WS call to operation mapping? I would like to see the source messages content of this step.

Share
10 |10000 characters needed characters left characters exceeded
Raghuraman S Oct 21, 2016 at 06:54 AM
0

Hello Andrey,

Is DO_RR repeating one?use append or merge function..you can click on the mapping of target node to accomplish.

for monitoring you can check in NWA,where you can see what data is actually flowing.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hello Raghuraman.

It is not repeating. It is single, as well as source messages DO_Req and DO_Resp.

Mapping is created to form a single DO_RR from single instances DO_Req and DO_Resp.

Here is a screenshot.

In NWA I only see the result of mapping but not its source messages.

mappingdef.png (29.3 kB)
0
Raghuraman S Oct 21, 2016 at 07:51 AM
0

Hello Andrey,

Had a similar discussion before sometime,you can try that way.

https://archive.sap.com/discussions/thread/3815442

Did you check in NWA logs for the values?are they passed correct?Check whether you done all the artifact mapping in NWBPM as well.

Share
10 |10000 characters needed characters left characters exceeded
Raghuraman S Oct 21, 2016 at 07:51 AM
0

Hello Andrey,

Had a similar discussion before sometime,you can try that way.

https://archive.sap.com/discussions/thread/3815442

Did you check in NWA logs for the values?are they passed correct?Check whether you done all the artifact mapping in NWBPM as well.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Raghuraman, thank you for the link, it looks like a similar issue.

I mapped everything but the messages do not reach mapping inputs for some reason. Looks like a bug maybe.

Is this mapping correct or should I do something to root elements like "Message1" and so on?

Maybe I'll try some workaround like the one in the mentioned topic.

mapping-1.png (25.8 kB)
0
Raghuraman S Oct 21, 2016 at 08:13 AM
0

Hello Andrey,

Mapping from the screenshots I am not seeing anything wrong.

why cant you merge messages using NWBPM only instead of using operation mapping?just a suggestion.

In the mean time you can try the approach as per link and check.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

There is some complicated logic in the mapping. I am not familiar with BPM mapping well yet. Though there is sense in learning it.

The most strange thing is that the BPM worked fine when deployed from "Local development" configuration.

0
Raghuraman S Oct 21, 2016 at 09:17 AM
0

Hello Andrey,

worked from local development?now ur using NWDI track?

You can compare both the patterns and mapping steps.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

No NWDI track, we are using CTS+ as a transport tool. But yes, my SC is included into development configuration.

I checked BPM steps many times. The other mapping works (not shown on my screenshots), but it is 1:1.

Something strange with N:1. I'll try now to recreate BPM from scratch using another name prefix for my DC.

0
Raghuraman S Oct 21, 2016 at 09:35 AM
0

ok..let us know the result.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

This did not help.

It seems I have to use BPM mapping or some other way. Maybe I'll ask SAP via opening a ticket.

0

A note from SAP was found: 2342372.

We'll try applying patches. Probably it will solve the issue.

0
Raghuraman S Oct 21, 2016 at 11:34 AM
0

Okay Andrey.Try.If it didnt solve lets try modifying the pattern.

Share
10 |10000 characters needed characters left characters exceeded