Module OpenWFE::FeiMixin
In: lib/openwfe/omixins.rb

A few methods about FlowExpressionIds

Methods

Protected Instance methods

Makes sure to return a FlowExpressionId instance.

[Source]

    # File lib/openwfe/omixins.rb, line 57
57:             def extract_fei (object)
58: 
59:                 if object.kind_of?(FlowExpressionId)
60: 
61:                     object
62: 
63:                 elsif object.kind_of?(FlowExpression) or 
64:                     object.kind_of?(InFlowItem)
65: 
66:                     object.fei
67: 
68:                 elsif object.kind_of?(String)
69: 
70:                     FlowExpressionId.to_fei object
71: 
72:                 else
73: 
74:                     raise \
75:                         "cannot extract FlowExpressionId "+
76:                         "out of #{object.inspect}"
77:                 end
78:             end

A small method for ensuring we have a workflow instance id.

[Source]

    # File lib/openwfe/omixins.rb, line 83
83:             def extract_wfid (o, parent=false)
84: 
85:                 case o
86:                     #when String then o
87:                     when FlowExpressionId then o.wfid(parent)
88:                     when FlowExpression then o.fei.wfid(parent)
89:                     else o.to_s
90:                 end
91:             end

[Validate]