-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 8.3
-
Fix Version/s: None
-
Component/s: Automation
-
Tags:
Creating a new JS chain and calling it in an existing one is not recognized. You have to restart the server.
- Say you have a JS Automation chain, for example MyJS
- Create a new one. For example, DoThis
- In MyJS, call DoThis:
• • • result = DoThis(input; {}); • • •
- Deploy the changes via Hot Reload ("Update" in the Admin Center)
- Test the changes => This leads to an error:
. . . [...] Could not run the chain: javascript.MyJS org.nuxeo.ecm.automation.TraceException: ****** chain ****** Name: javascript.MyJS Exception: OperationException Caught error: Failed to invoke operation javascript.MyJS Caused by: <eval>:25 TypeError: Cannot call undefined . . .
The line #25 is the line calling javascript.DoThis.
To make the thing work, you have to restart the server.
- duplicates
-
NXP-22383 JavaScript Automation is not updated during hot-reload
- Resolved