get('status'); } public function getProcessId(): ?string { return $this->get('processId'); } public function getTargetId(): ?string { return $this->get('targetId'); } public function getTargetType(): ?string { return $this->get('targetType'); } public function getElementType(): ?string { return $this->get('elementType'); } public function getElementId(): ?string { return $this->get('elementId'); } public function getFlowchartId(): ?string { return $this->get('flowchartId'); } public function getElementData(): stdClass { return $this->get('elementData') ?? (object) []; } public function getDivergentFlowNodeId(): ?string { return $this->get('divergentFlowNodeId'); } public function getPreviousFlowNodeId(): ?string { return $this->get('previousFlowNodeId'); } public function getPreviousFlowNodeElementType(): ?string { return $this->get('previousFlowNodeElementType'); } /** * @return mixed */ public function getElementDataItemValue(string $name) { $data = $this->get('elementData'); if (!$data) { $data = (object) []; } if (!property_exists($data, $name)) { return null; } return $data->$name; } /** * @return mixed */ public function getDataItemValue(string $name) { $data = $this->get('data'); if (!$data) { $data = (object) []; } if (!property_exists($data, $name)) { return null; } return $data->$name; } /** * @param mixed $value */ public function setDataItemValue(string $name, $value): void { $data = $this->get('data'); if (!$data) { $data = (object) []; } $data->$name = $value; $this->set('data', $data); } public function setStatus(string $status): self { $this->set('status', $status); return $this; } public function getData(): stdClass { return $this->get('data') ?? (object) []; } }