Script input

In the modeler I noticed task can have different types for input parameters. One of them is Script.
I’m not quite sure i fully understand how to use this feature; can it be any scripting language? Can the script code be evaluated in the java code in the backend?

Also, I would appreciate if someone could provide an easy example of this.

Thanks

@Leonardo_Chirivi camunda supports two scripting languages as far now.

  • Javascript
  • Groovy

In the modeler you need to specify scriptFormat=javascript or scriptformat=groovy

If you are using groovy script, make sure you have added groovy dependencies in your classpath. Camunda won’t add any groovy dependencies.

Refer the docs for script task.