I want to save my data in delegate class which is poited from ServiceTask bpmn.
I use DAO class to save data which has marked @EJB in delegate class but the value of DAO class alway null.
It also this DAO which has marked @EJB in a class which is handle for submitting of form of UserTask then This value work well.
I tried with a both @EJB, @inject but it's not successful yet.
EX:
@named
@service
Class ProcessRequestDelegate implements serialize,JavaDelegate {
@EJB
private EmployeeDAO empDAO;//i have debug and this value alway null.
public void execute(DelegateExecution execution) throws Exception {
System.out.println("Value: " + empDAO); //it's null
}
}
Can you please explain this issue and poit me a way to save data in this case?
Thanks,
--
You received this message because you are subscribed to the Google Groups "camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/ff67f8f0-5bd8-4a7b-baae-02eec17b20f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<serviceTask id="beanService"
name="My Bean Service Task"
camunda:delegateExpression="${processRequestDelegate}" />
i like your answers. I'll try it.
Thanks,
I'm getting exception:
JBWEB000065: HTTP Status 500 - org.camunda.bpm.engine.ProcessEngineException: Error while evaluating expression: ${processRequestDelegate}. Cause: resolver must not be null
What should i do to fix it?
I using JBoss, i have checked maven dependency and camunda-engine-cdi already exits.
PA extends SevletProcessApplication.
This is the process.xml:
<?xml version="1.0" encoding="UTF-8"?>
<process-application
xmlns="http://www.camunda.org/schema/1.0/ProcessApplication"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<process-archive>
<process-engine>default</process-engine>
<properties>
<property name="isDeleteUponUndeploy">false</property>
<property name="isScanForProcessDefinitions">true</property>
</properties>
</process-archive>
</process-application>
Thanks for help me to find root cause of issue.
After i remove camunda-spring then i can work in service task well.