Skip to main content
Feb 12, 2024 5:29 AM UTC
Solved

Post Select Validation Logic for Custom Action - Remove Objects

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?

 

Feb 12, 2024 8:09 AM UTC

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

Feb 12, 2024 8:09 AM UTC

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