Refactoring Bpmn/Workflow handling layer (3rd commit)

This commit is contained in:
Erik Amaru Ortiz
2014-02-03 19:37:50 -04:00
parent d2e991317f
commit 77a23e7714
18 changed files with 976 additions and 86 deletions

View File

@@ -14,6 +14,21 @@ require_once 'classes/model/om/BaseBpmnProcess.php';
*
* @package classes.model
*/
class BpmnProcess extends BaseBpmnProcess {
class BpmnProcess extends BaseBpmnProcess
{
public static function findAllByProUid($prjUid)
{
$c = new Criteria("workflow");
$c->add(BpmnProcessPeer::PRJ_UID, $prjUid);
return BpmnProcessPeer::doSelect($c);
}
// Overrides
public function toArray($type = BasePeer::TYPE_FIELDNAME)
{
return parent::toArray($type);
}
} // BpmnProcess