Filter the identity in workitem object during the workflow launch

Hi Team,

We had a requirement were we need to filter the workitem in the workflow, need to check if their are any open forms for the user. If user had any open forms the workflow should end, else it should enter to the next step in workflow. For this I was trying to filter workitem object based on the type as form but not able to filter the identity becasue identity is in the Attributes tag. Please find below sample workitem. Any suggestion like how i can overcome this problem?

In below workitem i need to filter the name=89675 attribute

Hi @Ramya2018

If you are looking to filter based on workflow assigned to you can leverage the owner available in Work item using the filter.

Filter.in("owner.name",<Name>)

If you are looking for the person the work item is for, you can try using workflow case and try checking targetName.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.