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
todo #20701 : added 'schedules' to /process view
jmettraux (author)
Tue Jun 17 07:31:30 -0700 2008
commit  e327fb4dd439df30e3736495ee7d5c9ef4099035
tree    fd2daf0123653cbe6344036148ef5f1b70db6dea
parent  aa9e7886eb014dbcaf6a2bd5735f643004861511
...
1
2
 
3
4
5
 
6
 
7
8
9
10
11
12
13
 
14
15
16
...
1
 
2
3
4
 
5
6
7
8
9
10
11
12
13
 
14
15
16
17
0
@@ -1,16 +1,17 @@
0
 
0
-= openwferu-densha CHANGELOG.txt
0
+= OpenWFEru - ruote-web CHANGELOG.txt
0
 
0
 
0
-== densha - 0.9.19 not yet released
0
+== ruote-web - 0.9.19 not yet released
0
 
0
+- todo #20701 : added 'schedules' to /process view
0
 - bug #20600 : search broken (Densha::Locks). Fixed.
0
 - patch #20601 : issue with search form url on JRuby/Glassfish. Patch by
0
                  Scott Sproule.
0
 - bug #20496 : couldn't display graph for process in subprocess. Fixed.
0
 
0
 
0
-== densha - 0.9.18 2008/05/22
0
+== ruote-web - 0.9.18 2008/05/22
0
 
0
 - todo #20280 : created db/dev_fixtures/ and lib/tasks/populate_dev_db
0
 - todo #20221 : using the actual process representation for /process and
...
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
...
49
50
51
52
 
53
54
55
56
57
 
58
59
60
61
62
63
 
64
65
66
...
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
...
49
50
51
 
52
53
54
55
56
 
57
58
59
60
61
62
 
63
64
65
66
0
@@ -2,31 +2,31 @@
0
 #--
0
 # Copyright (c) 2007-2008, John Mettraux, OpenWFE.org
0
 # All rights reserved.
0
-#
0
-# Redistribution and use in source and binary forms, with or without
0
+#
0
+# Redistribution and use in source and binary forms, with or without
0
 # modification, are permitted provided that the following conditions are met:
0
-#
0
+#
0
 # . Redistributions of source code must retain the above copyright notice, this
0
-# list of conditions and the following disclaimer.
0
-#
0
-# . Redistributions in binary form must reproduce the above copyright notice,
0
-# this list of conditions and the following disclaimer in the documentation
0
+# list of conditions and the following disclaimer.
0
+#
0
+# . Redistributions in binary form must reproduce the above copyright notice,
0
+# this list of conditions and the following disclaimer in the documentation
0
 # and/or other materials provided with the distribution.
0
-#
0
+#
0
 # . Neither the name of the "OpenWFE" nor the names of its contributors may be
0
 # used to endorse or promote products derived from this software without
0
 # specific prior written permission.
0
-#
0
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
0
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0
+#
0
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
0
+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0
 # POSSIBILITY OF SUCH DAMAGE.
0
 #++
0
 #
0
@@ -49,18 +49,18 @@ class ProcessesController < ApplicationController
0
 
0
     @status = $openwferu_engine.list_process_status
0
   end
0
-
0
+
0
   def cancel_process
0
 
0
     @wfid = params[:id]
0
 
0
- Thread.new do
0
+ Thread.new do
0
         $openwferu_engine.cancel_process @wfid
0
     end
0
 
0
     #flash[:notice] = "process instance #{@wfid} got cancelled"
0
     #redirect_to :action => "index"
0
- end
0
+ end
0
 
0
   def show_process_errors
0
 
...
108
109
110
 
 
 
 
 
 
111
112
113
...
115
116
117
 
118
119
120
121
122
123
 
 
 
 
 
124
125
126
...
108
109
110
111
112
113
114
115
116
117
118
119
...
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
0
@@ -108,6 +108,12 @@
0
 
0
     wfurl = fei.wfurl
0
     wfurl = wfurl[7..-1] if wfurl.match /^public\//
0
+
0
+ schedules = @status.scheduled_jobs.collect { |sj|
0
+ s = sj.class.name + " / "
0
+ s << (sj.schedule_info + " / ") if sj.is_a?(Rufus::CronJob)
0
+ s << sj.next_time.to_s
0
+ }.join("<br/>\n")
0
 -%>
0
 
0
 <div class="process_tree">
0
@@ -115,12 +121,18 @@
0
   <br/>
0
 
0
   <div class="process_headers">
0
+
0
     <%= render_row c, "workflow name", fei.wfname %>
0
     <%= render_row c, "revision", fei.wfrevision %>
0
     <%= render_row c, "location", wfurl %>
0
     <%= render_row c, "workflow instance id", fei.wfid %>
0
     <%= render_row c, "branches", @status.branches, "indicates how many concurrent branches this process instance currently has" %>
0
     <%= render_row c, "status", @paused ? "<i>paused</i>" : "running" %>
0
+
0
+ <% if schedules.size > 0 %>
0
+ <br/>
0
+ <%= render_row c, "schedules", schedules %>
0
+ <% end %>
0
   </div>
0
   
0
   <br/>

Comments

    No one has commented yet.