Skip to content

Commit b67311f

Browse files
authored
Update ProcessInstance.php
1 parent 1afeec1 commit b67311f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Models/ProcessInstance.php

+11-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,19 @@ public function setVariable($key, $value, $type = 'String')
1919
'value' => $value
2020
]);
2121
}
22+
23+
public function getVariable($key)
24+
{
25+
return $this->get('variables/' . $key);
26+
}
27+
28+
public function getVariables()
29+
{
30+
return get_object_vars($this->get('variables'));
31+
}
2232

2333
public function ended()
2434
{
2535
return $this->get('history/process-instance/?processInstanceId=' . $this->id)[0]->state == 'COMPLETED';
2636
}
27-
}
37+
}

0 commit comments

Comments
 (0)