Improving changes listener on BpmnWorkflow Adapter
This commit is contained in:
@@ -226,11 +226,6 @@ class BpmnWorkflow extends Project\Bpmn
|
||||
parent::addEvent($data);
|
||||
}
|
||||
|
||||
public function updateEvent($evnUid, $data)
|
||||
{
|
||||
parent::updateEvent($evnUid, $data);
|
||||
}
|
||||
|
||||
public function removeEvent($evnUid)
|
||||
{
|
||||
// $event = \BpmnEventPeer::retrieveByPK($evnUid);
|
||||
|
||||
@@ -386,13 +386,13 @@ class Bpmn extends Handler
|
||||
|
||||
public function updateEvent($evnUid, $data)
|
||||
{
|
||||
if (array_key_exists("EVN_CANCEL_ACTIVITY", $data)) {
|
||||
/*if (array_key_exists("EVN_CANCEL_ACTIVITY", $data)) {
|
||||
$data["EVN_CANCEL_ACTIVITY"] = $data["EVN_CANCEL_ACTIVITY"] ? 1 : 0;
|
||||
}
|
||||
|
||||
if (array_key_exists("EVN_WAIT_FOR_COMPLETION", $data)) {
|
||||
$data["EVN_WAIT_FOR_COMPLETION"] = $data["EVN_WAIT_FOR_COMPLETION"] ? 1 : 0;
|
||||
}
|
||||
}*/
|
||||
|
||||
try {
|
||||
self::log("Update Event: $evnUid", "With data: ", $data);
|
||||
|
||||
@@ -94,8 +94,8 @@ abstract class Handler
|
||||
{
|
||||
ksort($array);
|
||||
ksort($arrayCompare);
|
||||
self::log($array, $arrayCompare);
|
||||
//$ret = array_diff_assoc($array, $arrayCompare);
|
||||
//self::log("ONE: ", $array, "TWO: ", $arrayCompare);
|
||||
//$ret = array_diff_assoc("ONE: ", $array, "TWO: ", $arrayCompare);
|
||||
|
||||
return (self::getChecksum($array) === self::getChecksum($arrayCompare));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user