AnsweredAssumed Answered

@Inject Not Working in Delegate - Activiti 5.12.1

Question asked by zoikks@gmail.com on Aug 8, 2013
Latest reply on Jan 27, 2014 by yuryshaban
I have built a custom service task that defines the task (UI) and then has a delegate associated with it.  Inside the delegate, I'd like to inject an EJB using @Inject.  When I execute the functionality, the injection never seems to happen.  A similar structure for what I have created is here:

public class MyDelegate implements JavaDelegate {

  @Inject
  @EjbQualifier
  private MyEjb myEjb;

  public MyDelegate() {  }

  @Override
  public void execute(DelegateExecution execution) throws Exception {..}
}

I have ensured my beans.xml file is properly entered into the JAR.  The call to startProcessInstanceByKey(…) is called from within an EJB running in a WebLogic 12 application server.  Can anyone give me any insight about why the injection is not occurring?

Thanks.

Outcomes