module Slack::Web::Api::Endpoints::Workflows
Public Instance Methods
Indicate that an app's step in a workflow completed execution.
@option options [Object] :workflow_step_execute_id
Context identifier that maps to the correct workflow step execution.
@option options [Object] :outputs
Key-value object of outputs from your step. Keys of this object reflect the configured key properties of your outputs array from your workflow_step object.
@see api.slack.com/methods/workflows.stepCompleted @see github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows/workflows.stepCompleted.json
# File lib/slack/web/api/endpoints/workflows.rb, line 18 def workflows_stepCompleted(options = {}) throw ArgumentError.new('Required arguments :workflow_step_execute_id missing') if options[:workflow_step_execute_id].nil? post('workflows.stepCompleted', options) end
Indicate that an app's step in a workflow failed to execute.
@option options [Object] :error
A JSON-based object with a message property that should contain a human readable error message.
@option options [Object] :workflow_step_execute_id
Context identifier that maps to the correct workflow step execution.
@see api.slack.com/methods/workflows.stepFailed @see github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows/workflows.stepFailed.json
# File lib/slack/web/api/endpoints/workflows.rb, line 32 def workflows_stepFailed(options = {}) throw ArgumentError.new('Required arguments :error missing') if options[:error].nil? throw ArgumentError.new('Required arguments :workflow_step_execute_id missing') if options[:workflow_step_execute_id].nil? post('workflows.stepFailed', options) end
Update the configuration for a workflow step.
@option options [Object] :workflow_step_edit_id
A context identifier provided with view_submission payloads used to call back to workflows.updateStep.
@option options [Object] :inputs
A JSON key-value map of inputs required from a user during configuration. This is the data your app expects to receive when the workflow step starts. Please note: the embedded variable format is set and replaced by the workflow system. You cannot create custom variables that will be replaced at runtime. Read more about variables in workflow steps here.
@option options [Object] :outputs
An JSON array of output objects used during step execution. This is the data your app agrees to provide when your workflow step was executed.
@option options [Object] :step_image_url
An optional field that can be used to override app image that is shown in the Workflow Builder.
@option options [Object] :step_name
An optional field that can be used to override the step name that is shown in the Workflow Builder.
@see api.slack.com/methods/workflows.updateStep @see github.com/slack-ruby/slack-api-ref/blob/master/methods/workflows/workflows.updateStep.json
# File lib/slack/web/api/endpoints/workflows.rb, line 53 def workflows_updateStep(options = {}) throw ArgumentError.new('Required arguments :workflow_step_edit_id missing') if options[:workflow_step_edit_id].nil? post('workflows.updateStep', options) end