6 Replies Latest reply on Aug 8, 2007 6:54 PM by Ronald van Kuijk

    Detecting Presence of ProcessInstance Without Exception?

    Geoffrey Wiseman Newbie

      If I call:

      graphSession.findLatestProcessDefinition(PROCESS_NAME)


      It throws a JbpmException if the process definition is not found.

      Since I prefer not to use exceptions for flow control, is there any way for me to check if a process definition exists in the database short of calling one of these methods (or something heavier-weight, like retrieving all process definitions and versions and iterating through them, which is probably worse for performance than an exception).