app/services/workflow_find_service.rb
# find workflows for a remote resource with app_name, object_type, and object_id
find workflows for a remote resource with app_name, object_type, and object_id
find workflows for a remote resource with app_name object_type and object_id
def find(tag_attrs)
    tags = fq_tag_names(tag_attrs)
    workflow_ids = TagLink.where(tag_attrs.except(:object_id)).where(:tag_name => tags).pluck(:workflow_id)
    Workflow.where(:id => workflow_ids)
  end
def find ( tag_attrs ) tags = fq_tag_names ( tag_attrs ) workflow_ids = TagLink . where ( tag_attrs . except ( :object_id ) ) . where ( :tag_name => tags ) . pluck ( :workflow_id ) Workflow . where ( :id => workflow_ids ) end
find workflows for a remote resource with app_name, object_type, and object_id
find workflows for a remote resource with app_name object_type and object_id
tag_attrs
<not_specific>