Page 1 of 1

How to Assign Workflow Comment to User

PostPosted:Mon Jul 27, 2020 10:01 am
by duyvh0309
Hi all,

I'm trying to automatically add a comment to a workflow while it's running and whenever I add the comment it is posted by "null". I'm using the code
Anybody know how to assign a different user to the comment?

executionContext.getToken().addComment("Rev " + myrev + " approved.");

Thanks!

Re: How to Assign Workflow Comment to User

PostPosted:Mon Aug 03, 2020 11:31 am
by pavila
I would recommend adding comments as notes, so them will be more accesible to users.

Regards.

Re: How to Assign Workflow Comment to User

PostPosted:Wed Sep 23, 2020 7:41 pm
by pushtmp
duyvh0309 wrote: Mon Jul 27, 2020 10:01 am Hi all,

I'm trying to automatically add a comment to a workflow while it's running and whenever I add the comment it is posted by "null". I'm using the code
Anybody know how to assign a different user to the comment?

executionContext.getToken().addComment("Rev " + myrev + " approved.");

Thanks!
Hi buddy, use note, that will be better way to avoid errors.

Regards,
Joshua Genin