examples/mano_tracker.rb in openwferu-0.9.5 vs examples/mano_tracker.rb in openwferu-0.9.6
- old
+ new
@@ -46,34 +46,32 @@
#
#require 'openwfe/engine/engine'
require 'openwfe/engine/file_persisted_engine'
require 'openwfe/expressions/raw_prog'
-require 'openwfe/participants/storeparticipant'
+require 'openwfe/worklist/storeparticipant'
#
# The process definition
# (using a programmatic process definition instead of an XML process definition)
class TrackerDefinition < OpenWFE::ProcessDefinition
def make
- process_definition :name => "mano_tracker", :revision => "0.2" do
- _loop do
- participant "${f:creative}"
- participant "${f:analyst}"
+ _loop do
+ participant "${f:creative}"
+ participant "${f:analyst}"
- _break :if => "${f:done}"
- #
- # loops until the analyst sets the value of the field
- # 'done' to true.
- end
+ _break :if => "${f:done}"
#
- # 'loop' and 'break' are ruby keywords, they have to be
- # preceded by an underscore '_' to be used in their
- # OpenWFEru sense.
+ # loops until the analyst sets the value of the field
+ # 'done' to true.
end
+ #
+ # 'loop' and 'break' are ruby keywords, they have to be
+ # preceded by an underscore '_' to be used in their
+ # OpenWFEru sense.
end
end
#
# prepare the engine and the participants