BPM, Workflow, and Case

 View Only
Expand all | Collapse all

Task initialization delay in IBM BPM/BAW headless implementation

  • 1.  Task initialization delay in IBM BPM/BAW headless implementation

    Posted Mon August 09, 2021 06:31 AM
    Hi Community

    We are building a headless business process which is integrated with the web layer via an API connect layer. The API Connect layer exposes customized APIs which in the backend call the BPM system, task and process APIs. 

    At certain time, the API layer does an orchestration of the calls to multiple BPM APIs as a business action such as completing a task and fetching the information from the next task. We are observing that the first call succeeds in the orchestration whereas the second call usually throws an error in the first attempt and then succeeds on retry.

    Our inference is that the API layer is faster than the speed at which BPM moves the process from one task to another. We are considering putting a delay in between the two calls in the API layer in order to prevent the failure however its not an approach that we like.

    I wonder how others are solving this problem. Awaiting to hear from you guys.


    Regards
    Vaibhav Mehra

    ------------------------------
    Vaibhav Mehra
    ------------------------------


  • 2.  RE: Task initialization delay in IBM BPM/BAW headless implementation

    IBM Champion
    Posted Mon August 09, 2021 06:54 AM
    Hi Vaibhav,

    To answer your question , we need to understand how are you invoking the BPM REST APIs. It is usual that once a human task is completed, the system may take some time to create the next human task if you have any system operation after the task completion and before the next human task creation.
    Basically, you need to know the task id of the next human task once that is created to fetch the task data. All the operations should be synchronous for an instance.
    You may need to introduce an intermediate call to BPM to make sure next task is created and ready for accessing.

    So, I am curious to know how are you making sure that next task is created and how are you fetching the task id of the next task ? 


    ------------------------------
    Atanu Roy
    ------------------------------