atom feed34 messages in net.java.dev.osworkflow.usersmodifying WorkflowStore
FromSent OnAttachments
AbhishekSep 21, 2005 7:04 am 
Luca MasiniSep 21, 2005 7:17 am 
AbhishekSep 21, 2005 7:33 am 
Luca MasiniSep 21, 2005 7:50 am 
AbhishekSep 22, 2005 8:31 am 
Luca MasiniSep 22, 2005 11:30 pm 
AbhishekSep 23, 2005 7:08 am 
Luca MasiniSep 23, 2005 7:19 am 
Luca MasiniSep 26, 2005 3:36 am 
fschroderSep 26, 2005 11:24 am 
Luca MasiniSep 26, 2005 11:38 pm 
AbhishekSep 27, 2005 9:24 am 
AbhishekSep 27, 2005 9:27 am 
Luca MasiniSep 29, 2005 2:26 am 
Corby PageSep 30, 2005 4:39 pm 
Corby PageSep 30, 2005 4:47 pm 
Luca MasiniOct 1, 2005 12:50 am 
Luca MasiniOct 1, 2005 12:51 am 
Corby PageOct 2, 2005 12:52 pm 
Corby PageOct 2, 2005 1:04 pm 
Luca MasiniOct 3, 2005 12:58 am 
Luca MasiniOct 3, 2005 1:01 am 
AbhishekOct 3, 2005 2:15 pm 
Luca MasiniOct 3, 2005 11:31 pm 
AbhishekOct 4, 2005 7:35 am 
Corby PageOct 4, 2005 9:30 am 
Luca MasiniOct 4, 2005 1:57 pm 
Corby PageOct 4, 2005 2:56 pm 
Luca MasiniOct 4, 2005 4:00 pm.jar
Corby PageOct 5, 2005 4:29 pm 
Luca MasiniOct 6, 2005 12:58 am 
Luca MasiniOct 6, 2005 1:28 am 
Corby PageOct 6, 2005 7:09 am 
Luca MasiniOct 6, 2005 7:14 am 
Subject:modifying WorkflowStore
From:Corby Page (oswo@opensymphony.com)
Date:Oct 5, 2005 4:29:35 pm
List:net.java.dev.osworkflow.users

OK, thanks for the new jar, Luca. I see the source of the problem now. That
whole Session business was a bit of a red herring. Two things to look at:

1) The old SpringHibernateWorkflowStore did not correctly populate or use the
stepIndex column in the os_currentsteps table. I verified that creating
HibernateCurrentSteps using the old store results in a null value being stored
in this column.

The NewSpringHibernateWorkflowStore does utilize the column correctly. In my
case, that meant it crashed and burned the first time it tried to read the step
and picked up the null value from that column.

This does present a bit of a migration challenge for users moving to
NewSpringHibernateWorkflowStore. In my case, I fixed the problem by manually
populating the stepIndex column for all rows in my database. For large databases
with branching workflow, this may end up being difficult to infeasible.

2) In your Spring configuration file, you set singleton="false" on the
workflowTarget bean. It is considered unsafe to reuse the same instance of
BasicWorkflow indefinitely through the app, so presumably you are trying to get
a new instance on each invocation.

[b]You are not getting the semantics you expect here.[/b] On Spring startup, an instance of BasicWorkflow is created and bound to the
TransactionProxy defined as the workflow bean. That same instance is reused
every time the proxy is invoked, which is to say every time that the application
invokes the workflow bean. You are going to need to use method injection if you
want a new instance of BasicWorkflow to be instantiated everytime the user
references the workflow bean.

--------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=6965&messageID=17023#17023