Im pretty new to Camunda and following your tutorials (they are very well explained).
I have created a service task to communicate with Java code (as explained in Camunda Platform 7 Tutorial part 3).
Also, created a java class as ServiceName and implemented JavaDelegate (followed the steps as in the videos), but gettng following error:
Cannot instantiate process defination Check:4:504810ee-65cb-11ed-97eb-0242c1100002: Unkown property used in expression: #{serviceName}. Cause: cannot resolve identifier ‘serviceName’ [start-instance-error].
When using delegate expression like #{serviceName}, you are referring to your Java class as a bean - either a Spring bean or a Java EE bean. So this way it’s not the name of the Java class, but the bean name that needs to match.
You could also use a Java class, but then you have to change type of your service activity to be a Java class instead of a Delegate expression.
Yeah, I have annotated the class as @Named, it indicates the class is a named bean. So used the class name (with first letter as small) in delegate expression.