lib/dor/workflow/client.rb in dor-workflow-client-6.0.0 vs lib/dor/workflow/client.rb in dor-workflow-client-7.0.0

- old
+ new

@@ -38,19 +38,17 @@ raise ArgumentError, 'You must provide either a connection or a url' if !url && !connection @requestor = Requestor.new(connection: connection || ConnectionFactory.build_connection(url, timeout: timeout, logger: logger)) end - delegate :create_workflow_by_name, :workflow_status, :all_workflows_xml, :workflows, + delegate :create_workflow_by_name, :workflow_status, :workflows, :workflow, :process, :delete_workflow, :delete_all_workflows, :update_status, :update_error_status, to: :workflow_routes delegate :lifecycle, :active_lifecycle, :milestones, to: :lifecycle_routes - delegate :lane_ids, :stale_queued_workflows, :count_stale_queued_workflows, - :objects_for_workstep, :errored_objects_for_workstep, :count_objects_in_step, - :count_errored_for_workstep, :count_queued_for_workstep, + delegate :lane_ids, :objects_for_workstep, to: :queues delegate :close_version, to: :version_routes def queues @@ -69,13 +67,9 @@ @version_routes ||= VersionRoutes.new(requestor: requestor) end def workflow_template(name) templates.retrieve(name) - end - - def workflow_templates - templates.all end def templates WorkflowTemplate.new(requestor: requestor) end