lib/openwfe/tools/flowtracer.rb in openwferu-0.9.16 vs lib/openwfe/tools/flowtracer.rb in openwferu-0.9.17
- old
+ new
@@ -1,8 +1,8 @@
#
#--
-# Copyright (c) 2007, John Mettraux, OpenWFE.org
+# Copyright (c) 2007-2008, John Mettraux, OpenWFE.org
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
@@ -40,20 +40,21 @@
#
require 'openwfe/workitem'
require 'openwfe/engine/engine'
-include OpenWFE
+#include OpenWFE
module OpenWFE
def trace_flow (process_definition)
- li = LaunchItem.new(process_definition)
- engine = Engine.new()
+ li = LaunchItem.new process_definition
+ engine = Engine.new
+
i = 0
engine.register_participant(".*") do |workitem|
puts "-- #{i} ------------------------------------------------------------------------"
@@ -71,10 +72,10 @@
#puts
i = i + 1
end
- engine.launch(li)
+ engine.launch li
end
end