Skip to main content
15-Moonstone
August 4, 2016
Question

Getting Routing choices from a Work Item

  • August 4, 2016
  • 1 reply
  • 3336 views

Is there a way to get this routing choices from an user work item. I do not see any api to get routing choices before the work item is completed. It appears that they are generated dynamically. Any ideas?

2016-08-04_8-46-45.gif

I appreciate any help.

thanks.

1 reply

16-Pearl
August 8, 2016

Hi Preeti,

Can you try following API to check if you get the routing list.

    ObjectIdentifier oid= ObjectIdentifier.newObjectIdentifier("wt.workflow.work.WorkItem:xxxxxx");

  wt.workflow.work.WorkItem work=(WorkItem) PersistenceHelper.manager.refresh(oid);

  WfActivity activity = (WfActivity)(work.getSource().getObject());

  System.out.println(activity.getUserEventList());

15-Moonstone
August 8, 2016

Thanks Bhushan for your help. I found it already. It was just tedious to get to this api. 🙂

Preeti

16-Pearl
August 8, 2016

Hi Preeti,

Yes, the dataUtility on this page gets the routing options from the commandBean and it is not easy to figure out how the bean gets populated with the values. Can you share your findings or mark if the above API worked for you.

Regards,

Bhushan