I meant which Listener Type (e.x. Java Class, Delegate Expression, Expression, Script) must I use in order to call the above Delegation Code in the Script Task, not the Event Type (Start, End).
You can use ListenerType=“Script”. You can use either “javascript” or “groovy” as script format. In order to use groovy script you have to make sure to include groovy dependencies in your classpath. Camunda will not include any groovy related dependencies
Ok, I will try it with javascript as Script Format, because I’m not familiar with “groovy”.
In my case, the created (via camForm function) json variable is called “product”.
So, I suppose that the above script will be written as following:
So, I must work with “Java Class” as Listener Type.
I suppose that in this case, I must create a new Java Class inside the package of Project in the Eclipse and reference its path in the “Java Class value field” of the Execution Listener in Modeler ?