Subject: | Context Serialization not working in Workflow::Persister::DBI |
Date: | Wed, 30 Oct 2013 17:10:34 +0000 |
To: | bug-Workflow [...] rt.cpan.org |
From: | Sérgio Alves <kaynehril [...] gmail.com> |
Greetings,
I saw that on version 1.37 an issue with the serialization of context was
fixed:
1.37 2013-07-03
- Update recommended
- Added patch from Heiko Schlittermann fixing an issue with serialization of
context (was evaluated as release 1.35_1)
https://rt.cpan.org/Public/Bug/Display.html?id=64940
Although when I went to check the provided schemas for
Workflow::Persister::DBI, they seem to lack a table field to store it.
Also, in the code of Workflow::Persister::DBI, there seems to be no
context serialization.
To work around with this problem I wrote a new Persister that uses
DBIx::Class instead of DBI. This persister I wrote deals with context
serialization and allows you to customize where each attribute will be
stored within a schema.
In attachment, I send you the code for this Workflow::Persister::DBIx.
Feel free to add it to the module if you find it useful.
Best Regards,
Sérgio Alves
Message body not shown because it is not plain text.