Skip to content

Commit

Permalink
add more rules for supported file types
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbalcaen committed May 3, 2024
1 parent 7eca90d commit da3e4a4
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions state_machines/rfp_email_form_fill/state_machine.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,33 @@
"Variable": "$"
},
{
"Variable": "$",
"StringMatches": "*.txt",
"Next": "Do nothing on supported file type (txt)"
"Or": [
{
"Variable": "$",
"StringMatches": "*.txt"
},
{
"Variable": "$",
"StringMatches": "*.csv"
},
{
"Variable": "$",
"StringMatches": "*.json"
},
{
"Variable": "$",
"StringMatches": "*.png"
},
{
"Variable": "$",
"StringMatches": "*.jpeg"
},
{
"Variable": "$",
"StringMatches": "*.jpg"
}
],
"Next": "Do nothing on supported file type"
},
{
"Variable": "$",
Expand Down Expand Up @@ -296,7 +320,7 @@
],
"Type": "Task"
},
"Do nothing on supported file type (txt)": {
"Do nothing on supported file type": {
"Type": "Pass",
"End": true,
"Parameters": {
Expand Down

0 comments on commit da3e4a4

Please sign in to comment.