/**
  * Returns the number of related BpmnParticipants.
  *
  * @param      Criteria $criteria
  * @param      boolean $distinct
  * @param      Connection $con
  * @throws     PropelException
  */
 public function countBpmnParticipants($criteria = null, $distinct = false, $con = null)
 {
     // include the Peer class
     include_once 'classes/model/om/BaseBpmnParticipantPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(BpmnParticipantPeer::PRJ_UID, $this->getPrjUid());
     return BpmnParticipantPeer::doCount($criteria, $distinct, $con);
 }
 public static function exists($actUid)
 {
     $c = new Criteria("workflow");
     $c->add(BpmnParticipantPeer::PAR_UID, $actUid);
     return BpmnParticipantPeer::doCount($c) > 0 ? true : false;
 }