AND Gateway - A real life usage of AND gateway.

Certified Senior Developer

Hi all,

here am looking for a real life use-case for AND gateway.

my understanding is AND gateway allows us to execute a specific set of tasks in parallel, so does this means we will have multiple controls running in process model at a given particular time ?

Thanks,

Share, Learn & Grow

  Discussion posts and replies are publicly visible

Parents
  • Hello Preji,

    To answer your question, yes this allows you to execute multiple tasks in parallel. You don't have to specifically add multiple controls. Depending in your use case you maybe want to kill one of the parallel path before the whole process finishes. What happens is that multiple paths execute in the same instance ( multiple threads).

    You should be careful about the variables been used on each path (thread).

    There are multiple good reasons to make parallel processing of tasks.

    For example:
    * Let say you have en on boarding process which requires approval from multiple areas. So instead of asking for the approvals one after another you can request the approval to all the required areas at the same time.
    * Lets say you have multiple integrations over the night and you have a limited window to execute those integrations. So, you want to be "time efficient" then you want to execute everything in parallel.
    * In the same integration you have to process multiple operations at the same time, each operation requires large amount of time. So, you want to execute all the operation at the same time (Add, update, delete).
    * Lets say you need to send email with the taskid first the task needs to be created before you send the email so you start the task and in parallel after 1 minute timer you query the taskid then you send the email with the taskId.

    Sometimes there are other techniques or solutions to the same problem but these are some examples to use the AND.

    Let us know if you have some special use case which can be interesting to discuss

    Jose
Reply
  • Hello Preji,

    To answer your question, yes this allows you to execute multiple tasks in parallel. You don't have to specifically add multiple controls. Depending in your use case you maybe want to kill one of the parallel path before the whole process finishes. What happens is that multiple paths execute in the same instance ( multiple threads).

    You should be careful about the variables been used on each path (thread).

    There are multiple good reasons to make parallel processing of tasks.

    For example:
    * Let say you have en on boarding process which requires approval from multiple areas. So instead of asking for the approvals one after another you can request the approval to all the required areas at the same time.
    * Lets say you have multiple integrations over the night and you have a limited window to execute those integrations. So, you want to be "time efficient" then you want to execute everything in parallel.
    * In the same integration you have to process multiple operations at the same time, each operation requires large amount of time. So, you want to execute all the operation at the same time (Add, update, delete).
    * Lets say you need to send email with the taskid first the task needs to be created before you send the email so you start the task and in parallel after 1 minute timer you query the taskid then you send the email with the taskId.

    Sometimes there are other techniques or solutions to the same problem but these are some examples to use the AND.

    Let us know if you have some special use case which can be interesting to discuss

    Jose
Children
No Data