Skip to Content

NW BPM Mapping from several different data objects into one

Hi!

My BPM contains initial message (DO_Req) with, for example, 10 SMS rows with their IDs.

After that an external synchronous service is called which returns a response (DO_Resp) with exactly a header and exactly 10 response items but without IDs.

I have to combine both messages (1 DO_Req and 1 DO_Resp) into 1 resulting message (DO_ReqResp). There should be 10 resulting rows where IDs are acquired from DO_Req and other fields (i.e. SmsId) are acquired from DO_Resp.

BPM gives an error when I try to organize such a mapping. OK, it doesn't know that there are equal numbers of request rows and response items. How can I achieve it?

bpm-mapping.png (67.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 24, 2016 at 03:30 AM

    Hi Andrey,

    Map id's from the request into DO_ReqResp in the start event like below.

    Then after calling the service in the success response or failure mapping you can map other fields from DO_Resp into DO_ReqResp like below.

    Regards,

    Praveen.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 23, 2016 at 07:28 PM

    Hi Andrey,

    Use below mapping. Map Item node to target row node.

    Regards,

    Praveen.

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Praveen.

      If so, then there is an error in "id" mapping (Request row is also a 1..unbounded element).

      I mean, both request row and response item are 1..N, and their numbers are always equal. I have to compose 10 rows from 10 ids from request and 10 sms_ids from response.

      bpm-mapping-2.png (22.4 kB)
  • avatar image
    Former Member
    Oct 24, 2016 at 03:34 AM

    Hi Andrey,

    When you map the response from DO_Resp to DO_ReqResp from the source Item to target row node you need do the assignment as merge like below then it wont lost the id's which we mapped already.

    Regards,

    Praveen.

    Add comment
    10|10000 characters needed characters exceeded