Workflow::Persister::File - Persist workflow and history to the filesystem |
Workflow::Persister::File - Persist workflow and history to the filesystem
<persister name="MainPersister" class="Workflow::Persister::File" path="/home/workflow/storage"/>
Main persistence class for storing the workflow and workflow history records to a filesystem for later retrieval. Data are stored in serialized Perl data structure files.
This method deserializes an object.
Takes a single parameter of an filesystem path pointing to an object
Returns the re-instantiated object or dies.
Serializes history records associated with a workflow object
Takes two parameters: a workflow object and an array of workflow history objects
Returns: provided array of workflow history objects upon success
Serializes a workflow into the persistance entity configured by our workflow.
Takes a single parameter: a workflow object
Returns a single value, a id for unique identification of out serialized workflow for possible deserialization.
Deserializes history records associated with a workflow object
Takes a single parameter: a workflow object
Returns an array of workflow history objects upon success
Deserializes a workflow from the persistance entity configured by our workflow.
Takes a single parameter: the unique id assigned to our workflow upon serialization (see create_workflow).
Returns a hashref consisting of two keys:
Method to initialize the persister object. Sets up the configured generators
Throws a the Workflow::Exception manpage if a valid filesystem path is not provided with the parameters.
Method that writes a given object to a given path.
Takes two parameters: path (a filesystem path) and an object
Throws the Workflow::Exception manpage if unable to serialize the given object to the given path.
Returns: Nothing
Updates a serialized workflow in the persistance entity configured by our workflow.
Takes a single parameter: a workflow object
Returns: Nothing
the Workflow::Persister manpage
Copyright (c) 2003-2007 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Jonas B. Nielsen (jonasbn) <jonasbn@cpan.org> is the current maintainer.
Chris Winters <chris@cwinters.com>, original author.
Workflow::Persister::File - Persist workflow and history to the filesystem |