Skip to Content
Author's profile photo PARIN CHAHWALA

PI-Multiple operations with FILE adapter

           Introduction: Multiple operations in sender Interface allows to read different structure using same Interface from file server and process accordingly. Simultaneously multiple operations in receiver Interface allows to send different structure to file server. Here, we use both sender and receiver Interfaces with multiple operations to read different structures and to send different structures to file server.

Author: Parin Chahwala

Created on: 03 JUNE 2015

Guided By: Jagesh Lakdawala

Step 1: Create Data Types and Message Types for OUTBOUND Interface operations and INBOUND Interface operations.

SCN1.jpg.png

Step 2: Design OUTBOUND and INBOUND Interfaces with multiple operations and add relevant Message Types for it.

SCN2.jpg.png

Step 3: Design Message Mapping for all Message Types.

Note:- Here, I’ve created Function Library to set filename for receiver server dynamically as I need different filename for all operations.

SCN3.jpg.png

Step 4: Design Operation Mapping for all Operations of OUTBOUND and INBOUND Interface.

SCN4.jpg.png

Step 5: Configure Sender Communication Channel with all filenames to be Pick from fileserver in File Name Mask.

SCN5.jpg.png

Step 6: Configure Receiver Communication Channel with filename.

Note:- As Define above in Message Mapping Filename will be set Dynamically.

SCN6.jpg.png

Step 7: Configure Sender and Receiver Agreement.

SCN7.jpg.png

Step 8: Configure Interface Determination for all Sender Interface Operations define Operation Mapping.

SCN8.jpg.png

Step 9: Configure Receiver Determination with Receiver Component.

SCN9.jpg.png

Plus

• Read or Send file with different structures.

• Less Objects need to develop

• Less Memory, Resource required as less no of Objects.

• Less time to Develop complete scenario.

Assigned tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Jagesh Lakdawala
      Jagesh Lakdawala

      Very good concept of using the multiple operations within a single service interface, this will enable the picking up of multiple input files with different message structure.

      good work!

      Regards,

      Jagesh

      Author's profile photo Former Member
      Former Member

      Hi,

      There are already many blogs on this topic (Multiple operations in a service).

      Maintenance point of view ,it's not recommended to go with single sender channel.You will have less options to control it when needed.

      Regards

      Venkat

      Author's profile photo Kefei Dong
      Kefei Dong

      Hi Chahwala,

      does your solution work also for PO 7.5 single stack?

      I created one outbound Service-Interface with 2 operations, which have 2 operation mappings for each operation. The ICO has one sender channel.

      As activation the following error pops up:

      Any suggestion?

      Thanks and regards

      Kefei