Hi,
Spring supports the bean factory-method:
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#beans-factory-class-static-factory-method
But I'm not quite sure I understand your use case. Why do you need to
keep track of this case ID? And what other information do you need?
And who needs it?
If you can share your needs starting from the scenarios, perhaps we can
help you find a more appropriate solution.
Cheers
On 18/04/2013 15:26, Karlsson Christian wrote:
Hi all
I have a situation where I test a workflow of a case in our
application. Until now I've used static variables to keep track of the
case id and some other information. (I know it's not the "right" way
to do it but it was convenient :)
Since some of the scenarios requires the processing to suspend for a
few minutes (we are waiting for a BPEL process to finish) I now feel
the need to run stories in parallel. I've seen the noughtsandcrosses
example which passes the WindowControl to all Step classes. But how
would you set this up when you have your steps in the Spring
configuration XML?
Feel a bit puzzled here and any advice would be appreciated.
So far I either have the same case id for all stories (using static
variables) or can't pass values along at all :(
I guess I need to prototype the beans in the XML but then what?
Well, I'll keep digging.
Happy coding,
Regards
**
*Christian Karlsson*
CAG Contactor AB
Adress: Jan Stenbecks Torg 17, SE-164 40 Kista
Mobil: +46 (0)706694527
Mail: christian.karlsson <at> cag.se
www.cag.se
<https://wmail.cag.se/owa/redir.aspx?C=G2EjVQkj7kGZyieqy24uGB6NV2uAkM9Iy3xqV4cZFUaEVGXCGlWIq_V5O25t1jIUtjHgAaGFl0U.&URL=http%3a%2f%2fwww.cag.se%2f>