Workflow Policy Program That Runs an External Program
The following table describes arguments and values for the Run External Workflow Policy program type. If you choose a Run External Workflow Policy program type in the Actions view, then Siebel CRM displays the External Programs Arguments list. For more information, see Configuring a Workflow Policy Action That Runs an External Program.
| Argument | Description |
|---|---|
Executable Name |
Specifies the path and name of the executable to run. For example, the executable starts from the Siebel Server. The executable can be a batch program. If you do not provide a path, then Siebel assumes the executable is located in the directory
where you install the Siebel Server. For example,
if you install the Siebel Server in the
The external program cannot be an interactive program that requires a user interface or that accesses the Windows desktop. |
Command Line |
Include the parameters that Siebel must send to the executable. To send multiple substitution parameters, you must include a space between each parameter. For example: where You must use double quotes to enclose a substitution parameter that includes a space. Siebel sends these quotes as part of the parameter. For more information, see the topic about the Workflow Policy Program object type in Siebel Object Types Reference. |
Execute Type |
You can use one of the following values for the Execute Type:
If the external program is a Visual Basic program that creates a file, then you must set the Execute Type argument to Wait. If you set Execute Type to No Wait, then Visual Basic attempts to write the file (twice), thus corrupting the data. |
Available Substitutions |
Specifies dynamic fields that you can use as command line parameters. If the action runs, then Siebel updates the substitution value with the value from the record that caused it to run the Workflow Policy program. |
Allowlisting External Programs for Workflow Policy Actions
To ensure that Workflow Policy Actions run only approved external programs, add the absolute path of each approved program to the “SIEBEL_WF_EXTERNAL_PROGRAM_ALLOWLIST” environment variable.
On Windows, configure “SIEBEL_WF_EXTERNAL_PROGRAM_ALLOWLIST” as a system environment variable. A system environment variable is available to all Windows sessions and to the process that starts the Siebel Server. You must have the required Windows administrative privileges.
To configure the system environment variable through the Windows graphical interface, do the following:
Open Advanced System Settings. Press Windows+R, enter “SystemPropertiesAdvanced”, and then click OK.
- On the Advanced tab of the System Properties dialog box, click Environment Variables.
- In the System variables section, select “SIEBEL_WF_EXTERNAL_PROGRAM_ALLOWLIST” and click Edit.
- If the variable does not exist, click New, enter “SIEBEL_WF_EXTERNAL_PROGRAM_ALLOWLIST” as the variable name, and then enter the required value.
- Add each executable's absolute path to the variable value.
Separate multiple paths with semicolons and do not add
spaces around the separator.
For example: C:\Existing\Value.exe;C:\New\Value.exe
- Click OK to close each dialog box.
-
Restart the Siebel Server after changing the variable because the server reads environment variables only at startup.
Allowlist Validation During Policy Configuration and Runtime
Warnings are displayed when you save a Workflow Policy Action. Whether the action can run is determined after the Siebel Server starts with the updated system environment variable.
Allowlist Warning and Execution Behavior Summary
The following table summarizes the warning and execution behavior for each combination of executable type and allowlist status.
An executable that is not in the allowlist cannot run until you add its absolute path to the system environment variable and restart the Siebel Server. Even though it throws a warning while saving the record, the record is saved properly. Execution will throw an error, if SIEBEL_WF_EXTERNAL_PROGRAM_ALLOWLIST environment variable is not updated with the absolute path of the program.
| Executable Type and Allowlist Status | Warnings When the Action Is Saved | Execution Result |
|---|---|---|
| Restricted executable not in the allowlist |
Allowlist warning and security advisory warning.
|
Cannot run until allowlisted and the Siebel Server is restarted. |
| Restricted executable in the allowlist |
Security advisory warning only. Warning |
Can run. |
| Non-restricted executable not in the allowlist |
Allowlist warning only. Warning |
Cannot run until allowlisted and the Siebel Server is restarted. |
| Non-restricted executable in the allowlist | No warning. | Can run. |
Predefined Restricted Executables
Whenever you specify one of these known, restricted executables that can interpret commands or load executable content, Siebel displays the security advisory warning.
- bash.exe
- cmd.exe
- command.com
- cscript.exe
- mshta.exe
- node.exe
- perl.exe
- powershell.exe
- pwsh.exe
- python.exe
- python3.exe
- regsvr32.exe
- rundll32.exe
- ruby.exe
- sh.exe
- wscript.exe