public
Description: a rails wrapper around the OpenWFEru "ruote" workflow and BPM engine
Homepage: http://openwferu.rubyforge.org/rquickstart.html
Clone URL: git://github.com/jmettraux/ruote-web.git
jmettraux (author)
Sun Jun 22 18:24:49 -0700 2008
commit  869ad7d377e35d05236f6969adf8bca7169120d2
tree    3ea33ed98b656bbfdc1043f1423b17d134b2dfe7
parent  e327fb4dd439df30e3736495ee7d5c9ef4099035
ruote-web / config / openwferu_participants.rb
100644 47 lines (38 sloc) 1.29 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Put your openwferu participants here.
#
# see examples of participant at
# http://openwferu.rubyforge.org/participants.html
#
# and also at
# http://viewvc.rubyforge.mmmultiworks.com/cgi/viewvc.cgi/trunk/openwfe-ruby/examples/engine_template.rb?root=openwferu&view=markup
#
 
 
#
# A stupid "toto" participant, simply outputs a message to the console (if any)
# each time it receives a workitem.
#
$openwferu_engine.register_participant "toto" do |workitem|
 
  puts
  puts "toto received a workitem"
  puts "and immediately sent it back to the engine" #implicitely
  puts
end
 
#require 'openwfe/extras/participants/basecamp_participants'
#$openwferu_engine.register_participant(
# "john",
# OpenWFE::Extras::BasecampParticipant.new(
# :host => ENV['BC_HOST'],
# :username => ENV['BC_USERNAME'],
# :password => ENV['BC_PASSWORD'],
# #:project_id => ENV['BC_PROJECT_ID'],
# :todo_list_id => ENV['BC_TODO_LIST_ID'],
# :responsible_party_id => ENV['BC_RESPONSIBLE_PARTY_ID'],
# :ssl => false))
 
#
# Note that store participant are registered in config/openwferu_engine.rb
#
 
#
# When all the participants have been registered, reschedule temporal
# expressions left from previous run (restart).
#
$openwferu_engine.reschedule