Approval Workflow Delegation Filter Logic

You will use a Workflow Delegation Filter logic when you need to:

When the Logic Is Called

  • From the user input field – automatically by the system when the user opens the user picker on the Delegation page.

Logic API

  • Logic Nature: wdUserFilter

    • Logic Type: Calculation/Pricing

  • Execution Types:

    • Standard – To calculate the filters to be used in the user picker.

  • Information provided to the logic:

    • No additional special info provided

  • Expected logic execution outcome:

    • From Standard mode execution:

      • The system will collect results from those logic elements which return an object of the type Filter – using only field names from the User table. All those filters will be placed to a List and such List<Filter> will be used as a result of the logic.

      • Note that the Display Mode is ignored in this logic.

      • Result values of those elements which return other type than Filter are ignored.

      • If the logic fails with an exception, no filter will be used.

Code Sample

Logic with nature wdUserFilter filtering by loginName:

def users = ["loginOfUser1", "loginOfUser2", "loginOfUser3"] return Filter.in("loginName", users)

 

To understand fields available for User, see User in Groovy API.

 

Found an issue in documentation? Write to us.