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

Keep on posting!

BPM – Simple iFlow to BPM to iFlow and Calling Operation Mapping in BPM
Tagged on:         

One thought on “BPM – Simple iFlow to BPM to iFlow and Calling Operation Mapping in BPM

  • June 28, 2017 at 2:24 pm
    Permalink

    Hey… It is great blog. But I haven’t found manage process and process repository as above . Our PO version is 7.4 .

    How can I message monitoring with BPM ?

    Thanks

    Young

    Reply

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.