In ProcessMaker Platform, Scripts allow Process designers and developers to write self-contained programmatic actions that can be called from any Process at runtime. This enables the reuse of the same Script across multiple Process models. In other words, "write once, use anywhere."
Supported Programming Languages
ProcessMaker Platform supports the following programming languages:
PHP (µService)
C#
Java
Lua
JavaScript
JavaScript SSR
PHP
Python
View All Scripts
Permissions
Your user account or group membership must have the "Scripts: View Scripts" permission to view the list of Scripts unless your user account has the Make this user a Super Admin setting selected.
See the Scripts permissions or ask your Administrator for assistance.
Follow these steps to view all Scripts in your organization:
Log on to ProcessMaker Platform.
Click the Designer option from the top menu. The Designer Welcome Screen displays.
Do one of the following:
From the Assets pane in the Designer Welcome Screen, mouse-hover over the Scripts icon, and then select View All Scripts.
Click the Scripts icon from the left sidebar. The Scripts tab displays all Scripts in the Scripts page.
Columns in the Scripts list
The Scripts tab displays the following information in tabular format about Scripts:
Name: The Name column displays the name of the Script. Click the name to edit the Script in Scripts Editor.
Description: The Description column displays the description of the Script. See Edit Script Configuration for more information.
Category: The Category column displays to which Script Category the Script is assigned.
Language: The Language column displays the programming language with which the Script was written.
Modified: The Modified column displays the date and time the Script was last modified. The time zone setting to display the time is according to the ProcessMaker Platform instance unless your user profile's Time zone setting is specified.
Created: The Created column displays the date and time the Script was created. The time zone setting to display the time is according to the ProcessMaker Platform instance unless your user profile's Time zone setting is specified.
You can take one of the following actions:
Create a Script: Click the +Script button. See Create a New Script.
The Script Editor: Create and Edit Scripts in the Script Editor. See Script Editor.
Edit Script: Click the ellipsis menu, and then select the Edit Script option or click the Script name to modify Scripts in the same way as when creating a new Script.
Configure a Script: Click the ellipsis menu, and then click the Configure option. See Configure a Script.
Add a Script to a Project: Click the ellipsis menu, and then select the Add to Project option.
Copy a Script: Click the ellipsis menu, and then click the Copy option.
Delete a Script: Click the ellipsis menu, and then select the Delete option.
Use ProcessMaker's AI Assistant to Code, Clean, Document, and Explain Your Script's Functionality
Streamline your Script creation process with ProcessMaker's AI assistant. The following demo highlights no-code options to efficiently generate Script assets:
Generate a Script using a natural language description of its function.
Clean a Script to enhance its code quality.
Document a Script for better clarity and maintainability.
Explain a Script to understand its functionality.
Design and Test Scripts in One Environment
Scripts are designed and tested in the Script Editor. While designing a Script, test it before you deploy it. Scripts are tested within the authoring environment to ensure they function as intended. While testing, do the following:
Use the JSON data model that you can preview from your Screens to ensure that variables designed from a Screen function as intended in your Script.
Incorporate other JSON-formatted data, such as API keys, to ensure your Script uses them correctly during your testing.