class Flor::Pro::Part
Public Instance Methods
cancel()
click to toggle source
Calls superclass method
Flor::Procedure#cancel
# File lib/flor/punit/part.rb, line 47 def cancel if @node['can'] || from != parent # # if the node is cancellable or the cancel comes not from the parent # the cancelling goes on... # super else # # else the cancelling does not proceed further (down) # [] end end
pre_execute()
click to toggle source
+-------------------+--------------------+ ruote flor | replies to parent | cancellable |
-------
——-------------
——————---------------------
| fork | part | part | immediately | no (not reachable) | | | flunk | r: false | never | no (not reachable) | | flank | flank | flank | immediately | yes | | lose | norep | r: false | never | yes | -------
——-------------
——————---------------------
reply/r: false, cancellable/c: false
to part, to flank, the subject is the diverging branch
# File lib/flor/punit/part.rb, line 20 def pre_execute @node['atts'] = [] end
receive_last_att()
click to toggle source
Calls superclass method
Flor::Procedure#receive_last_att
# File lib/flor/punit/part.rb, line 25 def receive_last_att @node['tree'] = Flor.dup(tree) @node['replyto'] = nil rep = true @node['can'] = (heap == 'flank') if (r = att('reply', 'rep', 'r')) != nil rep = r end if (c = att('cancellable', 'can', 'c')) != nil @node['can'] = c end fla = @node['can'] ? 'flank' : 'part' # so it is possible to have `flank r: true c: false` (iow: `part`)... (rep ? wrap('flavour' => fla, 'nid' => parent, 'ret' => nid) : []) + super end