JobWorker not executing

Hi all,
I just started with the Camunda 8 and I was going through the Camunda 8 Developer Learning Path…
Here I’m stuck on the JobWorks assignement. I have created a maven project in IDE and wrote the class about the Jobworker, created a cluster and all that things.
The task is simple, onlz one task that should communicate with a JobWorker to finish it (see picture)


The code is here also, what I actually copied from the camunda learning path:

The pom.xml file in the project:

I don’t understand why the JobWorker is not working… without error messages it is actually not possible that to find out.
Do someone has an idea, where is the problem?

Hi @DeniVele
Can you share the BPMN file with a process?

Regards,
Alex

Hi Alex,

in attachment is the bpmn.

Charge Credit Card.bpmn (2.7 KB)

Hi @DeniVele
As I see in your BPMN file the job type is named “ChargeCreditCard” but in the code, the jobType variable is set to “foo” at the top, and //.jobType("ChargeCreditCard") is commented out.
Try to use .jobType("ChargeCreditCard") instead of .jobType(jobType) in creditCardWorker.

Regards,
Alex

1 Like

HI Alex,

Thanks for the reference. The problem was that in the code I have “chargeCreditCard” and in the BPMN “ChargeCreditCard” :see_no_evil:
A letter difference that broght me to madness :smiley:

1 Like

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