Skip to main content

Creating a procedure automation

Creating a procedure automation

Creating an automation as a procedure has two steps. First, you configure the automation, and then you execute the automation.

Configure the automation

Follow these steps to configure an automation as a procedure. The process assumes an automation project item exists in a project.

  1. In the Solution Explorer, double-clicking on an automation to open it in the designer window.
  2. In the automation designer window, right-click to access the context menu.
    add entry point
  3. From the context menu, select Add Entry Point. An Execute design block displays.
    execute design block
  4. If required for the automation, click the + on the design block to add parameters to pass into the automation. A parameter displays in the design block.
  5. Click the data type to change the data type.
    function datatype
  6. Click param1 text and enter a name of the parameter.
  7. Repeat steps 4-6, to add and configure the required automation parameters.
  8. In the automation designer window, right-click to access the context menu.
  9. From the context menu, select Add Exit Point. An Exit1 design block displays with an exit parameter added. You cannot delete this exit parameter. You can change the data type and its name. You can also change the name of the Exit1 block by clicking on the Exit1 text.
    exit design block
  10. If required for the automation, click the Plus on the Exit1 design block to add more exit parameters. A parameter displays in the design block. You can change the data type and name of the parameter.
  11. Complete the automation logic as needed.
  12. From the menu, select File > Save All.

Execute the automation

Follow these steps to execute an automation as a procedure. The process assumes a procedure automation exists in a project.

  1. From the Solution Explorer, right-click on the project and select Add > New Automation.
  2. In the Add New Item window, enter the name of the automation.
  3. Click Add. The automation appears in the Solution Explorer and the automation designer window opens.
  4. From the Object Hierarchy, select the function automation to highlight it.
  5. In the Object Inspector, select the Box icon to display the methods. An Execute method appears.
  6. From the Object Inspector, click and drag the Execute method to the automation. The Execute design block appears. If you added entry and exit parameters to the procedure automation, they appear on the Execute design block. Blue data ports for the parameters display for data links.
    execute automation
  7. Complete the automation logic as needed.
  8. From the menu, select File > Save All to save the changes.

This Topic is available in the following Module:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice