Merge remote-tracking branch 'upstream/3.0.1.6-Gmail' into 3.0.1.6-Gmail
This commit is contained in:
@@ -1973,6 +1973,7 @@ class Cases
|
|||||||
public function CloseCurrentDelegation($sAppUid, $iDelIndex)
|
public function CloseCurrentDelegation($sAppUid, $iDelIndex)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$oApplication = ApplicationPeer::retrieveByPk($sAppUid);
|
||||||
$c = new Criteria();
|
$c = new Criteria();
|
||||||
$c->add(AppDelegationPeer::APP_UID, $sAppUid);
|
$c->add(AppDelegationPeer::APP_UID, $sAppUid);
|
||||||
$c->add(AppDelegationPeer::DEL_INDEX, $iDelIndex);
|
$c->add(AppDelegationPeer::DEL_INDEX, $iDelIndex);
|
||||||
@@ -1991,6 +1992,18 @@ class Cases
|
|||||||
}
|
}
|
||||||
throw (new PropelException('The row cannot be created!', new PropelException($msg)));
|
throw (new PropelException('The row cannot be created!', new PropelException($msg)));
|
||||||
}
|
}
|
||||||
|
$taskNext = TaskPeer::retrieveByPK($appDel->getTasUid());
|
||||||
|
if($taskNext->getTasType() == 'NORMAL'){
|
||||||
|
if($oApplication->getAppStatus() == "DRAFT"){
|
||||||
|
$sUserUid = $appDel->getUsrUid();
|
||||||
|
$users = new Users();
|
||||||
|
$users->refreshTotal($sUserUid, "remove", "draft");
|
||||||
|
}else{
|
||||||
|
$sUserUid = $appDel->getUsrUid();
|
||||||
|
$users = new Users();
|
||||||
|
$users->refreshTotal($sUserUid, "remove", "inbox");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
$inbox = new ListInbox();
|
$inbox = new ListInbox();
|
||||||
|
|||||||
@@ -630,6 +630,99 @@ class Derivation
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Throw Events for the Case
|
||||||
|
*
|
||||||
|
* @param string $elementOriginUid Unique id of Element Origin (unique id of Task)
|
||||||
|
* @param string $elementDestUid Unique id of Element Destination (unique id of Task)
|
||||||
|
* @param array $arrayApplicationData Case data
|
||||||
|
* @param bool $flagEventExecuteBeforeGateway Execute event before gateway
|
||||||
|
* @param bool $flagEventExecuteAfterGateway Execute event after gateway
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
private function throwEventsBetweenElementOriginAndElementDest($elementOriginUid, $elementDestUid, array $arrayApplicationData, $flagEventExecuteBeforeGateway = true, $flagEventExecuteAfterGateway = true)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
//Verify if the Project is BPMN
|
||||||
|
$bpmn = new \ProcessMaker\Project\Bpmn();
|
||||||
|
|
||||||
|
if (!$bpmn->exists($arrayApplicationData["PRO_UID"])) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Element origin and dest
|
||||||
|
$elementTaskRelation = new \ProcessMaker\BusinessModel\ElementTaskRelation();
|
||||||
|
|
||||||
|
$arrayElement = [
|
||||||
|
"elementOrigin" => ["uid" => $elementOriginUid, "type" => "bpmnActivity"],
|
||||||
|
"elementDest" => ["uid" => $elementDestUid, "type" => "bpmnActivity"]
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($arrayElement as $key => $value) {
|
||||||
|
$arrayElementTaskRelationData = $elementTaskRelation->getElementTaskRelationWhere(
|
||||||
|
[
|
||||||
|
ElementTaskRelationPeer::PRJ_UID => $arrayApplicationData["PRO_UID"],
|
||||||
|
ElementTaskRelationPeer::ELEMENT_TYPE => "bpmnEvent",
|
||||||
|
ElementTaskRelationPeer::TAS_UID => $arrayElement[$key]["uid"]
|
||||||
|
],
|
||||||
|
true
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!is_null($arrayElementTaskRelationData)) {
|
||||||
|
$arrayElement[$key]["uid"] = $arrayElementTaskRelationData["ELEMENT_UID"];
|
||||||
|
$arrayElement[$key]["type"] = "bpmnEvent";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$elementOriginUid = $arrayElement["elementOrigin"]["uid"];
|
||||||
|
$elementOriginType = $arrayElement["elementOrigin"]["type"];
|
||||||
|
$elementDestUid = $arrayElement["elementDest"]["uid"];
|
||||||
|
$elementDestType = $arrayElement["elementDest"]["type"];
|
||||||
|
|
||||||
|
//Throw Events
|
||||||
|
$messageApplication = new \ProcessMaker\BusinessModel\MessageApplication();
|
||||||
|
$emailEvent = new \ProcessMaker\BusinessModel\EmailEvent();
|
||||||
|
|
||||||
|
$arrayEventExecute = ["BEFORE" => $flagEventExecuteBeforeGateway, "AFTER" => $flagEventExecuteAfterGateway];
|
||||||
|
$positionEventExecute = "BEFORE";
|
||||||
|
|
||||||
|
$arrayElement = $bpmn->getElementsBetweenElementOriginAndElementDest(
|
||||||
|
$elementOriginUid,
|
||||||
|
$elementOriginType,
|
||||||
|
$elementDestUid,
|
||||||
|
$elementDestType
|
||||||
|
);
|
||||||
|
|
||||||
|
foreach ($arrayElement as $value) {
|
||||||
|
switch ($value[1]) {
|
||||||
|
case "bpmnEvent":
|
||||||
|
if ($arrayEventExecute[$positionEventExecute]) {
|
||||||
|
$event = \BpmnEventPeer::retrieveByPK($value[0]);
|
||||||
|
|
||||||
|
if (!is_null($event)) {
|
||||||
|
if (preg_match("/^(?:END|INTERMEDIATE)$/", $event->getEvnType()) && $event->getEvnMarker() == "MESSAGETHROW") {
|
||||||
|
//Message-Application throw
|
||||||
|
$result = $messageApplication->create($arrayApplicationData["APP_UID"], $arrayApplicationData["PRO_UID"], $value[0], $arrayApplicationData);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (preg_match("/^(?:END|INTERMEDIATE)$/", $event->getEvnType()) && $event->getEvnMarker() == "EMAIL") {
|
||||||
|
//Email-Event throw
|
||||||
|
$result = $emailEvent->sendEmail($arrayApplicationData["APP_UID"], $arrayApplicationData["PRO_UID"], $value[0], $arrayApplicationData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "bpmnGateway":
|
||||||
|
$positionEventExecute = "AFTER";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update counters
|
* Update counters
|
||||||
*
|
*
|
||||||
@@ -653,9 +746,9 @@ class Derivation
|
|||||||
$application = ApplicationPeer::retrieveByPK($arrayApplicationData["APP_UID"]);
|
$application = ApplicationPeer::retrieveByPK($arrayApplicationData["APP_UID"]);
|
||||||
|
|
||||||
if ($application->getAppStatus() == "DRAFT") {
|
if ($application->getAppStatus() == "DRAFT") {
|
||||||
$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "draft");
|
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "draft");
|
||||||
} else {
|
} else {
|
||||||
$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "inbox");
|
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "inbox");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($arrayNextDelegationData["TAS_UID"] != "-1") {
|
if ($arrayNextDelegationData["TAS_UID"] != "-1") {
|
||||||
@@ -683,9 +776,9 @@ class Derivation
|
|||||||
$application = ApplicationPeer::retrieveByPK($arrayApplicationData["APP_UID"]);
|
$application = ApplicationPeer::retrieveByPK($arrayApplicationData["APP_UID"]);
|
||||||
|
|
||||||
if ($application->getAppStatus() == "DRAFT") {
|
if ($application->getAppStatus() == "DRAFT") {
|
||||||
$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "draft");
|
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "draft");
|
||||||
} else {
|
} else {
|
||||||
$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "inbox");
|
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "inbox");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -694,9 +787,9 @@ class Derivation
|
|||||||
$application = ApplicationPeer::retrieveByPK($arrayApplicationData["APP_UID"]);
|
$application = ApplicationPeer::retrieveByPK($arrayApplicationData["APP_UID"]);
|
||||||
|
|
||||||
if ($application->getAppStatus() == "DRAFT") {
|
if ($application->getAppStatus() == "DRAFT") {
|
||||||
$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "draft");
|
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "draft");
|
||||||
} else {
|
} else {
|
||||||
$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "inbox");
|
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "inbox");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -728,9 +821,6 @@ class Derivation
|
|||||||
|
|
||||||
$this->case = new cases();
|
$this->case = new cases();
|
||||||
|
|
||||||
$messageApplication = new \ProcessMaker\BusinessModel\MessageApplication();
|
|
||||||
$emailEvent = new \ProcessMaker\BusinessModel\EmailEvent();
|
|
||||||
|
|
||||||
//Get data for this DEL_INDEX current
|
//Get data for this DEL_INDEX current
|
||||||
$appFields = $this->case->loadCase( $currentDelegation['APP_UID'], $currentDelegation['DEL_INDEX'] );
|
$appFields = $this->case->loadCase( $currentDelegation['APP_UID'], $currentDelegation['DEL_INDEX'] );
|
||||||
|
|
||||||
@@ -811,19 +901,13 @@ class Derivation
|
|||||||
$this->case->closeAllThreads( $currentDelegation['APP_UID'] );
|
$this->case->closeAllThreads( $currentDelegation['APP_UID'] );
|
||||||
//I think we need to change the APP_STATUS to completed,
|
//I think we need to change the APP_STATUS to completed,
|
||||||
|
|
||||||
//BpmnEvent - END-MESSAGE-EVENT, END-EMAIL-EVENT
|
//BpmnEvent
|
||||||
if (isset($nextDel["TAS_UID_DUMMY"])) {
|
if (isset($nextDel["TAS_UID_DUMMY"])) {
|
||||||
$taskDummy = TaskPeer::retrieveByPK($nextDel["TAS_UID_DUMMY"]);
|
$taskDummy = TaskPeer::retrieveByPK($nextDel["TAS_UID_DUMMY"]);
|
||||||
|
|
||||||
switch ($taskDummy->getTasType()) {
|
if (preg_match("/^(?:END-MESSAGE-EVENT|END-EMAIL-EVENT)$/", $taskDummy->getEvnType())) {
|
||||||
case "END-MESSAGE-EVENT":
|
//Throw Events
|
||||||
//Throw Message-Events - BpmnEvent - END-MESSAGE-EVENT
|
$this->throwEventsBetweenElementOriginAndElementDest($currentDelegation["TAS_UID"], $nextDel["TAS_UID_DUMMY"], $appFields, $flagFirstIteration, true);
|
||||||
$messageApplication->throwMessageEventBetweenElementOriginAndElementDest($currentDelegation["TAS_UID"], $nextDel["TAS_UID_DUMMY"], $appFields, $flagFirstIteration, true);
|
|
||||||
break;
|
|
||||||
case "END-EMAIL-EVENT":
|
|
||||||
//Throw Email-Events - BpmnEvent - END-EMAIL-EVENT
|
|
||||||
$emailEvent->emailEventBetweenElementOriginAndElementDest($currentDelegation["TAS_UID"], $nextDel["TAS_UID_DUMMY"], $appFields, $flagFirstIteration, true);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -881,11 +965,8 @@ class Derivation
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($canDerivate) {
|
if ($canDerivate) {
|
||||||
//Throw Message-Events
|
//Throw Events
|
||||||
$messageApplication->throwMessageEventBetweenElementOriginAndElementDest($currentDelegation["TAS_UID"], $nextDel["TAS_UID"], $appFields, $flagFirstIteration, true);
|
$this->throwEventsBetweenElementOriginAndElementDest($currentDelegation["TAS_UID"], $nextDel["TAS_UID"], $appFields, $flagFirstIteration, true);
|
||||||
|
|
||||||
//Throw Email-Events
|
|
||||||
$emailEvent->emailEventBetweenElementOriginAndElementDest($currentDelegation["TAS_UID"], $nextDel["TAS_UID"], $appFields, $flagFirstIteration, true);
|
|
||||||
|
|
||||||
//Derivate
|
//Derivate
|
||||||
$aSP = (isset($aSP))? $aSP : null;
|
$aSP = (isset($aSP))? $aSP : null;
|
||||||
@@ -990,11 +1071,8 @@ class Derivation
|
|||||||
|
|
||||||
switch ($routeType) {
|
switch ($routeType) {
|
||||||
case 'SEC-JOIN':
|
case 'SEC-JOIN':
|
||||||
//Throw Message-Events
|
//Throw Events
|
||||||
$messageApplication->throwMessageEventBetweenElementOriginAndElementDest($currentDelegation["TAS_UID"], $nextDel["TAS_UID"], $appFields, $flagFirstIteration, false);
|
$this->throwEventsBetweenElementOriginAndElementDest($currentDelegation["TAS_UID"], $nextDel["TAS_UID"], $appFields, $flagFirstIteration, false);
|
||||||
|
|
||||||
//Throw Email-Events
|
|
||||||
$emailEvent->emailEventBetweenElementOriginAndElementDest($currentDelegation["TAS_UID"], $nextDel["TAS_UID"], $appFields, $flagFirstIteration, false);
|
|
||||||
|
|
||||||
//Close thread
|
//Close thread
|
||||||
$this->case->closeAppThread( $currentDelegation['APP_UID'], $iAppThreadIndex );
|
$this->case->closeAppThread( $currentDelegation['APP_UID'], $iAppThreadIndex );
|
||||||
|
|||||||
@@ -537,6 +537,12 @@ class pmDynaform
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (isset($json->options) && isset($json->options[0])) {
|
||||||
|
$data[$json->variable === "" ? $json->id : $json->variable] = $json->options[0]->value;
|
||||||
|
}
|
||||||
|
if (isset($json->placeholder) && $json->placeholder !== "") {
|
||||||
|
$data[$json->variable === "" ? $json->id : $json->variable] = $json->placeholder;
|
||||||
|
}
|
||||||
if (isset($json->defaultValue) && $json->defaultValue !== "") {
|
if (isset($json->defaultValue) && $json->defaultValue !== "") {
|
||||||
$data[$json->variable === "" ? $json->id : $json->variable] = $json->defaultValue;
|
$data[$json->variable === "" ? $json->id : $json->variable] = $json->defaultValue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -751,7 +751,7 @@ class AdditionalTables extends BaseAdditionalTables
|
|||||||
} else {
|
} else {
|
||||||
// grids
|
// grids
|
||||||
foreach ($caseData[$dKey] as $dIndex => $dRow) {
|
foreach ($caseData[$dKey] as $dIndex => $dRow) {
|
||||||
if (!is_array($dRow)) {
|
if (is_array($dRow)) {
|
||||||
foreach ($dRow as $k => $v) {
|
foreach ($dRow as $k => $v) {
|
||||||
if (trim($v) === '') {
|
if (trim($v) === '') {
|
||||||
$caseData[$dKey][$dIndex][$k] = null;
|
$caseData[$dKey][$dIndex][$k] = null;
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ class ListCompleted extends BaseListCompleted
|
|||||||
$dataset->next();
|
$dataset->next();
|
||||||
$aRow = $dataset->getRow();
|
$aRow = $dataset->getRow();
|
||||||
if ($aRow['TAS_TYPE'] != 'SUBPROCESS') {
|
if ($aRow['TAS_TYPE'] != 'SUBPROCESS') {
|
||||||
$users->refreshTotal($data['USR_UID'], 'remove', 'inbox');
|
//$users->refreshTotal($data['USR_UID'], 'remove', 'inbox');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$criteria = new Criteria();
|
$criteria = new Criteria();
|
||||||
@@ -125,9 +125,9 @@ class ListCompleted extends BaseListCompleted
|
|||||||
$dataset = SubApplicationPeer::doSelectRS($criteria);
|
$dataset = SubApplicationPeer::doSelectRS($criteria);
|
||||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||||
if ($dataset->next()) {
|
if ($dataset->next()) {
|
||||||
$users->refreshTotal($data['USR_UID'], 'remove', 'inbox');
|
//$users->refreshTotal($data['USR_UID'], 'remove', 'inbox');
|
||||||
} else {
|
} else {
|
||||||
$users->refreshTotal($data['USR_UID'], 'remove', 'draft');
|
//$users->refreshTotal($data['USR_UID'], 'remove', 'draft');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -324,12 +324,12 @@ class ListInbox extends BaseListInbox
|
|||||||
$criteria->add( SubApplicationPeer::APP_UID, $data['APP_UID'], Criteria::EQUAL );
|
$criteria->add( SubApplicationPeer::APP_UID, $data['APP_UID'], Criteria::EQUAL );
|
||||||
$dataset = SubApplicationPeer::doSelectRS($criteria);
|
$dataset = SubApplicationPeer::doSelectRS($criteria);
|
||||||
if ($dataset->next()) {
|
if ($dataset->next()) {
|
||||||
$users->refreshTotal($delPreviusUsrUid, 'remove', 'inbox');
|
//$users->refreshTotal($delPreviusUsrUid, 'remove', 'inbox');
|
||||||
} else {
|
} else {
|
||||||
$users->refreshTotal($delPreviusUsrUid, 'remove', 'draft');
|
//$users->refreshTotal($delPreviusUsrUid, 'remove', 'draft');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$users->refreshTotal($delPreviusUsrUid, 'remove', 'inbox');
|
//$users->refreshTotal($delPreviusUsrUid, 'remove', 'inbox');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!$isSelfService) {
|
if (!$isSelfService) {
|
||||||
@@ -341,9 +341,9 @@ class ListInbox extends BaseListInbox
|
|||||||
$users->refreshTotal($data['USR_UID'], 'add', 'inbox');
|
$users->refreshTotal($data['USR_UID'], 'add', 'inbox');
|
||||||
}
|
}
|
||||||
if ($dataPreviusApplication['APP_STATUS'] == 'DRAFT') {
|
if ($dataPreviusApplication['APP_STATUS'] == 'DRAFT') {
|
||||||
$users->refreshTotal($dataPreviusApplication['CURRENT_USER_UID'], 'remove', 'draft');
|
//$users->refreshTotal($dataPreviusApplication['CURRENT_USER_UID'], 'remove', 'draft');
|
||||||
} else {
|
} else {
|
||||||
$users->refreshTotal($dataPreviusApplication['CURRENT_USER_UID'], 'remove', 'inbox');
|
//$users->refreshTotal($dataPreviusApplication['CURRENT_USER_UID'], 'remove', 'inbox');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self::create($data, $isSelfService);
|
self::create($data, $isSelfService);
|
||||||
|
|||||||
@@ -216,11 +216,8 @@ if ($flagExecuteBeforeTriggers) {
|
|||||||
|
|
||||||
if (! isset( $_SESSION['_NO_EXECUTE_TRIGGERS_'] )) {
|
if (! isset( $_SESSION['_NO_EXECUTE_TRIGGERS_'] )) {
|
||||||
//Execute before triggers - Start
|
//Execute before triggers - Start
|
||||||
if (!isset($_SESSION['beforeTriggersExecuted']) || $_GET['POSITION'] > 1) {
|
if (!isset($_SESSION['beforeTriggersExecuted']) || $triggers) {
|
||||||
$oStep = $oStep->loadByProcessTaskPosition( $_SESSION['PROCESS'], $_SESSION['TASK'], $_GET['POSITION'] );
|
$Fields['APP_DATA'] = $oCase->ExecuteTriggers( $_SESSION['TASK'], $_GET['TYPE'], $_GET['UID'], 'BEFORE', $Fields['APP_DATA'] );
|
||||||
if($oStep) {
|
|
||||||
$Fields['APP_DATA'] = $oCase->ExecuteTriggers( $_SESSION['TASK'], $oStep->getStepTypeObj(), $oStep->getStepUidObj(), 'BEFORE', $Fields['APP_DATA'] );
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
unset($_SESSION['beforeTriggersExecuted']);
|
unset($_SESSION['beforeTriggersExecuted']);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ if (PMLicensedFeatures
|
|||||||
$record['APP_UID'] = $_REQUEST['APP_UID'];
|
$record['APP_UID'] = $_REQUEST['APP_UID'];
|
||||||
$record['DEL_INDEX'] = $_REQUEST['DEL_INDEX'];
|
$record['DEL_INDEX'] = $_REQUEST['DEL_INDEX'];
|
||||||
$record['ABER'] = $_REQUEST['ABER'];
|
$record['ABER'] = $_REQUEST['ABER'];
|
||||||
|
$record['APP_DATA'] = $caseFields['APP_DATA'];
|
||||||
if (is_null($caseFields['DEL_FINISH_DATE'])) {
|
if (is_null($caseFields['DEL_FINISH_DATE'])) {
|
||||||
$a = new pmDynaform($record);
|
$a = new pmDynaform($record);
|
||||||
$a->printABE($action,$record);
|
$a->printABE($action,$record);
|
||||||
|
|||||||
@@ -93,7 +93,6 @@ if (PMLicensedFeatures
|
|||||||
$dataResponses['ABE_RES_MESSAGE'] = '';
|
$dataResponses['ABE_RES_MESSAGE'] = '';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
set_include_path(PATH_PLUGINS . 'actionsByEmail' . PATH_SEPARATOR . get_include_path());
|
|
||||||
require_once 'classes/model/AbeResponses.php';
|
require_once 'classes/model/AbeResponses.php';
|
||||||
|
|
||||||
$abeAbeResponsesInstance = new AbeResponses();
|
$abeAbeResponsesInstance = new AbeResponses();
|
||||||
|
|||||||
@@ -393,94 +393,6 @@ class EmailEvent
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Email-event for the Case
|
|
||||||
*
|
|
||||||
* @param string $elementOriginUid Unique id of Element Origin (unique id of Task)
|
|
||||||
* @param string $elementDestUid Unique id of Element Dest (unique id of Task)
|
|
||||||
* @param array $arrayApplicationData Case data
|
|
||||||
* @param bool $flagEventExecuteBeforeGateway Execute event before gateway
|
|
||||||
* @param bool $flagEventExecuteAfterGateway Execute event after gateway
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function emailEventBetweenElementOriginAndElementDest($elementOriginUid, $elementDestUid, array $arrayApplicationData, $flagEventExecuteBeforeGateway = true, $flagEventExecuteAfterGateway = true)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
//Verify if the Project is BPMN
|
|
||||||
$bpmn = new \ProcessMaker\Project\Bpmn();
|
|
||||||
|
|
||||||
if (!$bpmn->exists($arrayApplicationData["PRO_UID"])) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
//Element origin and dest
|
|
||||||
$elementTaskRelation = new \ProcessMaker\BusinessModel\ElementTaskRelation();
|
|
||||||
|
|
||||||
$arrayElement = array(
|
|
||||||
"elementOrigin" => array("uid" => $elementOriginUid, "type" => "bpmnActivity"),
|
|
||||||
"elementDest" => array("uid" => $elementDestUid, "type" => "bpmnActivity")
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach ($arrayElement as $key => $value) {
|
|
||||||
$arrayElementTaskRelationData = $elementTaskRelation->getElementTaskRelationWhere(
|
|
||||||
array(
|
|
||||||
\ElementTaskRelationPeer::PRJ_UID => $arrayApplicationData["PRO_UID"],
|
|
||||||
\ElementTaskRelationPeer::ELEMENT_TYPE => "bpmnEvent",
|
|
||||||
\ElementTaskRelationPeer::TAS_UID => $arrayElement[$key]["uid"]
|
|
||||||
),
|
|
||||||
true
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!is_null($arrayElementTaskRelationData)) {
|
|
||||||
$arrayElement[$key]["uid"] = $arrayElementTaskRelationData["ELEMENT_UID"];
|
|
||||||
$arrayElement[$key]["type"] = "bpmnEvent";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$elementOriginUid = $arrayElement["elementOrigin"]["uid"];
|
|
||||||
$elementOriginType = $arrayElement["elementOrigin"]["type"];
|
|
||||||
$elementDestUid = $arrayElement["elementDest"]["uid"];
|
|
||||||
$elementDestType = $arrayElement["elementDest"]["type"];
|
|
||||||
|
|
||||||
//Throw Email-Events
|
|
||||||
$arrayEventType = array("END", "INTERMEDIATE");
|
|
||||||
$arrayEventMarker = array("EMAIL");
|
|
||||||
|
|
||||||
$arrayEventExecute = array("BEFORE" => $flagEventExecuteBeforeGateway, "AFTER" => $flagEventExecuteAfterGateway);
|
|
||||||
$positionEventExecute = "BEFORE";
|
|
||||||
|
|
||||||
$arrayElement = $bpmn->getElementsBetweenElementOriginAndElementDest(
|
|
||||||
$elementOriginUid,
|
|
||||||
$elementOriginType,
|
|
||||||
$elementDestUid,
|
|
||||||
$elementDestType
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach ($arrayElement as $value) {
|
|
||||||
switch ($value[1]) {
|
|
||||||
case "bpmnEvent":
|
|
||||||
$event = \BpmnEventPeer::retrieveByPK($value[0]);
|
|
||||||
|
|
||||||
if (!is_null($event) &&
|
|
||||||
in_array($event->getEvnType(), $arrayEventType) && in_array($event->getEvnMarker(), $arrayEventMarker)
|
|
||||||
) {
|
|
||||||
if ($arrayEventExecute[$positionEventExecute]) {
|
|
||||||
//Email-Event throw
|
|
||||||
$result = $this->sendEmail($arrayApplicationData["APP_UID"], $arrayApplicationData["PRO_UID"], $value[0], $arrayApplicationData);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case "bpmnGateway":
|
|
||||||
$positionEventExecute = "AFTER";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
throw $e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Email-event do function
|
* Email-event do function
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class Light
|
|||||||
foreach ($processList[$key] as $keyChild => $processInfoChild) {
|
foreach ($processList[$key] as $keyChild => $processInfoChild) {
|
||||||
$webEntryEventStart = $webEntryEvent->getWebEntryEvents($processInfoChild['pro_uid']);
|
$webEntryEventStart = $webEntryEvent->getWebEntryEvents($processInfoChild['pro_uid']);
|
||||||
if(empty($webEntryEventStart)){
|
if(empty($webEntryEventStart)){
|
||||||
$tempTreeChild['text'] = htmlentities($keyChild, ENT_QUOTES, 'UTF-8'); //ellipsis ( $keyChild, 50 );
|
$tempTreeChild['text'] = $keyChild; //ellipsis ( $keyChild, 50 );
|
||||||
$tempTreeChild['processId'] = $processInfoChild['pro_uid'];
|
$tempTreeChild['processId'] = $processInfoChild['pro_uid'];
|
||||||
$tempTreeChild['taskId'] = $processInfoChild['uid'];
|
$tempTreeChild['taskId'] = $processInfoChild['uid'];
|
||||||
$forms = $task->getSteps($processInfoChild['uid']);
|
$forms = $task->getSteps($processInfoChild['uid']);
|
||||||
@@ -405,10 +405,10 @@ class Light
|
|||||||
|
|
||||||
$triggers = $oCase->loadTriggers( $tas_uid, 'ASSIGN_TASK', '-1', 'BEFORE');
|
$triggers = $oCase->loadTriggers( $tas_uid, 'ASSIGN_TASK', '-1', 'BEFORE');
|
||||||
if (isset($triggers)){
|
if (isset($triggers)){
|
||||||
$cases = new \ProcessMaker\BusinessModel\Cases();
|
$Fields = $oCase->loadCase( $app_uid );
|
||||||
foreach($triggers as $trigger){
|
$Fields['APP_DATA'] = array_merge( $Fields['APP_DATA'], G::getSystemConstants() );
|
||||||
$cases->putExecuteTriggerCase($app_uid, $trigger['TRI_UID'], $usr_uid);
|
$Fields['APP_DATA'] = $oCase->ExecuteTriggers( $tas_uid, 'DYNAFORM', '-1', 'BEFORE', $Fields['APP_DATA'] );
|
||||||
}
|
$oCase->updateCase( $app_uid, $Fields );
|
||||||
}
|
}
|
||||||
$oDerivation = new \Derivation();
|
$oDerivation = new \Derivation();
|
||||||
$aData = array();
|
$aData = array();
|
||||||
@@ -457,6 +457,8 @@ class Light
|
|||||||
$response[] = $taskAss;
|
$response[] = $taskAss;
|
||||||
break;
|
break;
|
||||||
case 'MANUAL':
|
case 'MANUAL':
|
||||||
|
case "MULTIPLE_INSTANCE":
|
||||||
|
case "MULTIPLE_INSTANCE_VALUE_BASED":
|
||||||
$manual = array();
|
$manual = array();
|
||||||
$manual['taskId'] = $aValues['NEXT_TASK']['TAS_UID'];
|
$manual['taskId'] = $aValues['NEXT_TASK']['TAS_UID'];
|
||||||
$manual['taskName'] = $aValues['NEXT_TASK']['TAS_TITLE'];
|
$manual['taskName'] = $aValues['NEXT_TASK']['TAS_TITLE'];
|
||||||
@@ -492,7 +494,7 @@ class Light
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (empty( $response )) {
|
if (empty( $response )) {
|
||||||
throw (new Exception( G::LoadTranslation( 'ID_NO_DERIVATION_RULE' ) ));
|
throw new \Exception(G::LoadTranslation("ID_NO_DERIVATION_RULE"));
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw $e;
|
throw $e;
|
||||||
|
|||||||
@@ -150,30 +150,12 @@ class NotificationDevice
|
|||||||
public function routeCaseNotification($currentUserId, $processId, $currentTaskId, $appFields, $aTasks, $nextIndex)
|
public function routeCaseNotification($currentUserId, $processId, $currentTaskId, $appFields, $aTasks, $nextIndex)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$oUser = new \Users();
|
|
||||||
$aUser = $oUser->load( $currentUserId );
|
|
||||||
|
|
||||||
$response = array();
|
$response = array();
|
||||||
$task = new \Tasks();
|
|
||||||
$group = new \Groups();
|
|
||||||
foreach ($aTasks as $aTask) {
|
foreach ($aTasks as $aTask) {
|
||||||
$arrayTaskUser = array();
|
$arrayTaskUser = array();
|
||||||
switch ($aTask["TAS_ASSIGN_TYPE"]) {
|
switch ($aTask["TAS_ASSIGN_TYPE"]) {
|
||||||
case "SELF_SERVICE":
|
case "SELF_SERVICE":
|
||||||
if (isset($aTask["TAS_UID"]) && !empty($aTask["TAS_UID"])) {
|
$arrayTaskUser = $this->getTaskUserSelfService($aTask["TAS_UID"], $appFields);
|
||||||
$arrayAux1 = $task->getGroupsOfTask($aTask["TAS_UID"], 1);
|
|
||||||
foreach ($arrayAux1 as $arrayGroup) {
|
|
||||||
$arrayAux2 = $group->getUsersOfGroup($arrayGroup["GRP_UID"]);
|
|
||||||
foreach ($arrayAux2 as $arrayUser) {
|
|
||||||
$arrayTaskUser[] = $arrayUser["USR_UID"];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$arrayAux1 = $task->getUsersOfTask($aTask["TAS_UID"], 1);
|
|
||||||
|
|
||||||
foreach ($arrayAux1 as $arrayUser) {
|
|
||||||
$arrayTaskUser[] = $arrayUser["USR_UID"];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (isset($aTask["USR_UID"]) && !empty($aTask["USR_UID"])) {
|
if (isset($aTask["USR_UID"]) && !empty($aTask["USR_UID"])) {
|
||||||
@@ -182,8 +164,6 @@ class NotificationDevice
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// $oTask = new \Task();
|
|
||||||
// $currentTask = $oTask->load($aTask['TAS_UID']);
|
|
||||||
$delIndex = null;
|
$delIndex = null;
|
||||||
foreach ($nextIndex as $nIndex) {
|
foreach ($nextIndex as $nIndex) {
|
||||||
if($aTask['TAS_UID'] == $nIndex['TAS_UID']){
|
if($aTask['TAS_UID'] == $nIndex['TAS_UID']){
|
||||||
@@ -250,4 +230,43 @@ class NotificationDevice
|
|||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getTaskUserSelfService($tas_uid, $appFields)
|
||||||
|
{
|
||||||
|
$oTask = new \Tasks();
|
||||||
|
$oGroup = new \Groups();
|
||||||
|
$taskNextDel = \TaskPeer::retrieveByPK($tas_uid);
|
||||||
|
$arrayTaskUser = array();
|
||||||
|
|
||||||
|
if ($taskNextDel->getTasAssignType() == "SELF_SERVICE" && trim($taskNextDel->getTasGroupVariable()) != "") {
|
||||||
|
// Self Service Value Based Assignment
|
||||||
|
$nextTaskGroupVariable = trim($taskNextDel->getTasGroupVariable(), " @#");
|
||||||
|
if (isset($appFields["APP_DATA"][$nextTaskGroupVariable])) {
|
||||||
|
$dataGroupVariable = $appFields["APP_DATA"][$nextTaskGroupVariable];
|
||||||
|
$dataGroupVariable = (is_array($dataGroupVariable))? $dataGroupVariable : trim($dataGroupVariable);
|
||||||
|
if (!empty($dataGroupVariable) && is_array($dataGroupVariable)){
|
||||||
|
$arrayTaskUser[] = $dataGroupVariable;
|
||||||
|
} elseif(!empty($dataGroupVariable)) {
|
||||||
|
$arrayUsersOfGroup = $oGroup->getUsersOfGroup($dataGroupVariable);
|
||||||
|
foreach ($arrayUsersOfGroup as $arrayUser) {
|
||||||
|
$arrayTaskUser[] = $arrayUser["USR_UID"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else { // Self Service
|
||||||
|
$arrayGroupsOfTask = $oTask->getGroupsOfTask($tas_uid, 1);
|
||||||
|
foreach ($arrayGroupsOfTask as $arrayGroup) {
|
||||||
|
$arrayUsersOfGroup = $oGroup->getUsersOfGroup($arrayGroup["GRP_UID"]);
|
||||||
|
foreach ($arrayUsersOfGroup as $arrayUser) {
|
||||||
|
$arrayTaskUser[] = $arrayUser["USR_UID"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$arrayUsersOfTask = $oTask->getUsersOfTask($tas_uid, 1);
|
||||||
|
foreach ($arrayUsersOfTask as $arrayUser) {
|
||||||
|
$arrayTaskUser[] = $arrayUser["USR_UID"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $arrayTaskUser;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -354,94 +354,6 @@ class MessageApplication
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Throw Message-Events for the Case
|
|
||||||
*
|
|
||||||
* @param string $elementOriginUid Unique id of Element Origin (unique id of Task)
|
|
||||||
* @param string $elementDestUid Unique id of Element Dest (unique id of Task)
|
|
||||||
* @param array $arrayApplicationData Case data
|
|
||||||
* @param bool $flagEventExecuteBeforeGateway Execute event before gateway
|
|
||||||
* @param bool $flagEventExecuteAfterGateway Execute event after gateway
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function throwMessageEventBetweenElementOriginAndElementDest($elementOriginUid, $elementDestUid, array $arrayApplicationData, $flagEventExecuteBeforeGateway = true, $flagEventExecuteAfterGateway = true)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
//Verify if the Project is BPMN
|
|
||||||
$bpmn = new \ProcessMaker\Project\Bpmn();
|
|
||||||
|
|
||||||
if (!$bpmn->exists($arrayApplicationData["PRO_UID"])) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
//Element origin and dest
|
|
||||||
$elementTaskRelation = new \ProcessMaker\BusinessModel\ElementTaskRelation();
|
|
||||||
|
|
||||||
$arrayElement = array(
|
|
||||||
"elementOrigin" => array("uid" => $elementOriginUid, "type" => "bpmnActivity"),
|
|
||||||
"elementDest" => array("uid" => $elementDestUid, "type" => "bpmnActivity")
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach ($arrayElement as $key => $value) {
|
|
||||||
$arrayElementTaskRelationData = $elementTaskRelation->getElementTaskRelationWhere(
|
|
||||||
array(
|
|
||||||
\ElementTaskRelationPeer::PRJ_UID => $arrayApplicationData["PRO_UID"],
|
|
||||||
\ElementTaskRelationPeer::ELEMENT_TYPE => "bpmnEvent",
|
|
||||||
\ElementTaskRelationPeer::TAS_UID => $arrayElement[$key]["uid"]
|
|
||||||
),
|
|
||||||
true
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!is_null($arrayElementTaskRelationData)) {
|
|
||||||
$arrayElement[$key]["uid"] = $arrayElementTaskRelationData["ELEMENT_UID"];
|
|
||||||
$arrayElement[$key]["type"] = "bpmnEvent";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$elementOriginUid = $arrayElement["elementOrigin"]["uid"];
|
|
||||||
$elementOriginType = $arrayElement["elementOrigin"]["type"];
|
|
||||||
$elementDestUid = $arrayElement["elementDest"]["uid"];
|
|
||||||
$elementDestType = $arrayElement["elementDest"]["type"];
|
|
||||||
|
|
||||||
//Throw Message-Events
|
|
||||||
$arrayEventType = array("END", "INTERMEDIATE");
|
|
||||||
$arrayEventMarker = array("MESSAGETHROW");
|
|
||||||
|
|
||||||
$arrayEventExecute = array("BEFORE" => $flagEventExecuteBeforeGateway, "AFTER" => $flagEventExecuteAfterGateway);
|
|
||||||
$positionEventExecute = "BEFORE";
|
|
||||||
|
|
||||||
$arrayElement = $bpmn->getElementsBetweenElementOriginAndElementDest(
|
|
||||||
$elementOriginUid,
|
|
||||||
$elementOriginType,
|
|
||||||
$elementDestUid,
|
|
||||||
$elementDestType
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach ($arrayElement as $value) {
|
|
||||||
switch ($value[1]) {
|
|
||||||
case "bpmnEvent":
|
|
||||||
$event = \BpmnEventPeer::retrieveByPK($value[0]);
|
|
||||||
|
|
||||||
if (!is_null($event) &&
|
|
||||||
in_array($event->getEvnType(), $arrayEventType) && in_array($event->getEvnMarker(), $arrayEventMarker)
|
|
||||||
) {
|
|
||||||
if ($arrayEventExecute[$positionEventExecute]) {
|
|
||||||
//Message-Application throw
|
|
||||||
$result = $this->create($arrayApplicationData["APP_UID"], $arrayApplicationData["PRO_UID"], $value[0], $arrayApplicationData);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case "bpmnGateway":
|
|
||||||
$positionEventExecute = "AFTER";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
throw $e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Catch Message-Events for the Cases
|
* Catch Message-Events for the Cases
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1375,29 +1375,36 @@ class Bpmn extends Handler
|
|||||||
$elementOriginUid,
|
$elementOriginUid,
|
||||||
$elementOriginType,
|
$elementOriginType,
|
||||||
$elementDestUid,
|
$elementDestUid,
|
||||||
$elementDestType
|
$elementDestType,
|
||||||
|
$index
|
||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
if (isset($this->arrayElementOriginChecked[$elementOriginUid]) && $this->arrayElementOriginChecked[$elementOriginUid] == $elementOriginType) {
|
if (isset($this->arrayElementOriginChecked[$elementOriginUid]) && $this->arrayElementOriginChecked[$elementOriginUid] == $elementOriginType) {
|
||||||
//Return
|
//Return
|
||||||
return array();
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->arrayElementOriginChecked[$elementOriginUid] = $elementOriginType;
|
$this->arrayElementOriginChecked[$elementOriginUid] = $elementOriginType;
|
||||||
|
|
||||||
if ($elementOriginType == $elementDestType && $elementOriginUid == $elementDestUid) {
|
if ($index > 0 && $elementOriginType == $elementDestType) {
|
||||||
$arrayEvent = array();
|
if ($elementOriginUid == $elementDestUid) {
|
||||||
array_unshift($arrayEvent, array($elementDestUid, $elementDestType));
|
$arrayEvent = [];
|
||||||
|
|
||||||
|
array_unshift($arrayEvent, [$elementDestUid, $elementDestType]);
|
||||||
|
|
||||||
|
//Return
|
||||||
|
return $arrayEvent;
|
||||||
|
}
|
||||||
|
|
||||||
//Return
|
//Return
|
||||||
return $arrayEvent;
|
return [];
|
||||||
} else {
|
} else {
|
||||||
//Flows
|
//Flows
|
||||||
$arrayFlow = \BpmnFlow::findAllBy(array(
|
$arrayFlow = \BpmnFlow::findAllBy([
|
||||||
\BpmnFlowPeer::FLO_TYPE => array("MESSAGE", \Criteria::NOT_EQUAL),
|
\BpmnFlowPeer::FLO_TYPE => ["MESSAGE", \Criteria::NOT_EQUAL],
|
||||||
\BpmnFlowPeer::FLO_ELEMENT_ORIGIN => $elementOriginUid,
|
\BpmnFlowPeer::FLO_ELEMENT_ORIGIN => $elementOriginUid,
|
||||||
\BpmnFlowPeer::FLO_ELEMENT_ORIGIN_TYPE => $elementOriginType
|
\BpmnFlowPeer::FLO_ELEMENT_ORIGIN_TYPE => $elementOriginType
|
||||||
));
|
]);
|
||||||
|
|
||||||
foreach ($arrayFlow as $value) {
|
foreach ($arrayFlow as $value) {
|
||||||
$arrayFlowData = $value->toArray();
|
$arrayFlowData = $value->toArray();
|
||||||
@@ -1406,11 +1413,12 @@ class Bpmn extends Handler
|
|||||||
$arrayFlowData["FLO_ELEMENT_DEST"],
|
$arrayFlowData["FLO_ELEMENT_DEST"],
|
||||||
$arrayFlowData["FLO_ELEMENT_DEST_TYPE"],
|
$arrayFlowData["FLO_ELEMENT_DEST_TYPE"],
|
||||||
$elementDestUid,
|
$elementDestUid,
|
||||||
$elementDestType
|
$elementDestType,
|
||||||
|
$index + 1
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!empty($arrayEvent)) {
|
if (!empty($arrayEvent)) {
|
||||||
array_unshift($arrayEvent, array($elementOriginUid, $elementOriginType));
|
array_unshift($arrayEvent, [$elementOriginUid, $elementOriginType]);
|
||||||
|
|
||||||
//Return
|
//Return
|
||||||
return $arrayEvent;
|
return $arrayEvent;
|
||||||
@@ -1418,7 +1426,7 @@ class Bpmn extends Handler
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Return
|
//Return
|
||||||
return array();
|
return [];
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
self::log("Exception: ", $e->getMessage(), "Trace: ", $e->getTraceAsString());
|
self::log("Exception: ", $e->getMessage(), "Trace: ", $e->getTraceAsString());
|
||||||
@@ -1434,10 +1442,10 @@ class Bpmn extends Handler
|
|||||||
$elementDestType
|
$elementDestType
|
||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
$this->arrayElementOriginChecked = array();
|
$this->arrayElementOriginChecked = [];
|
||||||
|
|
||||||
//Return
|
//Return
|
||||||
return call_user_func_array(array($this, "__getElementsBetweenElementOriginAndElementDest"), func_get_args());
|
return call_user_func_array([$this, "__getElementsBetweenElementOriginAndElementDest"], array_merge(func_get_args(), [0]));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
self::log("Exception: ", $e->getMessage(), "Trace: ", $e->getTraceAsString());
|
self::log("Exception: ", $e->getMessage(), "Trace: ", $e->getTraceAsString());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user