Skip to main content

Get process instance by folio

  • 10 November 2022
  • 1 reply
  • 6 views

At runtime, I need to be able to check if a process instance is active with a specific folio (not necessarily assigned to the current user). At minimum, a true/false response is enough. Is there a way I can query for this in an efficient manner using system smartobjects?

 

Note: Calling a list method to return all process instances for a workflow and filtering is not an option since this specific workflow would have thousands of active instances and filtering on the result set is very inefficient.

There is a SmartObject under Workflow Reports -> Workflow General -> Process Instance that has a "List" method with a Folio parameter. If you specify the folio as a parameter (and not a filter) it should be pretty efficient. Please let me know if that ends up not being the case

Reply