@@ -26,15 +26,13 @@ class TriggerMaestroWorkflowService
26
26
* @return WorkflowDefinitionWithId
27
27
* @throws ApiException
28
28
*/
29
- #ds-snippet-start:Maestro1Step3
30
29
public static function getWorkflowDefinition (
31
30
WorkflowManagementApi $ managementApi ,
32
31
string $ accountId ,
33
32
string $ workflowId
34
33
): WorkflowDefinitionWithId {
35
34
return $ managementApi ->getWorkflowDefinition ($ accountId , $ workflowId );
36
35
}
37
- #ds-snippet-end:Maestro1Step3
38
36
39
37
/**
40
38
* Get workflow definitions
@@ -79,7 +77,6 @@ public static function triggerWorkflow(
79
77
string $ mtsec ,
80
78
string $ workflowId
81
79
): TriggerWorkflowViaPostResponse {
82
- #ds-snippet-start:Maestro1Step4
83
80
$ triggerPayload = new TriggerPayload ();
84
81
$ triggerPayload ->setInstanceName ($ instanceName );
85
82
$ triggerPayload ->setParticipants (new stdClass ());
@@ -96,11 +93,8 @@ public static function triggerWorkflow(
96
93
$ triggerOptions = new TriggerWorkflowOptions ();
97
94
$ triggerOptions ->setMtid ($ mtid );
98
95
$ triggerOptions ->setMtsec ($ mtsec );
99
- #ds-snippet-end:Maestro1Step4
100
96
101
- #ds-snippet-start:Maestro1Step5
102
97
return $ workflowTriggerApi ->triggerWorkflow ($ accountId , $ workflowId , $ triggerPayload , $ triggerOptions );
103
- #ds-snippet-end:Maestro1Step5
104
98
}
105
99
106
100
/**
0 commit comments