lib/ruote/exp/fe_concurrence.rb in ruote-2.1.11 vs lib/ruote/exp/fe_concurrence.rb in ruote-2.2.0
- old
+ new
@@ -1,7 +1,7 @@
#--
-# Copyright (c) 2005-2010, John Mettraux, jmettraux@gmail.com
+# Copyright (c) 2005-2011, John Mettraux, jmettraux@gmail.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -180,11 +180,11 @@
h.over = false
apply_children
end
- def reply (workitem)
+ def reply(workitem)
if h.cmerge == 'first' || h.cmerge == 'last'
h.workitems << workitem
else
h.workitems[workitem['fei']['expid']] = workitem
@@ -228,11 +228,11 @@
persist_or_raise
msgs.each { |m| @context.storage.put_msg('apply', m) }
end
- def over? (workitem)
+ def over?(workitem)
over_if = attribute(:over_if, workitem)
over_unless = attribute(:over_unless, workitem)
if over_if && Condition.true?(over_if)
@@ -251,10 +251,10 @@
def expected_count
h.ccount ? [ h.ccount, tree_children.size ].min : tree_children.size
end
- def reply_to_parent (_workitem)
+ def reply_to_parent(_workitem)
workitem = merge_all_workitems
if h.ccount == nil || h.children.empty?