Variables disappearing when using signal events

Hello,

I have a problem dealing with variables and signal events.
I have 2 processes. In both i have a startEvent where i define a form variable ‘x’ which has some default value. In the first one i also have a listener on it which executes a java class where i send a signal event to the second process.

The second process starts, no problem. But i always get the error msg when xor gateway evaluates :
2022-02-24 10:25:45.269 ERROR 4116 — [aTaskExecutor-2] org.camunda.bpm.engine.context : ENGINE-16004 Exception while closing command context: Unknown property used in expression: ${x == 1}. Cause: Cannot resolve identifier ‘x’

But if i start the processes manually there is no problem, and the second process now finds the variable x.

Why is that with signal events? How can i overcome this behaviour?

Camunda: 4.4.0
Spring boot

Solved: sry over looked to use right syntax in message json:
{

“name”: “startSignal”,

“variables”: {

"x": {

  "value": 1

}

}

}