Skip to main content
June 6, 2022
Question

Calling an active process using API

  • June 6, 2022
  • 5 replies
  • 0 views

Hi Team,

There is a chat bot where we receive an approve action from approvers.

How to receive that approve action in an active process to run particular approval instance.

    5 replies

    gabriele.camilli
    June 6, 2022

    Can you explain the use case a little more?

    stewart.burchell
    June 6, 2022

    There are a couple of options here:

    1. in your active process instance you could implement a time-based "wait/check/wait" loop that fetches a flag from the database that your chat bot process writes to. If the flag indicates no action received then you wait, else you flow to the approval step.
    2. in your active process instance you can implement a "listener" that is waiting for a process-to-process or external-to-process message  - https://docs.appian.com/suite/help/22.2/Receive_Message_Event.html - and use that to control the flow of your active process

    In either option consider how you'll handle the scenario when a message never arrives - don't assume that one will and make provision to handle this.

    June 6, 2022

    Thanks for the reply.

    Can you please help me out in this, What we need to configure in the receive message event and In which format do we receive the message for External-to-Process.

    stewart.burchell
    June 6, 2022

    The documentation is pretty straightforward. I'm not sure what it is you don't understand.