Merged in paulis/processmaker/HOR-2022 (pull request #4996)

HOR-2022
This commit is contained in:
Julio Cesar Laura Avendaño
2016-10-10 16:42:51 -04:00
2 changed files with 23 additions and 19 deletions

View File

@@ -430,7 +430,7 @@ class MessageApplication
$appNumber = $arrayResult["caseNumber"]; $appNumber = $arrayResult["caseNumber"];
$this->syslog( $this->syslog(
200 200
,'Case created' ,"Case #$appNumber created"
,'CREATED-NEW-CASE' ,'CREATED-NEW-CASE'
,''//timeZone ,''//timeZone
,$messageEventDefinitionUserUid ,$messageEventDefinitionUserUid
@@ -445,7 +445,7 @@ class MessageApplication
if ($arrayResult["status_code"] == 0) { if ($arrayResult["status_code"] == 0) {
$this->syslog( $this->syslog(
200 200
,'Case routed' ,"Case #$appNumber routed"
,'ROUTED-NEW-CASE' ,'ROUTED-NEW-CASE'
,''//timeZone ,''//timeZone
,$messageEventDefinitionUserUid ,$messageEventDefinitionUserUid
@@ -458,7 +458,7 @@ class MessageApplication
} else { } else {
$this->syslog( $this->syslog(
500 500
,'Failed case routed '.$arrayResult["message"] ,"Failed case #$appNumber. " . $arrayResult["message"]
,'ROUTED-NEW-CASE' ,'ROUTED-NEW-CASE'
,''//timeZone ,''//timeZone
,$messageEventDefinitionUserUid ,$messageEventDefinitionUserUid
@@ -476,7 +476,7 @@ class MessageApplication
} else { } else {
$this->syslog( $this->syslog(
500 500
,'Failed case created '.$arrayResult["message"] ,"Failed case #$appNumber. " . $arrayResult["message"]
,'CREATED-NEW-CASE' ,'CREATED-NEW-CASE'
,''//timeZone ,''//timeZone
,$messageEventDefinitionUserUid ,$messageEventDefinitionUserUid
@@ -522,7 +522,7 @@ class MessageApplication
if ($arrayResult["status_code"] == 0) { if ($arrayResult["status_code"] == 0) {
$this->syslog( $this->syslog(
200 200
,'Case routed' ,"Case #$appNumber routed "
,'ROUTED-NEW-CASE' ,'ROUTED-NEW-CASE'
,''//timeZone ,''//timeZone
,$userUid ,$userUid
@@ -535,7 +535,7 @@ class MessageApplication
} else { } else {
$this->syslog( $this->syslog(
500 500
,'Failed case routed' ,"Failed case #$appNumber. " . $arrayResult["message"]
,'ROUTED-NEW-CASE' ,'ROUTED-NEW-CASE'
,''//timeZone ,''//timeZone
,$userUid ,$userUid

View File

@@ -1399,7 +1399,7 @@ class TimerEvent
$this->log("CREATED-NEW-CASE", "Case #$applicationNumber created, APP_UID: $applicationUid, PRO_UID: " . $arrayTimerEventData["PRJ_UID"]); $this->log("CREATED-NEW-CASE", "Case #$applicationNumber created, APP_UID: $applicationUid, PRO_UID: " . $arrayTimerEventData["PRJ_UID"]);
$this->syslog( $this->syslog(
200 200
,'Case created' ,"Case #$applicationNumber created"
,'CREATED-NEW-CASE' ,'CREATED-NEW-CASE'
,$datetime ,$datetime
,''//UsrUid ,''//UsrUid
@@ -1420,7 +1420,7 @@ class TimerEvent
$this->log("ROUTED-NEW-CASE", "Case #$applicationNumber routed, APP_UID: $applicationUid, PRO_UID: " . $arrayTimerEventData["PRJ_UID"]); $this->log("ROUTED-NEW-CASE", "Case #$applicationNumber routed, APP_UID: $applicationUid, PRO_UID: " . $arrayTimerEventData["PRJ_UID"]);
$this->syslog( $this->syslog(
200 200
,'Case routed' ,"Case #$applicationNumber routed"
,'ROUTED-NEW-CASE' ,'ROUTED-NEW-CASE'
,$datetime ,$datetime
,''//usrUid ,''//usrUid
@@ -1436,7 +1436,7 @@ class TimerEvent
$this->log("ROUTED-NEW-CASE", "Failed: " . $arrayResult["message"] . ", Case: #$applicationNumber, APP_UID: $applicationUid, PRO_UID: " . $arrayTimerEventData["PRJ_UID"]); $this->log("ROUTED-NEW-CASE", "Failed: " . $arrayResult["message"] . ", Case: #$applicationNumber, APP_UID: $applicationUid, PRO_UID: " . $arrayTimerEventData["PRJ_UID"]);
$this->syslog( $this->syslog(
500 500
,'Failed case routed' ,"Failed case #$applicationNumber. " . $arrayResult["message"]
,'ROUTED-NEW-CASE' ,'ROUTED-NEW-CASE'
,$datetime ,$datetime
,''//usrUid ,''//usrUid
@@ -1453,7 +1453,7 @@ class TimerEvent
$this->log("CREATED-NEW-CASE", "Failed: " . $arrayResult["message"] . ", PRO_UID: " . $arrayTimerEventData["PRJ_UID"]); $this->log("CREATED-NEW-CASE", "Failed: " . $arrayResult["message"] . ", PRO_UID: " . $arrayTimerEventData["PRJ_UID"]);
$this->syslog( $this->syslog(
500 500
,'Failed case created '.$arrayResult["message"] ,"Failed case #$applicationNumber. " . $arrayResult["message"]
,'CREATED-NEW-CASE' ,'CREATED-NEW-CASE'
,$datetime ,$datetime
,''//usrUid ,''//usrUid
@@ -1480,14 +1480,6 @@ class TimerEvent
$common->frontEndShow("END"); $common->frontEndShow("END");
$this->log("END-NEW-CASES", "Date \"$datetime (UTC +00:00)\": End new cases");
$this->syslog(
200
,'End new cases'
,'END-NEW-CASES'
,$datetime
);
//Intermediate Catch Timer-Event (continue the case) /////////////////////////////////////////////////////// //Intermediate Catch Timer-Event (continue the case) ///////////////////////////////////////////////////////
$this->log("START-CONTINUE-CASES", "Date \"$datetime (UTC +00:00)\": Start continue the cases"); $this->log("START-CONTINUE-CASES", "Date \"$datetime (UTC +00:00)\": Start continue the cases");
$this->syslog( $this->syslog(
@@ -1671,13 +1663,25 @@ class TimerEvent
$common->frontEndShow("TEXT", " - OK"); $common->frontEndShow("TEXT", " - OK");
$this->log("CONTINUED-CASE", "Case #$applicationNumber continued, APP_UID: $applicationUid, PRO_UID: " . $arrayTimerEventData["PRJ_UID"]); $this->log("CONTINUED-CASE", "Case #$applicationNumber continued, APP_UID: $applicationUid, PRO_UID: " . $arrayTimerEventData["PRJ_UID"]);
$this->syslog(
200
,"Case #$applicationNumber continued"
,'CONTINUED-CASE'
,$datetime
,''//usrUid
,$arrayTimerEventData["PRJ_UID"]
,$tasUid
,$applicationUid
,$applicationNumber
,$delIndex
);
} else { } else {
$common->frontEndShow("TEXT", " - Failed: " . $arrayResult["message"]); $common->frontEndShow("TEXT", " - Failed: " . $arrayResult["message"]);
$this->log("CONTINUED-CASE", "Failed: " . $arrayResult["message"] . ", Case: #$applicationNumber, APP_UID: $applicationUid, PRO_UID: " . $arrayTimerEventData["PRJ_UID"]); $this->log("CONTINUED-CASE", "Failed: " . $arrayResult["message"] . ", Case: #$applicationNumber, APP_UID: $applicationUid, PRO_UID: " . $arrayTimerEventData["PRJ_UID"]);
$this->syslog( $this->syslog(
500 500
,'Failed '.$arrayResult["message"] ,"Failed case #$applicationUid. " . $arrayResult["message"]
,'CONTINUED-CASE' ,'CONTINUED-CASE'
,$datetime ,$datetime
,''//usrUid ,''//usrUid