lib/openwfe/expressions/fe_concurrence.rb in openwferu-0.9.6 vs lib/openwfe/expressions/fe_concurrence.rb in openwferu-0.9.7
- old
+ new
@@ -128,10 +128,12 @@
# numerous and powerful.
#
class ConcurrenceExpression < SequenceExpression
include ConditionMixin
+ names :concurrence
+
attr_accessor \
:sync_expression
def apply (workitem)
@@ -188,21 +190,32 @@
#
# A base for sync expressions, currently empty.
# That may change.
#
- class SyncExpression
+ class SyncExpression < ObjectWithMeta
def initialize()
super()
end
+
+ def self.names (*exp_names)
+ exp_names = exp_names.collect do |n|
+ n.to_s
+ end
+ meta_def :expression_names do
+ exp_names
+ end
+ end
end
#
# The classical OpenWFE sync expression.
# Used by 'concurrence' and 'concurrent-iterator'
#
class GenericSyncExpression < SyncExpression
+
+ names :generic
attr_accessor \
:remaining_children,
:count,
:reply_count,