examples/engine_template.rb in openwferu-0.9.11 vs examples/engine_template.rb in openwferu-0.9.12
- old
+ new
@@ -6,13 +6,10 @@
#
# setting up an OpenWFEru engine, step by step
require 'openwfe/engine/engine'
require 'openwfe/engine/file_persisted_engine'
-require 'openwfe/expool/history'
-require 'openwfe/expool/journal'
-require 'openwfe/listeners/listeners'
require 'openwfe/participants/participants'
#
# === the ENGINE itself
@@ -60,28 +57,35 @@
#
# Hit CTRL-D to get out of the IRB console.
# -- process history
+#require 'openwfe/expool/history'
+
#engine.init_service("history", InMemoryHistory)
#
- # keeps all process history in an arry in memory
+ # keeps all process history in an array in memory
# use only for test purposes !
#engine.init_service("history", FileHistory)
#
# dumps all the process history in a file name "history.log"
# in the work directory
# -- process journaling
+#require 'openwfe/expool/journal'
#engine.init_service("journal", Journal)
#
# activates 'journaling',
#
# see http://openwferu.rubyforge.org/journal.html
#
+ # Journaling has a cost in terms of performace.
+ # Journaling should be used only in case you might want to migrate
+ # [segments of] running processes.
+ #
#engine.application_context[:keep_journals] = true
#
# if set to true, the journal of terminated processes will be kept
# (but moved by default to ./work/journal/done/)
@@ -90,9 +94,11 @@
# === some LISTENERS
#
# listeners 'receive' incoming workitems (InFlowWorkItem coming back from
# participants or LaunchItem requesting the launch of a particular flow)
#
+
+#require 'openwfe/listeners/listeners'
#sl = OpenWFE::SocketListener.new(
# "socket_listener", @engine.application_context, 7008)
#engine.add_workitem_listener(sl)
#