JBoss Community

Re: using spring beans in jbpm5

created by Miroslav Štencel in jBPM - View the full discussion

It would be nice to have Spring beans accessible in some simple way inside process e.g. in on entry/exit actions, constrains, basically in all expressions. It's possible now for example by defining global or by passing Spring bean as variable to process instance. But you have to implicitly specify, that the process is going to use such variable or global. It would be helpful to integrate this kind of beans injection into the engine (e.g. specifying which beans are going to be injected, or whether to inject all beans) without further overhead for programmer.

I tried to implement custom GlobalResolver that try to resolve global from Spring context. I post it at http://community.jboss.org/message/601479#601479

But it still needs to define global in process definitions files.

Reply to this message by going to Community

Start a new discussion in jBPM at Community