Just yesterday i got a very unique error,
Variable content was trimmed as it was too long (more than 255 characters)
I can see that this error happens due to RHPAM saves the content of each object on database, but have a 255 character as limitation. And for this case, my object content length is more than 255 characters.
Workaround for this is we need to alter database generated by RHPAM and for example below, im changing it from 255 into 5000 characters.
alter table VariableInstanceLog modify column value varchar(5000); alter table VariableInstanceLog modify column oldValue varchar(5000);
And need to put below parameter runtime,
For a RHPAM deployment on Openshift, we can embed below parameters on RHPAM DeploymentConfig,
- name: JAVA_OPTS_APPEND value: '-Dorg.jbpm.var.log.length=5000'
Restart RHPAM, and we can see now RHPAM can handle object with length up to 5000 characters.