Skip to content

Commit b0204db

Browse files
author
nianiB9
committed
code cleanup
1 parent 4a5eb2b commit b0204db

File tree

4 files changed

+11
-19
lines changed

4 files changed

+11
-19
lines changed

examples/Maestro/eg001TriggerWorkflow.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fi
99

1010
workflow_created=$(cat config/WORKFLOW_ID)
1111
if [ -z "$workflow_created" ]; then
12-
bash ./examples/Maestro/utils.sh
12+
bash ./examples/Maestro//lib/utils.sh
1313
fi
1414

1515
#check that create workflow script ran successfully

examples/Maestro/eg002EmbedWorkflow.sh

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,26 @@
44
# Ensure the script is run in a bash shell
55
if [[ $SHELL != *"bash"* ]]; then
66
echo "PROBLEM: Run these scripts from within the bash shell."
7-
exit 1
87
fi
98

10-
#check that create workflow script ran successfully
9+
#Check that create workflow script ran successfully
1110
workflow_created=$(cat config/WORKFLOW_ID)
1211
if [ -z "$workflow_created" ]; then
1312
echo "please create a worklow before running this example"
1413
exit 0
1514
fi
1615

17-
# Step 2: Check that the instance URL exists
16+
#ds-snippet-start:Maestro1Step2
17+
#Check that the instance URL exists
1818
instance_url=$(cat config/INSTANCE_URL)
1919
if [ -z "$instance_url" ]; then
2020
echo "No instance URL found. Please run the trigger workflow script first."
2121
exit 1
2222
fi
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
2427
decoded_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
3437
fi
3538
php ./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

examples/Maestro/lib/startServerForEmbeddedWorkflow.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
#ds-snippet-start:eSign44Step6
1717
-->
1818
<br />
19-
<h2>The document has been embedded with focused view.</h2>
19+
<h2>The document has been embedded using Maestro Embedded Workflow.</h2>
2020
<br />
2121
2222
<!DOCTYPE html>
2323
<html>
2424
<head>
2525
<meta charset=\"utf-8\" />
26-
<title>Signing</title>
26+
<title>Example Workflow</title>
2727
<style>
2828
html,
2929
body {

0 commit comments

Comments
 (0)