3

Run Process in Remedy

Sundeep Koul

Last Update 2 years ago

The Run Process action in BMC Remedy is used to execute system commands, external scripts, or internal AR System processes from within a workflow object, such as an Active Link or a Filter. This feature allows integration with external systems or execution of specific server-side or client-side commands.


Key Features of Run Process:
  1. Execute Commands:

    • Run operating system commands or scripts (e.g., .bat files, shell scripts).
    • For example, sending notifications or triggering external programs.
  2. Run Internal AR System Processes:

    • Execute AR System commands, such as exporting data or performing server-specific actions.
  3. Client-Side or Server-Side Execution:

    • Can be configured to run commands on either the client machine or the server, depending on the workflow type.
  4. Integration Support:

    • Enables integration with third-party tools and scripts by triggering them from Remedy workflows.
Common Use Cases for Run Process:
  1. Automation Tasks:

    • Triggering external scripts for automation, such as running a batch process or updating an external database.
  2. Notifications:

    • Executing a command to send email notifications using external tools or custom scripts.
  3. File Handling:

    • Copying, moving, or modifying files as part of a workflow.
  4. Integration with External Tools:

    • Calling external APIs, command-line tools, or system utilities.
Examples: 1. Server-Side Execution:$PROCESS$ c:\scripts\notify_user.bat
  • Executes the notify_user.bat script on the server.
2. Client-Side Execution (Active Link):$PROCESS$ cmd.exe /c notepad.exe
  • Opens Notepad on the client machine when triggered.
3. AR System Command:$PROCESS$ Application-Bus-Time
  • Executes the internal AR System command Application-Bus-Time to calculate business time.
Steps to Use Run Process:
  1. Create Workflow:

    • In Developer Studio, create or edit an Active Link, Filter, or Escalation.
  2. Add Run Process Action:

    • Choose the "Run Process" option as the action for your workflow.
  3. Specify the Command:

    • Enter the system command, script path, or AR System command in the process field.
  4. Define Execution Context:

    • For Active Links, decide if the command should execute on the client or server.
  5. Test and Validate:

    • Test the workflow to ensure the command executes as expected.
Best Practices:
  • Security: Ensure scripts and commands triggered by Run Process are secure and do not expose sensitive data.
  • Error Handling: Implement error-checking mechanisms to handle failed executions gracefully.
  • Performance: Avoid long-running or resource-intensive processes that could impact system performance.
  • Documentation: Document all Run Process actions to maintain clarity for future development and troubleshooting.

Would you like assistance with a specific use case or an example workflow involving Run Process?

Was this article helpful?

1 out of 1 liked this article

Still need help? Message Us