I’m quite new in Camunda customization and the principles of Java as whole so my question might sound a bit silly. But I hope you can help me.
My situation is that, I am currently working with Camunda Run v7.16.5-ee, and being a standalone application, I’m quite interested where should I place the java class I’ve coded in the existing folders.
Should it be on the “webapps” folder under “internal”? or should I place it under the “configuration” folder then “resources”?
Generally Camunda Run is used best when you’re code is externalized and implemented as part of the external task pattern. So If you’re looking orchestrate java classes i’d suggest using the spring boot distro.
Regarding deployment, when you deploy a model to Camunda Run via the Rest Api (or from the modeler) it’s stored in the database, not at an artifact in the file system.
Thank you very much for the prompt response, so essentially if we are using Camunda Run, if we plan on using Execution/Task Listeners, it would be better to select, script → external resource then?
Then for the scripts, we just put them in the “resources” folder under “configuration”, is this right?
Just to clarify, the intended usage of Camunda Run is to get users quickly on-boarded to the Camunda Platform correct? But if we’re looking at let’s say a production grade system, we’re better of using the distros?
You can run listeners on Camunda Run if you like - if you create a named spring bean that implements the execution listener you can place it into the .\configuration\userlib folder. For example a class like this:
@Component(value = "someJavaClass")
public class SomeJavaClass implements TaskListener{
Not really, Camunda Run is the suggested distro to use if you’re interested in using Camunda to orchestrate external microservices. It is very much ready to be used in production, as with all other distros. The difference with the distros is instead based on what kind of architecture you want for your system.
This blog post explains some of the factors that can help you decided on which distro you should use based on what you’re trying to achieve.
Because most of the tutorials on YT that I’ve seen uses the link above as template or generating a new project template via start.camunda.com
But since I’m only trying to put in a spring bean to be called in my process, I’m not sure on what archetype should I use or if I should generate a new project template using the start.camunda.com
While developing applications and making use of Camunda package interfaces, I’m faced with a challenge on how I can possibly get system generated variables. For the values of the variables gathered through forms it’s quite easy since you know how to reference the variable, but how do we do it for the system generated ones?
The use case I’m trying to achieve is to get the comments made on one task and reflect it to the next one, by default behavior Camunda doesn’t pass the comments made from the previous task so I’m trying to find a workaround for it.
Right now I’m trying to work with the “Comments” interface but I’m getting a null value…
Task comments are intended to live only on a specific task and not be passed beyond it.
If you’d like a variable to be accessible beyond a task you need to set it as part of the process instance by using the setVariable() method.
If you’re trying to have someone add a comment that intended for another part of the process or another task, then don’t use task comments. They’re not intended for that use case.
Instead - create a process variable with comments and set that variable to the scope of the process.
Thank you for your inputs @Niall , with that I can then assume that my delegation code would then be quite limited to what the DelegateExecution interface offers as of the moments, is that correct?
Also, another question, will it be possible to edit the information displayed in this task tab?
I was planning on changing the details to the more relevant information based on our use case.
I tried creating a class that assigns a due date to multiple tasks in a process, it was working when I followed the tutorial that you sent me, however when I tried to extract my class to a jar file and place it to the “userlib” folder for Camunda Run, I am receiving an error that says…