martinweiler opened a new issue, #7198:
URL: https://github.com/apache/incubator-kie/issues/7198

   Process variables not declared in the bpmn file are currently dropped from 
the payload. Consider this scenario which worked in earlier jBPM versions:
   1. Start a process instance with a payload that contains an undeclared 
variable:
   ```
   curl -X POST http://localhost:8080/TestProcess -H 'accept: */*' -H 
'Content-Type: application/json' -d '{  "myVar": "value passed in from outer 
space" }'
   ```
   2. Read the process variable inside the process (eg. a script task):
   ```
   kcontext.getVariable("myVar");
   ```
   
   Expected result:
   The variable should resolve to the value provided in the payload, and 
persisted such as any other variables.
   
   Current result:
   The variable is null.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to