Skip to Content

This post show a simple example of connection from source iFlow to BPM, call an Operation Mapping in BPM, then send output to target iFlow.

simplebpm-iflow-bpm-iflow

The flow :
a. Sender (BC_S1) send a text file contain message FirstNameLastName via sender file adapter to first iFlow(PI to BPM).
b. First iFlow(PI to BPM) route message FirstNameLastName via receiver SOAP adapter to BPM(BC_BPM).
c. BPM(BC_BPM) call an Operation Mapping to combine message FirstNameLastName to FullName.
d. BPM(BC_BPM) route message FullName via sender SOAP adapter to second iFlow(BPM to PI).
e. Second iFlow(BPM to PI) save text file contain message FullName via receiver file adapter to Receiver (BC_R1).

The steps:
1. Create and activate interface objects in ESR
2. Create, activate and deploy source iFlow (PI to BPM) using NWDS
3. Create, activate and deploy target iFlow(BPM to PI) using NWDS
4. Create, activate and deploy BPM process. using NWDS
5. Test run it.

All sub steps:
1.1 Create data types DT_FirstNameLastName, DT_FullName
simplebpm-dt-firstnamelastname
simplebpm-dt-fullname

1.2 Create message types MT_FirstNameLastName, MT_FullName
simplebpm-mt-firstnamelastname
simplebpm-mt-fullname

1.3 Create below service interfaces :
SI_FirstNameLastName_OUT, outbound interface from Sender(S1).
simplebpm-si-firstnamelastname-out

SI_FirstNameLastName_IN_XI30, inbound interface to BPM(BC_BPM). Stateless XI30 compatible.
simplebpm-si-firstnamelastname-in-xi30

SI_FullName_OUT_XI30, outbound interface from BPM(BC_BPM). Stateless XI30 compatible.
simplebpm-si-fullname-out-xi30

SI_FullName_IN, inbound interface to Receiver(R1).
simplebpm-si-fullname-in

1.4 Create message mapping MM_FirstNameLastName_to_FullName to combine message FirstNameLastName to FullName.
simplebpm-mm-firstnamelastname-to-fullname

1.5 Create operation mapping OM_FirstNameLastName_to_FullName, for use in BPM.
simplebpm-om-firstnamelastname-to-fullname

2.1 Create iFlow EIP_simplebpm_IF_01_FILE2BPM
2.2 Assign sender BC_S1, receiver BC_BPM
2.3 Assign sender interface SI_FirstNameLastName_OUT, receiver interface SI_FirstNameLastName_IN_XI30
simplebpm-iflow01-graphical

2.4 Configure sender file adapter CC_SND_FILE_S1, receiver SOAP adapter CC_RCV_SOAP_BPM.
Receiver SOAP adapter use these URL “http://<hostname>:<port>/MessagingSystem/receive/JPR/XI” to send to BPM.
simplebpm-iflow01-cc-snd-file
simplebpm-iflow01-cc-rcv-soap-general
simplebpm-iflow01-cc-rcv-soap-adapter-specific

2.5 Activate and deploy. ICO generated.
simplebpm-iflow01-ico

3.1 Create iFlow EIP_simplebpm_IF_02_BPM2FILE
3.2 Assign sender BC_BPM, receiver BC_R1
3.3 Assign sender interface SI_FullName_OUT_XI30, receiver interface SI_FullName_IN
simplebpm-iflow02-graphical

3.4 Configure sender SOAP adapter CC_SND_SOAP_BPM, receiver file adapter CC_RCV_FILE_R1.
simplebpm-iflow02-cc-snd-soap
simplebpm-iflow02-cc-rcv-file

3.5 Activate and deploy. ICO generated.
simplebpm-iflow02-ico

4.1 Create new project eip_simplebpm in NWDS using perspective “Proces Development”.
4.2 Import WDSL for SI_FirstNameLastName_IN_XI30
4.3 Import WDSL for SI_FullName_OUT_XI30
4.4 Import WDSL for OM_FirstNameLastName_to_FullName
simplebpm-project-explorer

4.5 Create new process pro_simple. The completed process is like below:
simplebpm-pro-all

4.6 Create data objects act as variables to temporarily hold values before map to next steps.
simplebpm-pro-data-object

4.7 At Start step, Event trigger, add StartMsg.
simplebpm-pro-start-icon
simplebpm-pro-start-event-trigger
simplebpm-pro-start-output-mapping
simplebpm-pro-start-message

4.8 Add automated activity, OM_FirstNameLastName_to_FullName to bpm process.
simplebpm-pro-mm-icon
simplebpm-pro-mm-interface
simplebpm-pro-mm-input-mapping
simplebpm-pro-mm-output-mapping

4.9 Add  automated activity, SI_FullName_OUT_XI30 to bpm process.
simplebpm-pro-fullname-icon
simplebpm-pro-fullname-interface
simplebpm-pro-fullname-input-mapping
simplebpm-pro-fullname-output-mapping

4.10 Ensure service references is correct:
For SI_FullName_OUT_XI30, Type is “XI”, then maintain sender component “BC_BPM”
simplebpm-pro-service-references-xi

For OM mapping, type is “WS”.
simplebpm-pro-service-references-localhost

5.1 Load source file, then file will go through source iFlow to BPM to target iFlow and finally create target file with fullname. simplebpm-testing

5.2 Communication Channel Monitoring:
simplebpm-pimon-cc

5.3 Go to process repository and view it detail:
simplebpm-pimon-process-repository
simplebpm-pimon-process-repository-detail

5.4 Go to manage processes, view process instances completed.
simplebpm-pimon-manage-process
simplebpm-pimon-manage-process-process-instances

Reference:
http://scn.sap.com/community/process-orchestration/blog/2012/06/11/using-netweaver-pi-s-mapping-in-netweaver-bpm
Using Operation Mappings (PI) in a BPM Process
Configuring Message Processing from BPM to PI
Integrating PI Operation Mapping with SAP BPM

Thanks for viewing.

To report this post you need to login first.

8 Comments

You must be Logged on to comment or reply to a post.

  1. Ramashish kumar

    hi Yee,

    I was trying out this scenario but getting an error in nwa ->configuration -> process instance ->

    A technical error occured during invocation of operation ‘OM_FirstNameLastName_to_FullName’ of interface ‘demosapcom_eip_simplebpm_OM_FirstNameLastName_to_FullNamePortType’: ‘Could not invoke service reference name d312e044-9007-4fe9-aa40-f5aa654a9628, component name demo.sap.com~eip_simplebpm~BPMcomponent, application name demo.sap.com/eip_simplebpm.’. Further information: root exception Message ‘Configuration not found for application: demo.sap.com/eip_simplebpm,serviceRefId:{http://www.sap.com}eip_simplebpm_demo.sap.com~eip_simplebpm~BPMcomponent_d312e044-9007-4fe9-aa40-f5aa654a9628_WS. Please check the configuration details from the NWA. You may have not assigned the Service Group to a Provider System, or the generation of the configuration has failed.’; message ID ‘n/a’; log ID ‘C000AC156652EF1C0000000100001794’

    Any idea on above error.

    Thanks,

    Rama.

    (0) 
  2. Suresh Sakthivel

    Hi Yee Loon Khoo

    Thank you for the wonderful blog.

    Could you confirm what is the Service Reference do we need to maintain for Start Msg trigger?

    And Authentication profile to be maintained for BPM process?

    We are referring Service Interface from ESR level and maintaining local host as the provider would be suffice? Please confirm

    Best Regards,

    Suresh S

    (0) 
  3. Pushparaju Bollapalli

    Hi Yee Loon Khoo,

    Thanks for the detailed blog on iFlow to NW BPM.
    I was trying this blog and able to deploy. But while running the process getting the error with status “Suspended”. Below is the error log screenshot.

    Please share how to fix this issue, if you see this error before (Something to do with service reference or service group???)

    1) Soap receiver & sender channels are working fine.

    (0) 

Leave a Reply