I wanted to schedule alert emails of particular workflow item failures, or items stuck for longer than a specific period in Inbox.
However for doing this, I wanted to gather the json stats for inbox with suitable params (eg- https://dpe.pwc.com/libs/cq/workflow/content/inbox/list.json?start=0&limit=1&filter-model=%2Fetc%2Fw... ) and feed that through json parser and email in specific format using java mail api.
Could you please advise me if there would be any other easier way of doing this, as particularly both the json parsing (extracting fields like- "startTime", "items","description", "title") and mailing configuration isn't quite giving me the expected results.
Please guide me through this, if particularly implemented by anyone at present (without using custom workflow or AEM email services)