Call Connector Asynchronously

  • aasheesh
    Participant
      6 years, 3 months ago #16322

       

      1. How to call connector asynchronously in script or business object?

      2. In Process Designer, if we call connector. There is option to set asynchronous to “True” or “False”.

      If we set asynchronous to “True” in connector call, then it shows 2 options

      a) Subscribe

      b) Unsubscribe

       

      what does these option means in this context, when asynchronous set to “True” in connector call?

      Chris Bouveret
      Keymaster
        Has successfully completed the online course Introduction
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (320)
        Has successfully completed the Intermediate Certification
        Has successfully completed the Advanced Certification
      6 years, 3 months ago #16356
      Up
      0
      Down
      ::

      Hi there,

       

      the asynchronous calls are for the connector types OPC-UA, MQTT and Push as those are all asynchronous connectors. So if you switch to asychronous there will only be those types of connectors available for selection.

      Cheers

      aasheesh
      Participant
        6 years, 3 months ago #16359
        Up
        0
        Down
        ::

        Hi,

        Suppose i am executing REST connector, and i do not want to wait for the result of connector call and i want to execute some other code, so how can i restrict my REST connector call so that it will not block further execution.

         

        Regards

        Aasheesh

        Chris Bouveret
        Keymaster
          Has successfully completed the online course Introduction
          Has successfully completed the online course Intermediate (200)
          Has successfully completed the online course Advanced (300)
          Has successfully completed the online course Basics (100)
          Has successfully completed the online course Advanced (320)
          Has successfully completed the Intermediate Certification
          Has successfully completed the Advanced Certification
        6 years, 3 months ago #16363
        Up
        0
        Down
        ::

        Just deactivate the busy indicator for the connector call and execute your other code not on Success or Error of the connector call but in parallel. This should solve your problem

        .

      Viewing 4 posts - 1 through 4 (of 4 total)

      You must be logged in to reply to this topic.