Fixed Termination and Building Workflowitem loading

This commit is contained in:
Frank Schubert
2022-02-17 21:34:53 +01:00
parent b63640e232
commit 08630e9942
6 changed files with 63 additions and 43 deletions

View File

@@ -12,6 +12,10 @@ class Workflowitem extends mfBaseModel {
return true;
}
public function unsetObjectId() {
$this->object_id = null;
}
public function setValue(Workflowvalue $value) {
$this->value = $value;
}
@@ -22,6 +26,14 @@ class Workflowitem extends mfBaseModel {
if($name == "value") {
if(!$this->object_id) {
$this->log->warn(__CLASS__."::getProperty('value'): Object ID not set");
$this->log->debug("[Backtrace] ================");
$this->log->debug("[Backtrace] START Backtrace");
$bt = debug_backtrace();
foreach($bt as $n => $b) {
$this->log->debug($n.") ".$b["file"]."(".$b['line']."): ".$b['class']."->".$b['function']."()" );
}
$this->log->debug("[Backtrace] $sql");
$this->log->debug("[Backtrace] END Backtrace");
return null;
}
$value = mfValuecache::singleton()->get("wfItemvalue-item-".$this->id."-object-".$this->object_id);