dor-workflow-client 3.11.0 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dor/workflow/client/version.rb +1 -1
- data/lib/dor/workflow/client/workflow_routes.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9befc325f9a9f7f39fb51bfe1ec663ac1e47f4b873a8d86853849ab71842b14d
|
4
|
+
data.tar.gz: 57cdb8cc8896292bf406298bcfd779cca36cc68fdcdc5d5c352f2a8b63590b58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5130e4c0418579681766938f1c53ddeba5ea84ef8aec72e4f1b87877d4120ecc718bd1b8e64c90f7eb515e0383080d73de4eecd6ffdbc6809ab459f2c1136f3b
|
7
|
+
data.tar.gz: dc7b9d86a50b2dc1bc2f7e706294c212df2e3e1c03c9693ea91d0ce4fe419354b8c8cb05d45716752e9d0ce98fe204351de64ab3b8ca3112d3e60e67943acfa7
|
@@ -153,6 +153,7 @@ module Dor
|
|
153
153
|
# @param [String] druid The id of the object
|
154
154
|
# @param [String] workflow The name of the workflow
|
155
155
|
# @return [String] XML of the workflow
|
156
|
+
# rubocop:disable Metrics/MethodLength
|
156
157
|
def workflow_xml(*args)
|
157
158
|
case args.length
|
158
159
|
when 3
|
@@ -166,9 +167,11 @@ module Dor
|
|
166
167
|
workflow = opts[:workflow]
|
167
168
|
end
|
168
169
|
raise ArgumentError, 'missing workflow' unless workflow
|
170
|
+
return requestor.request "#{repo}/objects/#{druid}/workflows/#{workflow}" if repo
|
169
171
|
|
170
|
-
requestor.request "
|
172
|
+
requestor.request "objects/#{druid}/workflows/#{workflow}"
|
171
173
|
end
|
174
|
+
# rubocop:enable Metrics/MethodLength
|
172
175
|
|
173
176
|
# Updates the status of one step in a workflow to error.
|
174
177
|
# Returns true on success. Caller must handle any exceptions
|