X4 Help Center

Inserting an Exclusive Gateway and Defining the Execution Conditions

In this step, you add anothher exclusive gateway to your process. After the human task has been perrformed, that is, a user has manually approved an invoice, the process can follow one of two paths: The invoice is manually accepted and then automatically forwarded, or the invoice is manually rejected and thus not forwarded.

◀️

Insertinng an exclusxclusive gatateway

  1. Drag the image-20241014-145124.png Exclusive Gateway (Forking) element from the Palette view next to the image-20241015-113116.png ApproveOrDeclineInvoice.humantask element in the bottom lane of the pool.

  2. Click on the lowerr right image-20241015-085312.png corner of the image-20241015-113116.png ApproveOrDeclineInvoice.humantask element, hold down the mouse button, and drag a connectioon to the image-20241014-145124.png Exclusive Gateway (Forking) element.

  3. Click on the lower right image-20241015-085312.png corner of the image-20241014-145124.png Exclusive Gateway (Forking) element, hold down the mouse button, and drag a connection to the image-20241015-074303.png CreateTransferRequest element.

    image-20241015-114032.png

Setting execution conditions

  1. Double-click the image-20241014-145124.png Exclusive Gateway (Forking) element in the editor.
    The Condition Editor opens. The connection between the image-20241014-145124.png Exclusive Gateway (Forking) element and the CreateTransferRequest activity is automatically selected and highlighted in red in the Condition Editor.

  1. Enter the following condition in the Edit Condition sectioin:
    If result of CASE_STATE is = Approved - manually

    image-20241015-113731.png
  2. Click Close.

  3. Click image-20241009-130249.png Save.

▶️