Is it possible, within a microflow, to filter a list of entities by a date attribute, based on whether or not they are past a certain specific date? As far as I can tell, I can only find a filter option to filter for dates that are equal to a specific date, not before or after.
asked
Nicholas Colaprete
1 answers
1
Not in a Filter activity. I see 3 options:
If your data in stored in the database, you can retrieve via XPath with your specific date conditions
If your data is only in memory and you can’t commit it:
Sort your list by the date and then loop through it, adding to a new list until you pass the cutoff date, then break the loop
Write a few lines of java to filter the list according to your needs. In my opinion, this won’t be worth the effort as performance will be similar to the above.