Sha256: 05e003ff9c5027848617e5be62ad33fe8d017fdb3bb0a47d8a186ba9deb2214b

Contents?: true

Size: 649 Bytes

Versions: 1

Compression:

Stored size: 649 Bytes

Contents

##
# 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"}`
class Camunda::Signal < Camunda::Model
  include Camunda::VariableSerialization
  uri 'signal/(:id)'
  # 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}]
  def self.create(hash={})
    hash[:variables] = serialize_variables(hash[:variables]) if hash[:variables]
    request :post, 'signal', hash
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
camunda-workflow-1.0.0 lib/camunda/signal.rb