Skip to main content
13-Aquamarine
May 22, 2024
Question

Trying in wf to get user comments on the promotion notice approve task but getting an exception

  • May 22, 2024
  • 1 reply
  • 468 views

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')

1 reply

avillanueva
23-Emerald I
23-Emerald I
May 22, 2024

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?