| Class | OpenWFE::ForgetExpression |
| In: |
lib/openwfe/expressions/fe_losfor.rb
|
| Parent: | FlowExpression |
This expression triggers its child (in its own thread) and then forgets about it. It immediately replies to its parent expression.
The brother expression ‘lose’ triggers its child but never replies to its parent expression.
The ‘forget’ expression is useful for triggering process segments that are, well, dead ends.
# File lib/openwfe/expressions/fe_losfor.rb, line 91
91: def apply (workitem)
92:
93: if (@children and @children.length > 0)
94:
95: wi = workitem.dup
96:
97: child = @children[0]
98: get_expression_pool.forget self, child
99: get_expression_pool.apply child, wi
100: end
101:
102: reply_to_parent workitem
103: end