Follow these steps to create a new ProcessMaker Script:
View your ProcessMaker Scripts. The Scripts page displays.
Click the +Script button. The Create Script screen displays.
In the Name setting, enter the name of the ProcessMaker Script. ProcessMaker Script names must be unique in your organization and can only use apostrophe characters (
') and spaces. This is a required setting.
In the Description setting, enter the description of the ProcessMaker Script. This is a required setting.
From the Category drop-down menu, select one or more Script Categories to associate with this ProcessMaker Script. In doing so, Script Categories may be sorted from the Scripts page. To remove a Script Category that is currently selected, click theicon for that selection or press
Enter when the drop-down is visible. This is a required setting.
From the Language drop-down menu, select one of the following programming languages in which the ProcessMaker Script is written:
C# (when the C# package is installed to your ProcessMaker instance)
Java (when the Java package is installed to your ProcessMaker instance)
R (when the R package is installed to your ProcessMaker instance)
This is a required setting.
From the Run script as drop-down menu, select which ProcessMaker user's API client token to use with the ProcessMaker REST API. Ensure that the selected ProcessMaker user's account has the appropriate API permissions to access the ProcessMaker REST API. This is a required setting.
In the Timeout setting, use the slider control or enter how many seconds the ProcessMaker Script is allowed to run before it times out. Use
0 to indicate that the ProcessMaker Script never times out. The default timeout is 60 seconds. This setting requires an integer.
Click Save. Scripts Editor displays so you can develop your ProcessMaker Script. See Scripts Editor.