Setting engine generic properties in Camunda Run

I try to make graaljs to behave like nashorn and enable load(“classpath:common-functions.js”) functionality.

Since 7.0.16 there are configuration parameters that hopefully enable that:
configureScriptEngineHostAccess
enableScriptEngineLoadExternalResources
enableScriptEngineNashornCompatibility

I try to set them up (I’ve read somewhere I need to convert camel case to hyphens, but no luck):

camunda.bpm:
  admin-user:
    id: demo
    password: demo
  filter:
    create: All tasks
  run:
# https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#cross-origin-resource-sharing
    cors:
      enabled: true
      allowed-origins: "*"
# https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#example-application
    example:
      enabled: true
  generic-properties:
    properties:
      configure-script-engine-host-access: true
      enable-script-engine-load-external-resources: true
      enable-script-engine-nashorn-compatibility: true
      configureScriptEngineHostAccess: true
      enableScriptEngineLoadExternalResources: true
      enableScriptEngineNashornCompatibility: true

I still get error:org.graalvm.polyglot.PolyglotException: TypeError: Cannot load script: classpath:common-functions.js

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.