@@ 993-1009 (lines=17) @@ | ||
990 | * @return SplObjectStorage|StepInterface[] |
|
991 | * @throws \OldTown\Workflow\Exception\InternalWorkflowException |
|
992 | */ |
|
993 | public function getCurrentSteps($id) |
|
994 | { |
|
995 | try { |
|
996 | $store = $this->getPersistence(); |
|
997 | ||
998 | return $store->findCurrentSteps($id); |
|
999 | } catch (StoreException $e) { |
|
1000 | $errMsg = sprintf( |
|
1001 | 'Ошибка при проверке текущего шага для инстанса # %s', |
|
1002 | $id |
|
1003 | ); |
|
1004 | $this->getLog()->error($errMsg, [$e]); |
|
1005 | ||
1006 | ||
1007 | return []; |
|
1008 | } |
|
1009 | } |
|
1010 | ||
1011 | /** |
|
1012 | * |
|
@@ 1703-1718 (lines=16) @@ | ||
1700 | * @return StepInterface[] a List of Steps |
|
1701 | * @throws \OldTown\Workflow\Exception\InternalWorkflowException |
|
1702 | */ |
|
1703 | public function getHistorySteps($id) |
|
1704 | { |
|
1705 | try { |
|
1706 | $store = $this->getPersistence(); |
|
1707 | ||
1708 | return $store->findHistorySteps($id); |
|
1709 | } catch (StoreException $e) { |
|
1710 | $errMsg = sprintf( |
|
1711 | 'Ошибка при получение истории шагов для экземпляра workflow c id# %s', |
|
1712 | $id |
|
1713 | ); |
|
1714 | $this->getLog()->error($errMsg, [$e]); |
|
1715 | } |
|
1716 | ||
1717 | return []; |
|
1718 | } |
|
1719 | ||
1720 | /** |
|
1721 | * Настройки хранилища |
|
@@ 1740-1755 (lines=16) @@ | ||
1737 | * |
|
1738 | * @throws \OldTown\Workflow\Exception\InternalWorkflowException |
|
1739 | */ |
|
1740 | public function getPropertySet($id) |
|
1741 | { |
|
1742 | $ps = null; |
|
1743 | ||
1744 | try { |
|
1745 | $ps = $this->getPersistence()->getPropertySet($id); |
|
1746 | } catch (StoreException $e) { |
|
1747 | $errMsg = sprintf( |
|
1748 | 'Ошибка при получение PropertySet для экземпляра workflow c id# %s', |
|
1749 | $id |
|
1750 | ); |
|
1751 | $this->getLog()->error($errMsg, [$e]); |
|
1752 | } |
|
1753 | ||
1754 | return $ps; |
|
1755 | } |
|
1756 | ||
1757 | /** |
|
1758 | * @return \String[] |