We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e27d54c commit 6cf2374Copy full SHA for 6cf2374
src/Models/ProcessDefinition.php
@@ -9,7 +9,8 @@ class ProcessDefinition extends CamundaModel
9
10
public function startInstance()
11
{
12
- $processDefinition = $this->post('process-definition/key/' . $this->key . '/start');
+ $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');
14
return new ProcessInstance($processDefinition->id);
15
}
16
@@ -19,4 +20,4 @@ public static function byKey($key)
19
20
$processDefinition->key = $key;
21
return $processDefinition;
22
-}
23
+}
0 commit comments