| From | Sent On | Attachments |
|---|---|---|
| Abhishek | Sep 21, 2005 7:04 am | |
| Luca Masini | Sep 21, 2005 7:17 am | |
| Abhishek | Sep 21, 2005 7:33 am | |
| Luca Masini | Sep 21, 2005 7:50 am | |
| Abhishek | Sep 22, 2005 8:31 am | |
| Luca Masini | Sep 22, 2005 11:30 pm | |
| Abhishek | Sep 23, 2005 7:08 am | |
| Luca Masini | Sep 23, 2005 7:19 am | |
| Luca Masini | Sep 26, 2005 3:36 am | |
| fschroder | Sep 26, 2005 11:24 am | |
| Luca Masini | Sep 26, 2005 11:38 pm | |
| Abhishek | Sep 27, 2005 9:24 am | |
| Abhishek | Sep 27, 2005 9:27 am | |
| Luca Masini | Sep 29, 2005 2:26 am | |
| Corby Page | Sep 30, 2005 4:39 pm | |
| Corby Page | Sep 30, 2005 4:47 pm | |
| Luca Masini | Oct 1, 2005 12:50 am | |
| Luca Masini | Oct 1, 2005 12:51 am | |
| Corby Page | Oct 2, 2005 12:52 pm | |
| Corby Page | Oct 2, 2005 1:04 pm | |
| Luca Masini | Oct 3, 2005 12:58 am | |
| Luca Masini | Oct 3, 2005 1:01 am | |
| Abhishek | Oct 3, 2005 2:15 pm | |
| Luca Masini | Oct 3, 2005 11:31 pm | |
| Abhishek | Oct 4, 2005 7:35 am | |
| Corby Page | Oct 4, 2005 9:30 am | |
| Luca Masini | Oct 4, 2005 1:57 pm | |
| Corby Page | Oct 4, 2005 2:56 pm | |
| Luca Masini | Oct 4, 2005 4:00 pm | .jar |
| Corby Page | Oct 5, 2005 4:29 pm | |
| Luca Masini | Oct 6, 2005 12:58 am | |
| Luca Masini | Oct 6, 2005 1:28 am | |
| Corby Page | Oct 6, 2005 7:09 am | |
| Luca Masini | Oct 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






.jar