| Class | OpenWFE::RedoExpression |
| In: |
lib/openwfe/expressions/fe_do.rb
|
| Parent: | UndoExpression |
Every expression in OpenWFEru accepts a ‘tag’ attribute. This tag can later be referenced by an ‘undo’ or ‘redo’ expression.
Calling for the undo of a non-existent tag throws no error, the flow simply resumes.
# File lib/openwfe/expressions/fe_do.rb, line 147
147: def process_tag (tag)
148:
149: ldebug do
150: "process_tag() #{fei.to_debug_s} to redo #{tag.fei.to_debug_s}"
151: end
152:
153: #
154: # cancel
155:
156: get_expression_pool.cancel(tag.fei)
157:
158: #
159: # [re]apply
160:
161: tag.raw_expression.application_context = @application_context
162:
163: get_expression_pool.apply tag.raw_expression, tag.workitem
164: end