How to pass the dynamic signal variable

i need to made the communication between 2 processes like

parent process have the catch boundary signal event (ex:sinanalname(id:id)) and sub process receive the signal name from the java code and if that signal match the parent signal then only its exicute

my question is where i need to declare those variables in camunda ?