diff --git a/workflow/engine/src/BusinessModel/CaseTracker.php b/workflow/engine/src/BusinessModel/CaseTracker.php index d006a2cb3..445abbc76 100644 --- a/workflow/engine/src/BusinessModel/CaseTracker.php +++ b/workflow/engine/src/BusinessModel/CaseTracker.php @@ -20,7 +20,7 @@ class CaseTracker $process = new \Process(); if (!$process->exists($processUid)) { - throw (new \Exception(str_replace(array("{0}", "{1}"), array($processUid, "PROCESS"), "The UID \"{0}\" doesn't exist in table {1}"))); + throw (new \Exception(str_replace(array("{0}", "{1}"), array($processUid, "PROCESS"), "The UID \"{0}\" does not exist in table {1}"))); } //Update @@ -67,7 +67,7 @@ class CaseTracker $process = new \Process(); if (!$process->exists($processUid)) { - throw (new \Exception(str_replace(array("{0}", "{1}"), array($processUid, "PROCESS"), "The UID \"{0}\" doesn't exist in table {1}"))); + throw (new \Exception(str_replace(array("{0}", "{1}"), array($processUid, "PROCESS"), "The UID \"{0}\" does not exist in table {1}"))); } //Get data @@ -121,7 +121,7 @@ class CaseTracker $process = new \Process(); if (!$process->exists($processUid)) { - throw (new \Exception(str_replace(array("{0}", "{1}"), array($processUid, "PROCESS"), "The UID \"{0}\" doesn't exist in table {1}"))); + throw (new \Exception(str_replace(array("{0}", "{1}"), array($processUid, "PROCESS"), "The UID \"{0}\" does not exist in table {1}"))); } //Get Uids @@ -344,7 +344,7 @@ class CaseTracker $process = new \Process(); if (!$process->exists($processUid)) { - throw (new \Exception(str_replace(array("{0}", "{1}"), array($processUid, "PROCESS"), "The UID \"{0}\" doesn't exist in table {1}"))); + throw (new \Exception(str_replace(array("{0}", "{1}"), array($processUid, "PROCESS"), "The UID \"{0}\" does not exist in table {1}"))); } $dynaform = new \Dynaform(); diff --git a/workflow/engine/src/BusinessModel/DynaForm.php b/workflow/engine/src/BusinessModel/DynaForm.php index ed890114b..820b24dcd 100644 --- a/workflow/engine/src/BusinessModel/DynaForm.php +++ b/workflow/engine/src/BusinessModel/DynaForm.php @@ -238,12 +238,12 @@ class DynaForm } /** - * Verify if not is grid DynaForm + * Verify if is not grid DynaForm * * @param string $dynaFormUid Unique id of DynaForm * @param string $fieldNameForException Field name for the exception * - * return void Throw exception if not is grid DynaForm + * return void Throw exception if is not grid DynaForm */ public function throwExceptionIfNotIsGridDynaForm($dynaFormUid, $fieldNameForException) { @@ -254,7 +254,7 @@ class DynaForm $arrayDynaFormData = $dynaForm->Load($dynaFormUid); if ($arrayDynaFormData["DYN_TYPE"] != "grid") { - $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $dynaFormUid), "The DynaForm with {0}: {1}, not is grid"); + $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $dynaFormUid), "The DynaForm with {0}: {1}, is not grid"); throw (new \Exception($msg)); } @@ -699,7 +699,7 @@ class DynaForm } if ($flagValidFieldPk == 0) { - throw (new \Exception(str_replace(array("{0}", "{1}"), array($this->getFieldNameByFormatFieldName("PMTABLE.FIELDS.FLD_NAME"), $invalidFieldPk), "The field {0}: {1}, is not an primary key field of the PM Table"))); + throw (new \Exception(str_replace(array("{0}", "{1}"), array($this->getFieldNameByFormatFieldName("PMTABLE.FIELDS.FLD_NAME"), $invalidFieldPk), "The field {0}: {1}, is not a primary key field of the PM Table"))); } //All Primary Keys @@ -715,7 +715,7 @@ class DynaForm } if ($flagAllFieldPk == 0) { - throw (new \Exception(str_replace(array("{0}", "{1}"), array($missingFieldPk, $this->getFieldNameByFormatFieldName("PMTABLE.FIELDS")), "The primary key field {0} of the PM Table, is missing in the attribute {1}"))); + throw (new \Exception(str_replace(array("{0}", "{1}"), array($missingFieldPk, $this->getFieldNameByFormatFieldName("PMTABLE.FIELDS")), "The primary key field {0} of the PM Table is missing in the attribute {1}"))); } //Total of Primary Keys diff --git a/workflow/engine/src/BusinessModel/Group.php b/workflow/engine/src/BusinessModel/Group.php index f0a4eb67f..5a50e3354 100644 --- a/workflow/engine/src/BusinessModel/Group.php +++ b/workflow/engine/src/BusinessModel/Group.php @@ -143,7 +143,7 @@ class Group $group = new \Groupwf(); if (!$group->GroupwfExists($groupUid)) { - $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $groupUid), "The group with {0}: {1}, does not exist"); + $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $groupUid), "The group with {0}: {1} does not exist"); throw (new \Exception($msg)); } @@ -165,7 +165,7 @@ class Group { try { if ($this->existsTitle($groupTitle, $groupUidExclude)) { - $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $groupTitle), "The group title with {0}: \"{1}\", already exists"); + $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $groupTitle), "The group title with {0}: \"{1}\" already exists"); throw (new \Exception($msg)); } diff --git a/workflow/engine/src/BusinessModel/Group/User.php b/workflow/engine/src/BusinessModel/Group/User.php index 6f453a323..f3f27a3e3 100644 --- a/workflow/engine/src/BusinessModel/Group/User.php +++ b/workflow/engine/src/BusinessModel/Group/User.php @@ -95,7 +95,7 @@ class User $obj = \GroupUserPeer::retrieveByPK($groupUid, $userUid); if (!(is_object($obj) && get_class($obj) == "GroupUser")) { - $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $userUid), "The user with {0}: {1}, is not assigned to the group"); + $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $userUid), "The user with {0}: {1} is not assigned to the group"); throw (new \Exception($msg)); } @@ -119,7 +119,7 @@ class User $obj = \GroupUserPeer::retrieveByPK($groupUid, $userUid); if (is_object($obj) && get_class($obj) == "GroupUser") { - $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $userUid), "The user with {0}: {1}, is already assigned to the group"); + $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $userUid), "The user with {0}: {1} is already assigned to the group"); throw (new \Exception($msg)); } diff --git a/workflow/engine/src/BusinessModel/InputDocument.php b/workflow/engine/src/BusinessModel/InputDocument.php index 820b11ac4..5757b96e6 100644 --- a/workflow/engine/src/BusinessModel/InputDocument.php +++ b/workflow/engine/src/BusinessModel/InputDocument.php @@ -161,7 +161,7 @@ class InputDocument $rsCriteria = \InputDocumentPeer::doSelectRS($criteria); if (!$rsCriteria->next()) { - $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $inputDocumentUid), "The InputDocument with {0}: {1}, does not exist"); + $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $inputDocumentUid), "The Input Document with {0}: {1} does not exist"); throw (new \Exception($msg)); } @@ -184,7 +184,7 @@ class InputDocument { try { if ($this->existsTitle($processUid, $inputDocumentTitle, $inputDocumentUidExclude)) { - $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $inputDocumentTitle), "The InputDocument title with {0}: \"{1}\", already exists"); + $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $inputDocumentTitle), "The Input Document title with {0}: \"{1}\" already exists"); throw (new \Exception($msg)); } diff --git a/workflow/engine/src/BusinessModel/Process.php b/workflow/engine/src/BusinessModel/Process.php index 545c4cbdf..428762903 100644 --- a/workflow/engine/src/BusinessModel/Process.php +++ b/workflow/engine/src/BusinessModel/Process.php @@ -290,7 +290,7 @@ class Process $process = new \Process(); if (!$process->processExists($processUid)) { - $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $processUid), "The project with {0}: {1}, does not exist"); + $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $processUid), "The project with {0}: {1} does not exist"); throw (new \Exception($msg)); } @@ -404,7 +404,7 @@ class Process $obj = \AdditionalTablesPeer::retrieveByPK($additionalTableUid); if (!(is_object($obj) && get_class($obj) == "AdditionalTables")) { - $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $additionalTableUid), "The PM Table with {0}: {1}, does not exist"); + $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $additionalTableUid), "The PM Table with {0}: {1} does not exist"); throw (new \Exception($msg)); } @@ -438,7 +438,7 @@ class Process $rsCriteria = \TaskPeer::doSelectRS($criteria); if (!$rsCriteria->next()) { - $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $taskUid), "The activity with {0}: {1}, does not exist"); + $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $taskUid), "The activity with {0}: {1} does not exist"); throw (new \Exception($msg)); } @@ -472,7 +472,7 @@ class Process } if ($flag == 0) { - $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $fileName), "The routing screen template with {0}: {1}, does not exist"); + $msg = str_replace(array("{0}", "{1}"), array($fieldNameForException, $fileName), "The routing screen template with {0}: {1} does not exist"); throw (new \Exception($msg)); } diff --git a/workflow/engine/src/BusinessModel/TriggerWizard.php b/workflow/engine/src/BusinessModel/TriggerWizard.php index e835834e2..a7813293a 100644 --- a/workflow/engine/src/BusinessModel/TriggerWizard.php +++ b/workflow/engine/src/BusinessModel/TriggerWizard.php @@ -111,7 +111,7 @@ class TriggerWizard $arrayLibrary = $this->library->getRegisteredClasses(); if (!isset($arrayLibrary[$this->libraryGetLibraryName($libraryName)])) { - $msg = str_replace(array("{0}", "{1}"), array($libraryFieldNameForException, $libraryName), "The library with {0}: \"{1}\", does not exist"); + $msg = str_replace(array("{0}", "{1}"), array($libraryFieldNameForException, $libraryName), "The library with {0}: \"{1}\" does not exist"); throw (new \Exception($msg)); } @@ -138,7 +138,7 @@ class TriggerWizard $library = $this->library->getLibraryDefinition($this->libraryGetLibraryName($libraryName)); if (!isset($library->methods[$methodName])) { - $msg = str_replace(array("{0}", "{1}"), array($methodFieldNameForException, $methodName), "The function with {0}: \"{1}\", does not exist in library"); + $msg = str_replace(array("{0}", "{1}"), array($methodFieldNameForException, $methodName), "The function with {0}: \"{1}\" does not exist in the library"); throw (new \Exception($msg)); } @@ -177,7 +177,7 @@ class TriggerWizard $triggerParam = unserialize($arrayTriggerData["TRI_PARAM"]); if ($arrayTriggerData["TRI_PARAM"] == "" || !isset($triggerParam["hash"])) { - $msg = str_replace(array("{0}", "{1}"), array($triggerUidFieldNameForException, $triggerUid), "The trigger with {0}: {1}, does not been created with the wizard"); + $msg = str_replace(array("{0}", "{1}"), array($triggerUidFieldNameForException, $triggerUid), "The trigger with {0}: {1}, has not been created with the wizard"); throw (new \Exception($msg)); } @@ -185,7 +185,7 @@ class TriggerWizard $arrayTriggerData["TRI_PARAM"] = $triggerParam; if (md5($arrayTriggerData["TRI_WEBBOT"]) != $arrayTriggerData["TRI_PARAM"]["hash"]) { - $msg = str_replace(array("{0}", "{1}"), array($triggerUidFieldNameForException, $triggerUid), "The trigger with {0}: {1}, has been modified manually, is invalid for the wizard"); + $msg = str_replace(array("{0}", "{1}"), array($triggerUidFieldNameForException, $triggerUid), "The trigger with {0}: {1}, has been modified manually. It is invalid for the wizard"); throw (new \Exception($msg)); } diff --git a/workflow/engine/src/BusinessModel/WebEntry.php b/workflow/engine/src/BusinessModel/WebEntry.php index f85acddeb..1f6d20914 100644 --- a/workflow/engine/src/BusinessModel/WebEntry.php +++ b/workflow/engine/src/BusinessModel/WebEntry.php @@ -308,18 +308,18 @@ class WebEntry $weEventUid = $task->getStartingEvent($arrayData["TAS_UID"]); if ($arrayTaskData["TAS_START"] == "FALSE") { - throw (new \Exception(str_replace(array("{0}"), array($arrayTaskData["TAS_TITLE"]), "The task \"{0}\" isn't initial task"))); + throw (new \Exception(str_replace(array("{0}"), array($arrayTaskData["TAS_TITLE"]), "The task \"{0}\" is not initial task"))); } if ($arrayTaskData["TAS_ASSIGN_TYPE"] != "BALANCED") { - throw (new \Exception(str_replace(array("{0}"), array($arrayTaskData["TAS_TITLE"]), "Web Entry only works with tasks which have \"Cyclical Assignment\", the task \"{0}\" doesn't have a valid assignment type. Please change the Assignment Rules"))); + throw (new \Exception(str_replace(array("{0}"), array($arrayTaskData["TAS_TITLE"]), "Web Entry only works with tasks which have \"Cyclical Assignment\", the task \"{0}\" does not have a valid assignment type. Please change the Assignment Rules"))); } if ($arrayData["METHOD"] == "WS") { $task = new \Tasks(); if ($task->assignUsertoTask($arrayData["TAS_UID"]) == 0) { - throw (new \Exception(str_replace(array("{0}"), array($arrayTaskData["TAS_TITLE"]), "The task \"{0}\" doesn't have users"))); + throw (new \Exception(str_replace(array("{0}"), array($arrayTaskData["TAS_TITLE"]), "The task \"{0}\" does not have users"))); } } @@ -355,7 +355,7 @@ class WebEntry $row = $rsCriteria->getRow(); if (!$projectUser->userIsAssignedToTask($row["USR_UID"], $arrayData["TAS_UID"])) { - throw (new \Exception(str_replace(array("{0}", "{1}"), array($arrayData["USR_USERNAME"], $arrayTaskData["TAS_TITLE"]), "The user \"{0}\" doesn't have the task \"{1}\" assigned"))); + throw (new \Exception(str_replace(array("{0}", "{1}"), array($arrayData["USR_USERNAME"], $arrayTaskData["TAS_TITLE"]), "The user \"{0}\" does not have the task \"{1}\" assigned"))); } }