Exemplo n.º 1
0
 /**
  * @param \Spryker\Zed\Oms\Business\Process\ProcessInterface $process
  *
  * @return void
  */
 public function drawClusters(ProcessInterface $process)
 {
     $processes = $process->getAllProcesses();
     foreach ($processes as $subProcess) {
         $group = $subProcess->getName();
         $attributes = $this->attributesProcess;
         $attributes['label'] = $group;
         $this->graph->addCluster($group, $attributes);
     }
 }
Exemplo n.º 2
0
 /**
  * @param array $states
  * @param \Spryker\Zed\Oms\Business\Process\ProcessInterface $process
  *
  * @return \Orm\Zed\Sales\Persistence\SpySalesOrderItem[]
  */
 protected function getOrderItemsByState(array $states, ProcessInterface $process)
 {
     return $this->queryContainer->querySalesOrderItemsByState($states, $process->getName())->find()->getData();
 }
Exemplo n.º 3
0
 /**
  * @param string $stateId
  * @param \Spryker\Zed\Oms\Business\Process\ProcessInterface $process
  *
  * @return \Spryker\Zed\Oms\Business\Process\StateInterface
  */
 protected function getStateFromProcess($stateId, ProcessInterface $process)
 {
     if (!isset($this->stateIdToModelBuffer[$stateId])) {
         $this->stateIdToModelBuffer[$stateId] = $process->getStateFromAllProcesses($stateId);
     }
     return $this->stateIdToModelBuffer[$stateId];
 }