lib/openwfe/expool/yamlexpstorage.rb in openwferu-0.9.12 vs lib/openwfe/expool/yamlexpstorage.rb in openwferu-0.9.12.863
- old
+ new
@@ -28,22 +28,19 @@
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#++
#
-# $Id: definitions.rb 2725 2006-06-02 13:26:32Z jmettraux $
-#
#
# "made in Japan"
#
# Nicolas Modrzyk at openwfe.org
# John Mettraux at openwfe.org
#
require 'openwfe/utils'
-require 'openwfe/rudefinitions'
require 'openwfe/storage/yamlextras'
require 'openwfe/storage/yamlfilestorage'
require 'openwfe/expressions/flowexpression'
require 'openwfe/expressions/raw_xml'
@@ -55,21 +52,20 @@
module OpenWFE
#
- # yaml expression storage
+ # YAML expression storage. Expressions (atomic pieces of process instances)
+ # are stored in a hierarchy of YAML files.
#
class YamlFileExpressionStorage < YamlFileStorage
include OwfeServiceLocator
def initialize (service_name, application_context)
- path = OpenWFE::get_work_directory + '/expool'
+ super(service_name, application_context, '/expool')
- super(service_name, application_context, path)
-
observe_expool()
end
#
# Iterates on each expression that is of the given kind.
@@ -115,9 +111,13 @@
end
end
alias :real_each :each
+ #
+ # Returns a human-readable list of the current YAML file paths.
+ # (one expression per path).
+ #
def to_s
s = "\n\n==== #{self.class} ===="
s << "\n"
each_object_path do |path|