Sha256: 858137f4c09cfc032f033c23c0a37db10cd0dc084e465af816f308b0487beb60

Contents?: true

Size: 656 Bytes

Versions: 14

Compression:

Stored size: 656 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
  collection_path 'signal'
  # 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]
    post_raw collection_path, hash
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
camunda-workflow-0.6.0 lib/camunda/signal.rb
camunda-workflow-0.5.0 lib/camunda/signal.rb
camunda-workflow-0.4.1 lib/camunda/signal.rb
camunda-workflow-0.4.0 lib/camunda/signal.rb
camunda-workflow-0.3.3 lib/camunda/signal.rb
camunda-workflow-0.3.2 lib/camunda/signal.rb
camunda-workflow-0.3.1 lib/camunda/signal.rb
camunda-workflow-0.3.0 lib/camunda/signal.rb
camunda-workflow-0.2.3 lib/camunda/signal.rb
camunda-workflow-0.2.2 lib/camunda/signal.rb
camunda-workflow-0.2.1 lib/camunda/signal.rb
camunda-workflow-0.2.0 lib/camunda/signal.rb
camunda-workflow-0.1.5 lib/camunda/signal.rb
camunda-workflow-0.1.4 lib/camunda/signal.rb