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
Methods included from InputConverters
Methods included from OptionsParser
#optional_options, #required_options
Class Method Details
.exit_on_failure? ⇒ Boolean
552 553 554 |
# File 'lib/emasser/get.rb', line 552 def self.exit_on_failure? true end |
Instance Method Details
#forSite ⇒ Object
564 565 566 567 568 569 570 571 572 573 |
# File 'lib/emasser/get.rb', line 564 def forSite = (@_initializer).keys = to_input_hash(, ) result = SwaggerClient::WorkflowDefinitionsApi.new.get_workflow_definitions() puts to_output_hash(result).green rescue SwaggerClient::ApiError => e puts 'Exception when calling ApprovalChainApi->get_workflow_definitions'.red puts to_output_hash(e) end |