Skip to content

Commit 6cf2374

Browse files
authored
Update ProcessDefinition.php
1 parent e27d54c commit 6cf2374

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Models/ProcessDefinition.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class ProcessDefinition extends CamundaModel
99

1010
public function startInstance()
1111
{
12-
$processDefinition = $this->post('process-definition/key/' . $this->key . '/start');
12+
$tenant = strlen(config('camunda.api.tenant-id')) ? '/tenant-id/' . config('camunda.api.tenant-id') : '';
13+
$processDefinition = $this->post('process-definition/key/' . $this->key . $tenant . '/start');
1314
return new ProcessInstance($processDefinition->id);
1415
}
1516

@@ -19,4 +20,4 @@ public static function byKey($key)
1920
$processDefinition->key = $key;
2021
return $processDefinition;
2122
}
22-
}
23+
}

0 commit comments

Comments
 (0)