X4 Produktdokumentation

Inserting an Exclusive Gateway and Defining the Execution Conditions

In this step, you will add another exclusive gateway to your process. After the human task has been performed, 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.

◀️

Inserting an exclusive gateway

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

  2. Click on the lower right image-20241015-085312.png corner of the image-20241015-113116.png ApproveOrDeclineInvoice.humantask element, hold down the mouse button and drag a connection 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 the execution condition

  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 image-20241015-074303.png CreateTransferRequest activity is automatically selected and highlighted in red in the Condition Editor.

  2. Enter the following condition in the Edit Condition section:
    If result of case_STATE is = Approved - manually

    image-20241015-113731.png
  3. Select Close.

  4. Select image-20241009-130249.png Save.

▶️