How can I reference a variable defined by a Script task, in a custom JavaScript on a form, in an event handler (such as formRendered)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2017 10:09 AM
How can I reference a variable defined by a Script task, in a custom JavaScript on a form, in an event handler (such as formRendered)?
- Labels:
-
Alfresco Process Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2017 11:15 AM
Hi,
the custom JavaScript in a form has only access to the fields inside that form and you don't have any access to the process variables there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2017 05:30 PM
It is best to get them using the REST APIs (/activiti-app/app/rest/process-instances/{processInstanceId}/historic-variables – this api can be used if you are using OOTB UI and will return all variables associated with the process).
