BPM, Workflow, and Case

 View Only
Expand all | Collapse all

API call to send info from RPA to BAW BPM

  • 1.  API call to send info from RPA to BAW BPM

    Posted Mon August 05, 2024 03:07 PM

    Hello. I am working on a BPM workflow in BAW, without case features. There is a part in my workflow where there is an RPA that needs to send 3 integer values and 1 string value to the BPM I am working on, which is then going to be shown to the user. How do I make such a API call to BPM? Should it be put, or post? What does the body should look like? And what headers should I use?
    These are the variables where the values should be stored in BAW BPM.

    I tried looking into the documentation  but I couldn't really understand (Processing a user task by calling IBM BPM REST APIs))



    ------------------------------
    Caio Corsini Filho
    ------------------------------


  • 2.  RE: API call to send info from RPA to BAW BPM

    IBM Champion
    Posted Tue August 06, 2024 05:33 AM

    Hello Caio,

    I think you are trying to complete a task in the BAW workflow from RPA.

    If yes, then you can do so using the BAW REST API - https://<YOUR_HOST:PORT>/rest/bpm/wle/v1/task/<TASK_ID>?action=complete, this is HTTP POST.

    In the body, you can set the values of the output variables of the task, let's say, if the task has two output values as "name" and "value", then the body will be - 

    {
      "name": "NAME,
      "value": "VALUE"
    }

    Please note: BAW REST APIs only support basic authentication.

    Thanks!



    ------------------------------
    Atanu Roy
    Lead Engineer
    London Stock Exchange Group
    ------------------------------