CC: | maik.schueller [...] itelligence.de |
Subject: | workflow context is not persistent [FIX and .t included] |
Just duplicating the message I sent via email...
We're evaluating it for integration in some larger project. While doing
our first steps, I got trapped by a bug or a feature, I'm not sure about
it.
For my understanding - if there is information saved in the context of a
workflow, this information should persist between the different
instantiations of this workflow.
$wf = FACTORY->create_workflow("FOO");
$wf->context->param(name => "hans");
$id = $wf->id;
exit;
… now there should name:"hans" be saved in the context. It is.
$wf = FACTORY->fetch_workflow("FOO", $id);
… now the $wf->context is empty.
Two questions arise:
1) Is this the expected behaviour?
2) When exactly gets the current workflow object saved to the
persister? On every change? Directly after setting the context
it does not seem to appear in the persister file.
3) Depending on the answer for (2): is there a public
"save_workflow" method?
I've attached my test file for proving that the context gets lost.
And I've attached a patch to cure the above problem, IF it is a bug.
--
Heiko
Subject: | a |
Message body not shown because it is not plain text.