Macros

The following macros can be used in transition conditions or in the additional parameters of application type actions. They will be replaced by their associated value during process execution.

* field: See the next table.

See Examples of macros below for examples of values for the macros listed above.

User macro suffixes

Using macros

You can use macros in the transitions and additional notification conditions or in the action parameters to send the value of the macro to the parameter value by choosing one macro from the list or by concatenating several macro codes as a text value.

Example 1:

If you want to send the username of the requester in the action's REQUESTER_USERNAME field, you have to add an additional parameter with the following settings:

  • Parameter name: REQUESTER_USERNAME

  • Send the value of a macro: Requester.Username

Example 2:

If you want to send the first name and the last name of the requester in the action's REQUESTER_NAME field with a space in between the two, you have to add an additional parameter with the following settings:

  • Parameter name: REQUESTER_NAME

  • Send the value of a text: <WF_REQUESTER_FIRSTNAME> <WF_REQUESTER_LASTNAME>

File data macros

Access to the file properties

In transition or notification conditions, you can use the following macros on file type process data to access the file properties.

Syntax examples

The following examples assume you have a file type data called MY_FILE.

Example 1:

  • Rule: Check if the file name contains the keyword "report":

    • Method: InStr(1,<MY_FILE.FILENAME>,"report",1) <> 0

Example 2:

  • Rule: Check if the file size is less than 1 MB:

    • Method: <MY_FILE.SIZE> < 1024

Example 3:

  • Rule: Check if the file is a Microsoft Word document:

    • Method: <MY_FILE.CONTENTTYPE> = "application/msword"

Example 4:

  • Rule: Check if the file was modified today:

    • Method: <MY_FILE.DATELASTMODIFIED> > [Date]

Check if a file exists

You can also use the name of the data to check if the file exists in the process by using the IsNull() function.

Example:

If you have a FILE type data called MY_FILE, you can use the syntax below in a condition to check if the file exists:

IsNull(<MY_FILE>)

Examples of macros

The following table shows examples of the macros listed above.

Last updated