Skip to Content
author's profile photo Former Member
Former Member

ccBPM concepts : Why no synchronous messages ?

Hi ,

I have a simple scenario where we send data synchronously via webservices. The message is asynchronously written as a file using a different format .

The output file is read asynchronously and sent as a synchronous response to this web service. Sync - async bridge is used.

I want to create a receive step , to receive the ws input . But I cannot add this sync request interface as a container element.

Is there any reason behind this ? If sync interfaces cannot be added as container elements , is sync interfaces not allowed in ccBPM ?

I am sure I lack some understanding here ,Would be glad if someone could help me get some clarity.

Thanks

Bharathwaj

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2009 at 05:52 AM

    Hi,

    In this case you need to take Async Abstract interface as Container element. It will help you to handle both request and response with combination of Sync/Async Send/receive steps.

    With Abstract sync interface you will not be able to handle the response individually, thus its not allowed.

    Thanks

    Swarup

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      
      Based on your reply I understand that , we cannot use sync interfaces inside ccBPM and would always require a Async interface of the similar req or resp structure for this.
      
      

      --> Yes.

      
      And again , for synchronous interfaces why cant we treat the req / response individually . Here we are just telling which structure to use for receiving. Why cant be opted from the selected service interface itself.
      
      

      --> For Sync scenario, the Corelation of request and response will get mapped by default. In sync scenario, it will be in wait position unless the response will not come back. And the response will be passed via same communication channel.

      In case of sync/Async bridge you need to externally tell to map the Response with valid corelation ID due to different communication channels.

      If you have observed the adapter modules used with JMS for bridge, there you need to use Map with corelation ID becuase JMS are by default in async state and need to be mapped externally.

      I hope this will clarify your doubts

      Thanks

      Swarup

      Edited by: Swarup Sawant on Aug 24, 2009 9:58 AM

  • Posted on Aug 24, 2009 at 05:50 AM

    Hi,

    >>>But I cannot add this sync request interface as a container element.

    did you create it as abstract ?

    Regards,

    Michal Krawczyk

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Michael ,

      Yes I did... I was wondering why the search in "Containers" does not list sync interfaces.

      Since WS is sync , my understanding is that it is logical to use a synchronous interface , as opposed to the model suggested in the BPM patterns and in help.sap.

      Bharath.

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2009 at 05:56 AM

    As request and response mappings get executing if we use sync interfaces

    i.e Input --- Ws Input

    WsResponse -- Output

    Did you define the Abstract message type for the same ?

    also need to use the transfomration for doing the mapping for sync interfaces in BPM...

    receive can only receive the input in BPM..i.e receive step is trigger for the BPM process and then after does the processings

    receive step is used only for receiving data and not for anything

    Rajesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2009 at 07:33 AM

    Hi..

    Follow the below link to do synchronous scenario using BPM.

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/404fc9c1-e592-2b10-81a8-9c2d2285219d

    Regards,

    Leela

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.