X4 Produktdokumentation

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, ththat is, a user has manuallyy approved an i invoice,voice, the process can follow one of two paths: The invoice is manuallyy accepted and then automatically forforwarded, or the invoice is manuallyy rejecteded and thushus not forforwarded.

◀️

Insertinng an exclusxclusive gatateway

  1. Drag the image-20241014-145124.png Exclusive Gateway (Forking) elementt fromom the Palette view nextext to the image-20241015-113116.png ApproveOrDeclineInvoice.humantask element 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,t, hold down the mouse button,on, and drag a connectioon to the image-20241014-145124.png Exclusive Gateway (Forking) element element.

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

    image-20241015-114032.png

Setting exec executiotion conditionss

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

  1. Enterr the following condition in thee Edit Condition ssectctioon:
    If result of CASE_STATE is = Approved - manually

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

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

▶️