Sending a signal using api

I want to be able to use a service task implementing a http-connector to trigger a signal event in a different Camunda Engine.

I have got that working by sending the name of the signal in the payload as in the screenshot

However if I want to send any variables or even all of them, I cannot seem to be able to to do it.

I’ve tried the following payload examples.

{“name”:“Throw_a_signal”, “variables”:{“weather”:“cloudy”}}

and even

{“name”:“Throw_a_signal”, “variables”:{ Variables.getAll() }

but these fail to trigger the Signal Catch event, so there must be a problem.

Any ideas?

Can you post the bpmn files of both processes? The body of the REST API does not seem right and that could be the cause, see: https://docs.camunda.org/manual/7.12/reference/rest/signal/post-signal/ The example there shows:

{
  "name": "policy_conditions_changed",
  "variables": {
    "newTimePeriodInMonth": {
      "value": 24
    }
  }
}

Joe