Script Task error

I am trying to print a simple statement using Script Task but it is throwing error as " Can’t find scripting engine for ‘javascript’: scriptEngine is null"


Attached the BPMN Process for reference
diagram_1.bpmn (3.3 KB)

Hi @Avin
What Java version do you use?

It could be related JEP 372: Remove the Nashorn JavaScript Engine

2 Likes

In which case (you have java >=15) you need to add the following dependency to your project

<dependency>
<groupId>org.openjdk.nashorn
<artifactId>nashorn-core
<version>15.2
</dependency>