In a Camunda proces I have this script in a User task:
<form role="form">
<script cam-script type="text/form-script">
camForm.on('form-loaded', function() {
camForm.variableManager.fetchVariable('Request');
});
camForm.on('variables-fetched', function() {
$scope.RequestJson = "{\n" + atob(camForm.variableManager.variableValue('Request')).split('\n').splice(1).join('\n');
});
</script>
<pre><code>{{ RequestJson }}</code></pre>
</form>
When viewing the form the data is correctly formatted as I want it, the data should not be edited in any way.
The form is part of an user-task, the user should see the data, do some stuff in other system and then Complete the task and the process should finish.
When I click the Complete button, I get an error: Cannot submit task form e6bf6b22-33df-11eb-951d-d0577b0fc0e4: ENGINE-17007 Cannot set variable with name Request. Java serialization format is prohibited
I know what the error means, but I don’t want it to serialize the data, I just want the process to complete/finish, the form-data is irrelevant. (this is the last step in the process)
How can I achieve this by editing the Form?