Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-20417

JavaScript automation chains list not correctly updated on hot-reload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 8.3
    • Fix Version/s: None
    • Component/s: Automation

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.