/**
  * @param Ezer_Case $case
  * @return Ezer_PropelBusinessProcessInstance
  */
 public function &createBusinessProcessInstance(Ezer_Case $case)
 {
     $ret = new Ezer_PropelBusinessProcessInstance();
     $ret->setProcessId($this->getId());
     $ret->setCaseId($case->getId());
     $ret->setStepId($this->getId());
     $ret->setName($this->getName());
     $ret->setVariables($case->getVariables());
     $ret->save();
     return $ret;
 }
 /**
  * @param Ezer_Case $case
  * @return Ezer_BusinessProcessInstance
  */
 public function &createBusinessProcessInstance(Ezer_Case $case)
 {
     $ret = new Ezer_BusinessProcessInstance($case->getVariables(), $this);
     return $ret;
 }
 /**
  * @param Ezer_Case $case
  * @return Ezer_BusinessProcessInstance
  */
 public function &createBusinessProcessInstance(Ezer_Case $case)
 {
     $instance_path = $this->instance_path . '/' . uniqid('inst') . '.xml';
     $ret = new Ezer_XmlBusinessProcessInstance($instance_path, $case->getVariables(), $this);
     return $ret;
 }