Hey Guys,
I’m sure I am doing something stupid here, but I am having trouble getting a Spring Bean to register within my Process Application.
Environment : Tomcat running the Shared engine.
For simplicity, I am using the invoice demo (pulled from here)
I want to be able to register a Spring Bean inside the invoice process application.
I have created an applicationContext.xml and placed it in webapp/WEB-INF
The applicationContext.xml contains the following entries:
<context:annotation-config />
Notice that the GDHSpringBean simply references one of the JavaDelegate classes from the invoice app.
I then added a script task execution listener to a BPMN task:
<camunda:executionListener event="start">
<camunda:script scriptFormat="javascript">GDHSpringBean.execute(execution);</camunda:script>
</camunda:executionListener>
But when I run the task, I get an error indicating e bean is not found:
Caused by: javax.script.ScriptException: ReferenceError: “GDHSpringBean” is not defined in at line number 1
What am I missing?
Thanks,
Greg