Class: Emasser::WorkflowDefinitions
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Emasser::WorkflowDefinitions
- Defined in:
- lib/emasser/get.rb
Overview
The Workflow Definitions endpoint provides the ability to view all workflow schemas available on the eMASS instance. Every transition for each workflow stage is included.
Endpoints:
/api/workflow-definitions - Get workflow definitions in a site
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from SubCommandBase
Methods included from OutputConverters
#change_to_datetime, #to_output_hash
Methods included from InputConverters
Methods included from OptionsParser
#optional_options, #required_options
Class Method Details
.exit_on_failure? ⇒ Boolean
633 634 635 |
# File 'lib/emasser/get.rb', line 633 def self.exit_on_failure? true end |
Instance Method Details
#forSite ⇒ Object
645 646 647 648 649 650 651 652 653 654 |
# File 'lib/emasser/get.rb', line 645 def forSite = (@_initializer).keys = to_input_hash(, ) result = EmassClient::WorkflowDefinitionsApi.new.get_workflow_definitions() puts to_output_hash(result).green rescue EmassClient::ApiError => e puts 'Exception when calling ApprovalChainApi->get_workflow_definitions'.red puts to_output_hash(e) end |