Using external resource scripts

Good day, community,

Although this question has been raised several times, I’m still in a look out for a working example of using external (groovy) scripts with Spring Boot Camunda.

I did struck some topic about putting the scripts in a /camunda/lib or something, but I am looking for something that I can actually use in a regular manner (without witchcraft and playing with manual script copy to a server dir).

First, and maybe the most dumb question here is - can I put it in myProject/src/main/resources, or they, like JavaDelegate should be somehow registered (I’m not a big fan of groovy in general, so I don’t have much wisdom in the matter of “should it be a class, or you just slap it like a regular script”).

Second, how do I address/target/define such a “Script task” (by this I mean the “Resource” field").

Thanks in advance.

Answering my own question (as usual, the answer is the first thing your brain crosses out as “meh”)

  1. You can place scripts in projects /resources folder.
  2. The scripts don’t need to implement anything. In order to call them, you just need to use a relative path - myscript.groovy (or with subfolders mySubFolder/script.groovy)

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