Thanks for sharing this. We will certainly have a look at it. Would you be interested in contributing this code to the project if it would turn out to be a valuable addition?
Comments of the community are of course needed and welcome...
Sure. Be glad to. Let me know how I can contribute the codes.
Does it already use the new ContextBuilder stuff from 3.1 alpha?
sorry, please check again.
No, I do not know the ContextBuilder in 3.1 alpha.
The guys from jBpm implemented a little ioc-like container as well, for configuration purposes (And in the mean time, deprecated the current JbpmSessionFactory stuff, so you're in for a surprise when 3.1 is released). The 3.1 is already available in an early alpha release.
We tried to integrate this alpha release in Spring, however, there are some issues as well: see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=68868
You could nudge that thread to feed it with some comments as well ;-)
Just so everyone here knows, the Spring folks have jBPM integration on their roadmap and I know they have an alpha release. At the minimum I suggest you go here: http://opensource2.atlassian.com/projects/spring/browse/MOD-5 and vote for it, since they work on items based on user demand. I'd also suggest talking to them to see where they are on this and if they're aware of the changes so they're efforts aren't wasted.
In release 3.1 of jBPM they deprecated the usage of JbpmSessionFactory and JbpmSession.
So I don't plan to use those classes, and I don't need the replacements you offer here.
The real need for integration with Spring is in the creation of the ActionHandlers.
In my ActionHandler I need to call some services I depend on. I want to use Spring for the dependancy injection.
So what is needed is a Spring implementation of the org.jbpm.instantiation package.
With the ContextBuilder config files I am gettting this feeling of duplication of the Spring context files.
..and as amir_gur points out -with no access to application context . So these feel like isolated context files without access to my application services and objects.
Is the jbpm future tilting towards these spring like config files - and these start
supporting injection of application objects - we have a small Spring being developed in here... why not go for the real thing!!
but just getting my feet wet with this new stuff , maybe will see the light ...
ContextBuilder was right in the middle of an alpha release, and from what I've seen in CVS, it is already removed, in favour of another way of working, which would the start point for integrating in Spring
I jus got 3.1 - alpha2 it is all there - ContextBuilder
with jbpmSession and jbpmSessionFactory deprecated ( what I was happily using with my version of jbpmTemplate )
..and pls, what is the new alternative after contextBuilder ..
*what* is the latest branch/tag where the greats are working - hv to confess I am now confused. :-(