[jboss-user] [JBoss jBPM] - Re: Some Questions about Spring JBPM4 Integration

2009-07-10 Thread ainze
rmoskal wrote : Thanks for replying! | | You may have misunderstood me, I don't want to inject an Execution into the context. But I would want to pass it as a variable to say a entity. The existing Spring demo shows a HistorySession being passed as an argument to a method. I imagine

[jboss-user] [JBoss jBPM] - Re: Some Questions about Spring JBPM4 Integration

2009-07-10 Thread jugglingcats
As Joram said you can use spring beans as the class behind a custom or decision node, in which case it implements the respective interface and is passed the execution in the call. Does this answer the question? eg. View the original post :

[jboss-user] [JBoss jBPM] - Re: Some Questions about Spring JBPM4 Integration

2009-07-10 Thread rmoskal
I see how it's done. The current execution can be passed as a method parameter like so: This will be great once I figure out how to get it to work with grroovy or jython. View the original post :

[jboss-user] [JBoss jBPM] - Re: Some Questions about Spring JBPM4 Integration

2009-07-10 Thread rmoskal
I guess the instant reply doesn't like code. java expr=#{echoService} g=140,176,92,52 method=sayHelloWithExecution name=echo2 | arg | object expr=#{execution}/ | | /arg | transition g=-70,-22 name=accept to=join1/ |

[jboss-user] [JBoss jBPM] - Re: Some Questions about Spring JBPM4 Integration

2009-07-09 Thread jbarrez
anonymous wrote : I'm curious as to what else can be passed to the java object. Like I'd like to get a copy of the actual Execution. Afaik, there is no easy way to just inject the actual executions, since * There are potentially many many executions active * Spring injects dependencies when the

[jboss-user] [JBoss jBPM] - Re: Some Questions about Spring JBPM4 Integration

2009-07-09 Thread rmoskal
Thanks for replying! You may have misunderstood me, I don't want to inject an Execution into the context. But I would want to pass it as a variable to say a entity. The existing Spring demo shows a HistorySession being passed as an argument to a method. I imagine there must be a way to