Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Latest commit

 

History

History

4_TriggerProcess

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Table of Contents

Overview

In this exercise you will learn:

  • How to configure the API Call to Trigger Process
  • How to modify the Process to map the other artifacts
  • How to map Automation and Process parameters

Modify the Project

  1. Open your project Invoice Approval Process AD160-XXX. Choose process Get Invoice Details.

    04

  2. Select the Invoice Request Form, choose the 3 dots and then Remove to delete the form.

    04

Create an API Trigger for Process

  1. In the process builder canvas, on the Trigger tile, select +. Then choose API and finally New Api Trigger.

    04

  2. In the Create API Trigger window do the following:

  • Enter the name: API Trigger.

  • Choose Create.

    The identifier is generated based on the name.

    04

  1. Click on the Canvas in the background.

    04

  2. In the Process Details side panel, choose Inputs/Outputs and then Configure to configure inputs.

    04

  3. Configure four inputs. Enter the following names and types:

    Name Type
    fileName string
    folderName string
    employeeName string
    employeeMail string

    Apply changes.

    04

  4. Select Project Properties.

    04

  5. Choose Configure Agent Version and select Agent version: Agent 3.7.XX and Save.

    04

  6. Choose Dependencies and select Add Dependency.

    04

  7. Under Package, select Document Management Repository.

    04

  8. Select Add button.

    04

  9. Close the Project Properties window.

    04

    With this package you can automate some operations on your Document Management Service repository.

Map API parameters to Process parameters

  1. Map parameters for Invoice Approval form. Select Invoice Approval Form and map:

    • Under General, map employeeMail with Users. 05

    • Under Inputs, map Employee Name with employeeName. 05

  2. Map parameters for Invoice Approval Notification Form. Select Invoice Approval Notification Form, under General, map employeeMail with Users.

    05

  3. Map parameters for Invoice Reject Notification Form. Select Invoice Reject Notification Form, under General, map employeeMail with Users.

    05

  4. Save changes.

    05

Summary

You have now created API Triggers for the Business Process.

Continue to - Exercise 5 - Modify the Automation