Skip to content

Commit

Permalink
update state machine
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbalcaen committed May 2, 2024
1 parent 9f46e9c commit a0a3fd3
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions state_machines/rfp_email_form_fill/state_machine.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,20 @@
}
],
"ResultPath": "$.fill_form_output",
"Next": "Email filled form"
"Next": "Get Filled HMTL form"
},
"Get Filled HMTL form": {
"Type": "Task",
"Next": "Email filled form",
"Parameters": {
"Bucket.$": "$.execution_metadata.bucket",
"Key.$": "States.Format('{}/formulaire.html', $.execution_metadata.work_folder)"
},
"Resource": "arn:aws:states:::aws-sdk:s3:getObject",
"ResultSelector": {
"html.$": "$.Body"
},
"ResultPath": "$.filled_form_html"
},
"Email filled form": {
"Type": "Task",
Expand All @@ -192,14 +205,15 @@
"destination_email.$": "$.execution_metadata.sender_email",
"sender_email.$": "$.execution_metadata.destination_email[0]",
"subject": "",
"multipart_mime_type": "alternative",
"body": [
{
"type": "plain",
"message": "Voici le formulaire rempli. Merci."
"message": "Voici le formulaire rempli: "
},
{
"type": "html",
"message": "<h1>test</h1>"
"message.$": "$.filled_form_html.html"
}
]
}
Expand Down

0 comments on commit a0a3fd3

Please sign in to comment.