Updates before update on BpmnWorkflow Adapter

This commit is contained in:
Erik Amaru Ortiz
2014-02-19 19:32:19 -04:00
parent 76d83bc376
commit 00ebbeff0d
4 changed files with 37 additions and 32 deletions

View File

@@ -386,8 +386,13 @@ class Bpmn extends Handler
public function updateEvent($evnUid, $data)
{
$data["EVN_CANCEL_ACTIVITY"] = $data["EVN_CANCEL_ACTIVITY"] ? 1 : 0;
$data["EVN_WAIT_FOR_COMPLETION"] = $data["EVN_WAIT_FOR_COMPLETION"] ? 1 : 0;
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);