-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
7.14.6, 7.15.1
-
None
Environment (Required on creation):
Reproduced on Automation Platform 7.16.0-SNAPSHOT and Apache Tomcat 9.0.43 distribution via Arquillian.
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
Steps to reproduce (Required on creation):
- Deploy a process application with a custom java class org.pa.MyPojo and a process with a waiting state
- Start a process instance
- In Cockpit, set a variable foo via batch operation to the previously started process instance with the following properties:
- Type: Object
- Object Type Name: org.pa.MyPojo
- Format: application/json
- Value: {"name": "myName", "prio": 5}
Observed Behavior (Required on creation):
The batch operation cannot complete with the following exception:
Cannot deserialize object in variable 'foo': SPIN/JACKSON-JSON-01007 Cannot construct java type from string 'org.pa.MyPojo'
See the full exception-stack-trace.txt.
Expected behavior (Required on creation):
The batch operation completes successfully.
Root Cause (Required on prioritization):
The variable foo is deserialized in BatchSetVariablesHandler. However, in this context the org.pa.MyPojo class is not accessible.
Solution Ideas (Optional):
- Don't deserialize variable in BatchSetVariablesHandler; instead, retrieve the serialized value from the database and set it to the process instance
- Switch into the context of the process application