From 9620a7bb34cf7c4a91a7af5cb344bec2fad84113 Mon Sep 17 00:00:00 2001 From: qronald Date: Fri, 3 Feb 2017 12:57:44 -0400 Subject: [PATCH 1/3] HOR-2642 --- workflow/engine/methods/setup/pluginsChange.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/engine/methods/setup/pluginsChange.php b/workflow/engine/methods/setup/pluginsChange.php index 9d5453157..a9b6c472c 100644 --- a/workflow/engine/methods/setup/pluginsChange.php +++ b/workflow/engine/methods/setup/pluginsChange.php @@ -93,8 +93,8 @@ if ($handle = opendir( PATH_PLUGINS )) { * Calls PMExtensionClass Builder to include Plugins changes. */ $config = Bootstrap::getSystemConfiguration(); - - if (!empty($config['experimental_features'])) { + $activeExperimentalFeatures = isset($config['experimental_features']) ? $config['experimental_features'] : true; + if ($activeExperimentalFeatures) { $phpBuilder = new ProcessMakerPhpBuilderHelper(); $phpBuilder->enabledExtensions = $oPluginRegistry->getEnabledPlugins(); if (!empty($phpBuilder->enabledExtensions)) { From fc7c3b6a2bacf5bc0a45c6f0745678d9f9b1366f Mon Sep 17 00:00:00 2001 From: qronald Date: Mon, 6 Feb 2017 13:37:20 -0400 Subject: [PATCH 2/3] up observations --- workflow/engine/methods/setup/pluginsChange.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/workflow/engine/methods/setup/pluginsChange.php b/workflow/engine/methods/setup/pluginsChange.php index a9b6c472c..687fa4ef8 100644 --- a/workflow/engine/methods/setup/pluginsChange.php +++ b/workflow/engine/methods/setup/pluginsChange.php @@ -92,16 +92,12 @@ if ($handle = opendir( PATH_PLUGINS )) { /** * Calls PMExtensionClass Builder to include Plugins changes. */ - $config = Bootstrap::getSystemConfiguration(); - $activeExperimentalFeatures = isset($config['experimental_features']) ? $config['experimental_features'] : true; - if ($activeExperimentalFeatures) { - $phpBuilder = new ProcessMakerPhpBuilderHelper(); - $phpBuilder->enabledExtensions = $oPluginRegistry->getEnabledPlugins(); - if (!empty($phpBuilder->enabledExtensions)) { - $phpBuilder->extension = true; - } - $phpBuilder->buildAll(); + $phpBuilder = new ProcessMakerPhpBuilderHelper(); + $phpBuilder->enabledExtensions = $oPluginRegistry->getEnabledPlugins(); + if (!empty($phpBuilder->enabledExtensions)) { + $phpBuilder->extension = true; } + $phpBuilder->buildAll(); } //$oPluginRegistry->showArrays(); From b9941b27213b01cf6accd3e847597e495abdabb0 Mon Sep 17 00:00:00 2001 From: dheeyi william Date: Fri, 10 Feb 2017 10:21:19 -0400 Subject: [PATCH 3/3] HOR-2657 [Mantis 22040] Intermediate email event after Gateway (Inclusive) is blocking cancel case option in the Action tab --- workflow/engine/classes/class.derivation.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/workflow/engine/classes/class.derivation.php b/workflow/engine/classes/class.derivation.php index 49791a13e..9b6975e59 100644 --- a/workflow/engine/classes/class.derivation.php +++ b/workflow/engine/classes/class.derivation.php @@ -1211,6 +1211,19 @@ class Derivation $this->case->closeAppThread( $currentDelegation['APP_UID'], $iAppThreadIndex ); break; default: + if ($nextDel['ROU_PREVIOUS_TYPE'] == 'SEC-JOIN') { + $criteria = new Criteria('workflow'); + $criteria->clearSelectColumns(); + $criteria->addSelectColumn(AppThreadPeer::APP_THREAD_PARENT); + $criteria->add(AppThreadPeer::APP_UID, $appFields['APP_UID']); + $criteria->add(AppThreadPeer::APP_THREAD_STATUS, 'OPEN'); + $criteria->add(AppThreadPeer::APP_THREAD_INDEX, $iAppThreadIndex); + $rsCriteria = AppThreadPeer::doSelectRS($criteria); + $rsCriteria->setFetchmode(ResultSet::FETCHMODE_ASSOC); + if ($rsCriteria->next()) { + $this->case->closeAppThread($currentDelegation['APP_UID'], $iAppThreadIndex); + } + } if ($currentDelegation['TAS_ASSIGN_TYPE'] == 'STATIC_MI' || $currentDelegation['TAS_ASSIGN_TYPE'] == 'CANCEL_MI') { $this->case->closeAppThread( $currentDelegation['APP_UID'], $iAppThreadIndex ); }