lib/openwfe/expressions/fe_value.rb in openwferu-0.9.6 vs lib/openwfe/expressions/fe_value.rb in openwferu-0.9.7
- old
+ new
@@ -52,10 +52,12 @@
module OpenWFE
class SetValueExpression < FlowExpression
+ names :set
+
def apply (workitem)
if @children.length < 1
workitem.attributes[FIELD_RESULT] = \
OpenWFE::lookup_value(self, workitem)
@@ -125,10 +127,12 @@
#end
end
class UnsetValueExpression < FlowExpression
+ names :unset
+
def apply (workitem)
vkey = lookup_attribute("variable", workitem)
fkey = lookup_attribute("field", workitem)
@@ -173,10 +177,12 @@
#
# <equals/>
#
class EqualsExpression < ComparisonExpression
+ names :equals
+
protected
def compare (a, b)
#ldebug { "compare() #{fei.to_debug_s}" }
#ldebug { "compare() '#{a}' == '#{b}'" }
@@ -187,9 +193,11 @@
#
# <if/>
#
class IfExpression < FlowExpression
include ConditionMixin
+
+ names :if
attr_accessor \
:condition_replied
def apply (workitem)