Skip to main content
14-Alexandrite
February 12, 2024
Solved

Post Select Validation Logic for Custom Action - Remove Objects

  • February 12, 2024
  • 1 reply
  • 866 views

Hello All,

I have a requirement to add a custom action which will remove Objects in resulting Items table on 

wt.workflow.work.WorkItem -> Resulting Objects Table

Rohaan_1-1707715664679.png

I need help on how to apply Post Select Validation Logic to remove only required Object type from the Selected Objects in the Table?

 

Best answer by HelesicPetr

Hi @Rohaan 

Do you remove the objects from wizard table or review detail page?

if it is regular table in detail page you can use preProcess method to check if the correct types are selected. 

public FormResult preProcess(NmCommandBean nmCommandBean, List<ObjectBean> list) throws WTException

PetrH

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
February 12, 2024

Hi @Rohaan 

Do you remove the objects from wizard table or review detail page?

if it is regular table in detail page you can use preProcess method to check if the correct types are selected. 

public FormResult preProcess(NmCommandBean nmCommandBean, List<ObjectBean> list) throws WTException

PetrH