Workflows - Start workflow when Comment is created
I am developing a workflow to notify subscribers to a Domain when comments are entered on Assets within. Using the WorkflowBusinessItem bean I can get the uuid for the comment that was added, but using the call
commentApi.getComment(item.id)
results in an error saying "commentNotFound".
I believe this is because the action to create the comment hasn't been committed before the workflow is running. What is the setting I need on the workflow to make sure it runs after the comment was created?
donaldrau
Posted 1 year ago · Edited 1 year ago·Last reply 1 year ago
1 comment
donaldrau
OP1 year ago · EditedActually, I found the issue. I should have used:
commentApi.get(event.eventResourceId).
It's fixed now.