44# Ensure the script is run in a bash shell
55if [[ $SHELL != * " bash" * ]]; then
66 echo " PROBLEM: Run these scripts from within the bash shell."
7- exit 1
87fi
98
10- # check that create workflow script ran successfully
9+ # Check that create workflow script ran successfully
1110workflow_created=$( cat config/WORKFLOW_ID)
1211if [ -z " $workflow_created " ]; then
1312 echo " please create a worklow before running this example"
1413 exit 0
1514fi
1615
17- # Step 2: Check that the instance URL exists
16+ # ds-snippet-start:Maestro1Step2
17+ # Check that the instance URL exists
1818instance_url=$( cat config/INSTANCE_URL)
1919if [ -z " $instance_url " ]; then
2020 echo " No instance URL found. Please run the trigger workflow script first."
2121 exit 1
2222fi
23- # Step 3: Decode any escaped characters
23+ # ds-snippet-end:Maestro1Step2
24+
25+ # ds-snippet-start:Maestro1Step3
26+ # Launch local server and open in browser
2427decoded_instance_url=$( echo " $instance_url " | sed ' s/\\u0026/\&/g' )
2528
2629
@@ -33,15 +36,4 @@ elif which start &> /dev/null ; then
3336 start $host_url
3437fi
3538php ./examples/Maestro/lib/startServerForEmbeddedWorkflow.php " $decoded_instance_url "
36- # # Step 4: Output for developer
37- # echo ""
38- # echo "✅ Workflow instance URL retrieved for workflow ID: $workflow_id"
39- # echo ""
40- # echo "🔗 URL:"
41- # echo "$decoded_instance_url"
42- # echo ""
43- # echo "📎 Use this HTML snippet to embed the workflow in your application:"
44- # echo ""
45- # echo "<div class=\"formContainer\">"
46- # echo " <iframe src=\"$decoded_instance_url\" width=\"800\" height=\"600\"></iframe>"
47- # echo "</div>"
39+ # ds-snippet-end:Maestro1Step3
0 commit comments