Skip to content

Commit ffef229

Browse files
authored
Update ProcessDefinition.php
1 parent 600df67 commit ffef229

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Models/ProcessDefinition.php

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ public static function byKey($key)
1313

1414
public function startInstance($data = [])
1515
{
16+
// At least one value must be set...
17+
if(count($data) == 0) {
18+
$data['a'] = 'b';
19+
}
20+
1621
$processDefinition = $this->post('start', $data, true);
1722
return new ProcessInstance($processDefinition->id);
1823
}

0 commit comments

Comments
 (0)