class Camunda::Signal

Signal events are events which reference a named signal. Camunda::Signal is used to create a signal with variables. @example

`Camunda::Signal.create name: 'Signal Name', variables: {foo: "bar"}`

Public Class Methods

create(hash={}) click to toggle source

Creates a signal within the process definition on the Camunda engine @param hash [Hash] variables that are sent to Camunda engine @return [{Symbol => Hash,Faraday::Response}]

# File lib/camunda/signal.rb, line 12
def self.create(hash={})
  hash[:variables] = serialize_variables(hash[:variables]) if hash[:variables]
  post_raw collection_path, hash
end