| @@ 1006-1022 (lines=17) @@ | ||
| 1003 | * @return SplObjectStorage|StepInterface[] |
|
| 1004 | * @throws \OldTown\Workflow\Exception\InternalWorkflowException |
|
| 1005 | */ |
|
| 1006 | public function getCurrentSteps($id) |
|
| 1007 | { |
|
| 1008 | try { |
|
| 1009 | $store = $this->getPersistence(); |
|
| 1010 | ||
| 1011 | return $store->findCurrentSteps($id); |
|
| 1012 | } catch (StoreException $e) { |
|
| 1013 | $errMsg = sprintf( |
|
| 1014 | 'Ошибка при проверке текущего шага для инстанса # %s', |
|
| 1015 | $id |
|
| 1016 | ); |
|
| 1017 | $this->getLog()->error($errMsg, [$e]); |
|
| 1018 | ||
| 1019 | ||
| 1020 | return []; |
|
| 1021 | } |
|
| 1022 | } |
|
| 1023 | ||
| 1024 | /** |
|
| 1025 | * |
|
| @@ 1755-1770 (lines=16) @@ | ||
| 1752 | * |
|
| 1753 | * @throws \OldTown\Workflow\Exception\InternalWorkflowException |
|
| 1754 | */ |
|
| 1755 | public function getPropertySet($id) |
|
| 1756 | { |
|
| 1757 | $ps = null; |
|
| 1758 | ||
| 1759 | try { |
|
| 1760 | $ps = $this->getPersistence()->getPropertySet($id); |
|
| 1761 | } catch (StoreException $e) { |
|
| 1762 | $errMsg = sprintf( |
|
| 1763 | 'Ошибка при получение PropertySet для экземпляра workflow c id# %s', |
|
| 1764 | $id |
|
| 1765 | ); |
|
| 1766 | $this->getLog()->error($errMsg, [$e]); |
|
| 1767 | } |
|
| 1768 | ||
| 1769 | return $ps; |
|
| 1770 | } |
|
| 1771 | ||
| 1772 | /** |
|
| 1773 | * @return \String[] |
|