AnsweredAssumed Answered

Can I have acces to custom beans without Spring?

Question asked by gsvano on Nov 9, 2012
Latest reply on Nov 9, 2012 by gsvano
Hi everyone!
I tried get access to my service to set dueDate in UserTask but.. fail
<userTask id="bidSelection" activiti:dueDate="${dateService.getDueDate()}" …

I tried set beans
Map<Object, Object> beans = new HashMap<Object, Object>();
beans.put("dateService", dateService);
((ProcessEngineConfigurationImpl) configuration).setBeans(beans);
but got same exception
Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'dateService'
   at org.activiti.engine.impl.juel.AstIdentifier.eval(
   at org.activiti.engine.impl.juel.AstMethod.invoke(
   at org.activiti.engine.impl.juel.AstMethod.eval(
   at org.activiti.engine.impl.juel.AstEval.eval(
   at org.activiti.engine.impl.juel.AstNode.getValue(
   at org.activiti.engine.impl.juel.TreeValueExpression.getValue(
   at org.activiti.engine.impl.delegate.ExpressionGetInvocation.invoke(
   at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(
   at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(
   at org.activiti.engine.impl.el.JuelExpression.getValue(

As far I understand I should use Spring for it but my project not use Spring (I use EJB and CDI).
Are there any way to get my services beans in this case?
Maybe I do something wrong?