---
schema_version: "1"
id: 3d31cc8a853075841df5bcc0c4e938403a8d91e802b5ee44d9c1f6999cdf249d
title: Activity Parameters
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/latest/toolbox-variable-handling-activity-parameters.md
canonical_url: https://docs.mulesoft.com/rpa-builder/latest/toolbox-variable-handling-activity-parameters
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 5c203261c1345b3a5a781c0f218042289b66525b40ece9a8098ecb734851af76
description: MuleSoft Documentation Site
release: "6.7"
latest: true
---
---
product: RPA Builder
version: 6.7
is-latest-version: true
---

# Activity Parameters

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

The action step _Activity Parameters_ enables you to map variables that you can use not only in the
Workflow, but also in the activities of the business process and gateways. This allows the Activity
Parameters to be exchanged among the different elements. For example, the BPMN gateway uses the
Activity Parameters to decide which activity should be executed next.

![The Activity Parameters action step](/mulesoft/current/en-us/rpa-builder/latest/_images/toolbox-activity-parameters.png)

A Workflow can have one _Activity Parameters_ action step and it’s automatically placed in the
_Workflow Initialization_ section when creating a new Workflow.

Activity Parameters consist of a name, description, and value. Activity parameter names have the
following requirements:

- The name consists of a combination of letters, numbers, and underscores.

- The name contains no special characters or spaces.

- The initial letter of the name is lower case.

- The name is unique.

  You can’t use the same name multiple times for different variables.

The predefined values are test values that RPA Builder uses only during a local run. The variables
register automatically on RPA Manager when uploaded. RPA Manager enables you to modify the values of
the variables and define them differently, depending on the station on which the Workflow is
executed. See [Using Variables](https://docs.mulesoft.com/rpa-builder/latest/advanced-concepts-using-variables) for additional information.

The test values might change in the course of the business process due to the possible assignment of
new values. If the business process starts again, the values reset to their initial state.

## Defining Activity Parameters

To define the Activity Parameters:

1.  In the BPMN editor, click the **Business Process Initialization**
    (![The Business Process Initialization button](/mulesoft/current/en-us/rpa-builder/latest/_images/business-process-initialization-icon.png))
    button.

2.  Click **Activity Parameters**.

    ![The Activity Parameters config window](/mulesoft/current/en-us/rpa-builder/latest/_images/toolbox-activity-parameters-config.png)

3.  In the Business Process Initialization window, click (![The Add icon](/mulesoft/current/en-us/rpa-builder/latest/_images/add-icon.png)
    **Add New Parameter …​**).

    ![The Business Process Initialization window](/mulesoft/current/en-us/rpa-builder/latest/_images/business-process-initialization-window.png)

4.  Select the Activity Parameter to add from the list.

    ![The list of available activity parameters to add.](/mulesoft/current/en-us/rpa-builder/latest/_images/add-new-parameters.png)

    The following data types are available:

    - Texts (**alphanumeric**)

    - Integers (**integer**)

    - Floating point values (**floating-point**)

    - Boolean values (**boolean**)

    - Lists (**array**)

    - Log-in data (**user account**)

    - Screen coordinates (**coordinates**)

    - Browser Session ID (**Web Session ID**)

    - AWS log-in data (**AWS Credentials**)

    - OAuth credentials (**OAuth Credentials**)

    - Execution ID (**IDP Execution ID**)

    - Connected App Credentials (**Connected App Credentials**)

    - Google API Service Account Credentials (**Google API Service Account Credentials**)

5.  Define the **Name**, **Description**, and **Variable Value** for the Activity Parameter.

6.  Repeat the process for every Activity Parameter you want to add.

7.  Click **OK**.

## Deleting Activity Parameters

To delete an Activity Parameter, click the **Delete** (![The Delete icon](/mulesoft/current/en-us/rpa-builder/latest/_images/delete-icon.png))
button next to the Activity Parameter you want to delete.

![The business process initialization window](/mulesoft/current/en-us/rpa-builder/latest/_images/business-process-initialization-window.png)

You can delete an Activity Parameter if it’s not being used in a Workflow. If the Activity Parameter
is connected to at least one Workflow, a pop-up message indicates that the parameter is still in
use.

![A warning message showing that a parameter cannot be deleted because it is still in use](/mulesoft/current/en-us/rpa-builder/latest/_images/delete-activity-parameter-warning.png)

All the Workflows in which the Activity Parameter is used are displayed. To delete the Activity
Parameter, you must remove the connections in all Workflows.

## Changing the Name of an Activity Parameter

Activity Parameter names cannot be changed after creation. After you close the Wizard by clicking
**OK**, the **Name** field remains grayed out and you can no longer change the name. You can still
edit the fields _Description_ and _Value_ at any time.

If you want to subsequently change the name, delete the Activity Parameter and create it again with
a new name. This only applies if the Activity Parameter isn’t already being used in a process.

## Connecting Activity Parameters to a Workflow

To connect an Activity Parameter with a Workflow:

1.  Click the **Edit Variable Mappings**
    (![The Edit Variable Mappings button](/mulesoft/current/en-us/rpa-builder/latest/_images/pin-icon.png)) button next to the action step for
    which you want to connect an Activity Parameter.

    ![The Activity Workflow window](/mulesoft/current/en-us/rpa-home/_images/activity-workflow-ocr.png)

2.  Select the Activity Parameter you want to connect.

    ![The Edit Variable Mappings window showing Activity Parameters](/mulesoft/current/en-us/rpa-builder/latest/_images/connect-activity-parameters.png)

The Wizard lists all Activity Parameters and you can connect them to the Workflows that support the
available parameter types.

## Connecting Activity Parameters to a Gateway

To connect an Activity Parameter to a Gateway:

1.  In the BPMN editor, click any **Gateway** element in your model.

2.  In the menu that opens, click the **Set Condition Expression**
    (![The Set Condition Expression button](/mulesoft/current/en-us/rpa-builder/latest/_images/cogs-icon.png)) button.

    ![The BPMN editor showing the Gateway settings](/mulesoft/current/en-us/rpa-builder/latest/_images/set-expression-condition.png)

3.  In the Wizard that opens, click **Build Expression**.

    ![The Set Condition Expression for Gateway window](/mulesoft/current/en-us/rpa-builder/latest/_images/set-expression-condition-for-gateway.png)

4.  Click **Add Expression** and build an expression by using the available Activity Parameters.

After you add all necessary condition expressions, ensure that the last sequence flow has an empty
condition expression. This is the default flow when all other conditions aren’t fulfilled. If there
is no default sequence flow, add one to the model.

## Properties

- **Misc**

  - **Write Variables to Log File / Run Protocol**

    If this option is enabled, the variable names and their values are written to the log file and
    the run protocol.

For security reasons, passwords are not shown in the user account data. Simply leave this option
disabled if the variables or their values contain confidential data.

## Inbound Variables

The action step _Activity Parameters_ does not have any inbound variables.

## Outbound Variables

The action step _Activity Parameters_ does not have any outbound variables.

## Wizard

![The Activity Parameters Wizard](/mulesoft/current/en-us/rpa-builder/latest/_images/activity-parameters-wizard.png)

Click to select the desired parameters from the _Available Parameters_ column. You can use the
arrows to drag them into the _Used in this Workflow_ column and thereby insert them into the
Workflow.

For more information about the **Write Variables to Log File /Run Protocol** option, see
[Properties](#properties).

## Handling Inconsistencies When Importing a Workflow

Importing a Workflow with Activity Parameters, for example from the Activity Library, into an
existing project can cause inconsistencies.

For example, if:

- the Activity Parameters referenced in the Workflow do not exist in the project

- the imported Activity Parameters have the same names as Activity Parameters already existing in
  the project that have a different data type

In such cases, RPA Builder notifies these inconsistencies by showing a dialog.

![The Inconsistent Activity Parameters dialog](/mulesoft/current/en-us/rpa-builder/latest/_images/inconsistent-activity-parameters.png)

The dialog shows you all the affected Activity Parameters and suggests a suitable action (_Suggested
Auto-Correction_). Either missing Activity Parameters are added or, if Activity Parameters have the
same name but a different data type, deleted.

You can accept the suggestions by clicking on _Proceed_. Click on _Remove Parameters from Workflow_
to remove all the Activity Parameters of the imported Workflow. Clicking on _Cancel_ cancels the
import of the Workflow.

## See Also

- [Using Variables](https://docs.mulesoft.com/rpa-builder/latest/advanced-concepts-using-variables)

- [Using the Activity Library](https://docs.mulesoft.com/rpa-builder/latest/activity-library)

- [Global Variables for Initializing Activity Parameters](https://docs.mulesoft.com/rpa-manager/processautomation-prepare-deployment-variable)
  in the RPA Manager documentation

- [Credentials for Initializing Activity Parameters](https://docs.mulesoft.com/rpa-manager/processautomation-prepare-deployment-credential)
  in the RPA Manager documentation
