Script Task with JS implementation and java17

Hi, my friends!

after a short rest I continue to battle with camunda engine =)

Today i’d like to talk about JS scripting.

preface
now i can use groovy script in script task after adding dependency

		<!-- Add support groovy for Script-Tasks -->
		<dependency>
			<groupId>org.codehaus.groovy</groupId>
			<artifactId>groovy-jsr223</artifactId>
			<version>3.0.19</version>
			<scope>runtime</scope>
		</dependency>

my next step is using JS implementation in ScriptTask

after visiting next link

there was hope camunda supports JS as well.

but i faced out with the error message

Can’t find scripting engine for ‘javascript’: scriptEngine is null

my java is

$ sdk current java
Using java version 17.0.8.1-librca
$

after spending some time in google i find a way on stackOverFlow how to check out if there is JS Engine?

so my primary question how to add support JS in Script Task?

thanks for any ideas

seems like i’ve got what i need.

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