lib/dor/models/response/workflow.rb in dor-workflow-service-2.8.0 vs lib/dor/models/response/workflow.rb in dor-workflow-service-2.9.0
- old
+ new
@@ -13,9 +13,13 @@
def pid
ng_xml.at_xpath('/workflow/@objectId').text
end
+ def workflow_name
+ ng_xml.at_xpath('/workflow/@id').text
+ end
+
# @param [Integer] version the version we are checking for.
def active_for?(version:)
result = ng_xml.at_xpath("/workflow/process[@version=#{version}]")
result ? true : false
end