Module: Bumbleworks::Support::FlowExpression
- Defined in:
- lib/bumbleworks/support/flow_expression.rb
Instance Method Summary collapse
Instance Method Details
#tag_from_attribute ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/bumbleworks/support/flow_expression.rb', line 4 def tag_from_attribute tag = attribute_text.to_s if h.updated_tree[1]['for_entity'].to_s == 'true' workitem_fields = h.applied_workitem['fields'] entity_type, entity_id = workitem_fields.values_at('entity_type', 'entity_id') if entity_type && entity_id entity_tag = "#{Bumbleworks::Support.tokenize(entity_type)}_#{entity_id}" tag += "__for_entity__#{entity_tag}" end end tag end |