VariableInstanceLog table in BPM Suite 6 truncates process variable values if they go beyond 255 characters
Issue
- It has been observed that
VariableInstanceLogtable inBPMS 6.0.xtruncates process variable values if they go beyond255 characters; - The
ValueandOldValuecolumn inVARIABLEINSTANCELOGtable is of typeVARCHARwhich can hold value up to 32767 characters long (DB2). But our string length is 200,000. If we store 200,000 length character in the value column it is storing first 32767 character and the remaining characters are truncated because the datatype is VARCHAR and it can hold up to 32767; BPM Suite 6provides the followingREST APIto retrieve the process variables.
/business-central/rest/history/instance/xxx/variable/yyZZZ
However, when using the same API to retrieve a value of a process variable (of String type) the result is truncated on return. It does not cause the same issue for all the process variables, but rather those variables which store quite large String, even it seems to have a limitation for storing characters up to a limit of 255 characters.
We also see the following message in logs when we set a value with a length greater than 255 for a process variable:
WARN [org.jbpm.process.audit.VariableInstanceLog] (http-10.0.0.1:8080-2) Variable content was trimmed as it was too long (more than 255 characters)
Is there a workaround for this issue?
Environment
Red Hat JBoss BPM Suite 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
