public
Description: the [OpenWFEru] workflow and BPM engine (ruby)
Homepage: http://openwferu.rubyforge.org
Clone URL: git://github.com/jmettraux/ruote.git
Search Repo:
bug #21306 : made sure duplicate insert bug for ActiveParticipant is 
fixed.
jmettraux (author)
Fri Jul 25 01:51:52 -0700 2008
commit  021ccb19f876bd7cc763002b7fce41482abc0322
tree    c5f7912fd2b55dbbf1d851e2df46a8fd0f31c7ce
parent  b404f92e95604900544b73785ad117b321f7b768
...
4
5
6
 
7
8
9
10
11
12
13
...
4
5
6
7
8
9
10
 
11
12
13
0
@@ -4,10 +4,10 @@
0
 
0
 == ruote - 0.9.19 not yet released
0
 
0
+- bug #21306 : made sure duplicate insert bug for ActiveParticipant is fixed.
0
 - todo #21334 : optimized fulldup() (almost 2 times faster).
0
 - bug #21322 : reserve mutex not freed upon cancel. Fixed.
0
 - bug #21305 : replay_at_error was broken for subprocesses. Fixed.
0
-- bug #21306 : made sure duplicate insert bug for ActiveParticipant is fixed.
0
 - todo #21167 : exptree.to_code_s() now respecting non-string att values.
0
 - bug #20714 : engine.lookup_variable was coaxing target value into a regex.
0
                  Fixed.
...
177
178
179
180
181
182
183
184
...
198
199
200
 
 
 
201
202
203
...
670
671
672
673
 
 
674
675
676
...
177
178
179
 
 
180
181
182
...
196
197
198
199
200
201
202
203
204
...
671
672
673
 
674
675
676
677
678
0
@@ -177,8 +177,6 @@ module Extras
0
     #
0
     def Workitem.from_owfe_workitem (wi, store_name=nil)
0
 
0
- i = nil
0
-
0
       i = Workitem.new
0
       i.fei = wi.fei.to_s
0
       i.wfid = wi.fei.wfid
0
@@ -198,6 +196,9 @@ module Extras
0
         # sometimes, the saved workitem id wasn't updated, was remaining at 0
0
         # thus finding if necessary...
0
 
0
+ #i.fields.delete_all
0
+ # why do I need that ??? fields were getting recycled...
0
+
0
       # This is a field set by the active participant immediately
0
       # before calling this method.
0
       # the default behavior is "use field method"
0
@@ -670,7 +671,8 @@ module Extras
0
     #
0
     def cancel (cancelitem)
0
 
0
- Workitem.delete_all([ "fei = ?", cancelitem.fei.to_s ])
0
+ Workitem.destroy_all([ "fei = ?", cancelitem.fei.to_s ])
0
+ # note that delete_all was not removing workitem fields
0
     end
0
 
0
     #

Comments

    No one has commented yet.