Hi ,
I am also trying in wf to get user comments on the promotion notice approve task but getting an exception in BGMS :
Caused by: java.lang.ClassCastException: class wt.workflow.engine.WfProcess cannot be cast to class wt.workflow.work.WfAssignedActivity (wt.workflow.engine.WfProcess and wt.workflow.work.WfAssignedActivity are in unnamed module of loader 'app')
Yes, these are not the same objects. The WF class structure is some of the most convoluted but has been around forever. I would create yourself a diagram to make sense of it. Post your method call since it might be you passed the wrong object. Are you executing workflow code in an expression?