Class: Emasser::WorkflowInstances
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Emasser::WorkflowInstances
- Defined in:
- lib/emasser/get.rb
Overview
The Workflow Instances endpoint provides the ability to view detailed information on all active and historical workflows for a system.
Endpoints:
/api/systems/{systemId}/workflow-instances - Get workflow instances in a system
/api/systems/{systemId}/workflow-instances/{workflowInstanceId} - Get workflow instance by ID in a system
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from SubCommandBase
Methods included from OutputConverters
Methods included from InputConverters
Methods included from OptionsParser
#optional_options, #required_options
Class Method Details
.exit_on_failure? ⇒ Boolean
583 584 585 |
# File 'lib/emasser/get.rb', line 583 def self.exit_on_failure? true end |
Instance Method Details
#byWorkflowInstanceId ⇒ Object
620 621 622 623 624 625 626 627 628 |
# File 'lib/emasser/get.rb', line 620 def byWorkflowInstanceId result = EmassClient::WorkflowInstancesApi.new.get_system_workflow_instances_by_workflow_instance_id( [:systemId], [:workflowInstanceId] ) puts to_output_hash(result).green rescue EmassClient::ApiError => e puts 'Exception when calling ApprovalChainApi->get_system_workflow_instances_by_workflow_instance_id'.red puts to_output_hash(e) end |
#forSystem ⇒ Object
598 599 600 601 602 603 604 605 606 607 608 609 |
# File 'lib/emasser/get.rb', line 598 def forSystem = (@_initializer).keys = to_input_hash(, ) result = EmassClient::WorkflowInstancesApi.new.get_system_workflow_instances( [:systemId], ) puts to_output_hash(result).green rescue EmassClient::ApiError => e puts 'Exception when calling ApprovalChainApi->get_system_workflow_instances'.red puts to_output_hash(e) end |