cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the message and description information of the workflow

rock_tu
Champ on-the-rise
Champ on-the-rise
Hello All
I faced a problem,the problem describes as follows:
At first when I started a review and approve workflow,In the message field ,I input "please review and approve…",at last I clicked the button started the workflow,
In the my task page,the review and approve workflow that I have been started, the message and description information was "please review and approve…"
Second I edited the task and clicked the approve button,In the my task page,I found that the message and description information became "the document have been reviewed and approved",if I clicked the reject button,In the my task page,the message and description information became "the document have been reviewed and rejected" now I want to keep the message and description information as "please review and approve…" still,no matter whether the task was approved or rejected ,How I can do? Any one can give me a idea?thanks a lot!
3 REPLIES 3

kavilash23
Champ on-the-rise
Champ on-the-rise
Hello,

You need to use a listener to keep track of that comment such as on completion of the each task do the following

execution.setVariable('bpm_comment', task.getVariable('bpm_comment'));

Hope this helps.

Thanks your answer,I did that what you said,but it didn't work,I found that the bpm:comment properties is null,could you tell me why?thank you very much!!

rock_tu
Champ on-the-rise
Champ on-the-rise
Thank you very much!!