Hi
How can I value the description column of ACT_HI_TASKINST table?
Is this column filled by setting the documentation field for userTasks in BPMN?
Hi @rezza72 ,
Yes, task’s description holds the value supplied to documentation property.
This value can be set dynamically using expression.
@hassang
Thank you for the answer.
How can I change that value, when I set that dynamically?
I mean, from where can I change that?
Hi @rezza72,
If you mean to change it after task gets created then the only way is to update it using the task’s method setDescription
.
For example: This can be done from within task listener in which you have a reference to the DelegateTask object.
Hi again :))
I followed your guidelines and the value of the dynamic variable changed correctly in the camunda demo application.
But, I used the description column in the other service and I couldn’t see the changes.
Actually, it seems the variable doesn’t change.
How can I check this?
Hi @rezza72,
Can you please elaborate more…
Do you mean the value in the database is different from the one appears on Camunda web apps.
Can you please share your code and snips illustrated your issue.
@hassang
Yes exactly.
Please have a look:
This is the camunda web app:
and I can see what I expect.
and this is the description column for the Camunda’s database which I set that through my app:
As you can see, the description column has null values which cause me to see null values in my application when I use this column.
and this is my bpmn:
testModel.bpmn (11.4 KB)
I checked the ACT_HI_TASKINST
table through h2 which is for the Camunda itself.
And the description column also has null values.
Hi @rezza72,
_Description column has the value of an empty string. (It is not NULL)
I see that you are initializing reviewStatus variable to an empty string once the process gets started.
If reviewStatus value gets updated after the task gets created then definitely the description’s value wouldn’t get updated as the expression ${reviewStatus}
gets evaluated only on the task’s creation