lib/dor/services/client/workflows.rb in dor-services-client-1.11.0 vs lib/dor/services/client/workflows.rb in dor-services-client-1.12.0
- old
+ new
@@ -3,10 +3,13 @@
module Dor
module Services
class Client
# API calls that are about workflows
class Workflows < VersionedService
+ extend Deprecation
+ self.deprecation_horizon = 'dor-services-client version 2.0.0'
+
# Get the initial XML for a workflow
# @param name [String] the name of the xml
# @return [String] the response
def initial(name:)
resp = connection.get do |req|
@@ -16,9 +19,10 @@
end
return resp.body if resp.success?
raise UnexpectedResponse, "#{resp.reason_phrase}: #{resp.status} (#{resp.body})"
end
+ deprecation_deprecate initial: 'Initial will be removed. Use dor-workflow-client instead'
end
end
end
end