SAP Knowledge Base Article - Public

3161584 - JavaScript code check does not work on on-premise Process Governance


After installation/update of Signavio Proces Governanve, the JavaScript code check does not work. In frontend, I can see 'Error Message: There was an error while checking the code. Error linting script.'

Log is showing the following error:

java>> POST /api/v1/customerworkspaceinworklowaccelerator/javascript/lint INFO [nio-8102-exec-3] c.e.u.ConnectionUtil Connection pool stats: [leased: 0; pending: 0; available: 2; max: 200] ERROR[nio-8102-exec-3] c.e.c.WorkflowController Unexpected response code for script engine linting call Unexpected response code 500 for request 'POST http://localhost:8181/lint HTTP/1.1' at com.effektif.product.activities.script.NodeJsScriptService.runLintRequest( at com.effektif.product.activities.script.NodeJsScriptService.lint( at com.effektif.controllers.WorkflowController.lintJavaScript(]]>


Please check

  • Script Engine has been installed or updated (respectively)
  • node.js is installed in the correct version and running. For the correct version, see the Compatibility list

If there is correct software on the machine and the engine is running, please check the two configuration files:

  • 'configuration.onpremise.js' (in folder $SCRIPT_ENGINE_HOME/)
    • port - port number on which the script engine is listening, default port is 8090
    • host - on which script engine is running. If it is the same machine, it would be
    • workflowUrl - the URL to your Process Governance - corresponds to the value of 'effektif,baseUrl' from 'effektif-onpremise-properties'
  • 'effektif-onpremise-properties' (in folder $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/)
    • effektif.javascript.server.url - the URL to your script engine - corresponds to the values of 'host' and 'port' (written as host:port, e.g. from 'configuration.onpremise.js'

Before saving any adjustments there, please stop the SPG server. After the changes are saved, you can start the server again.


KBA , BPI-SIG-PG-ONP-SE , Script Engine for SAP Signavio Process Governance , How To


SAP Signavio Process Governance all versions ; Workflow Accelerator by Signavio all versions