A simple Choice Activity in serverless.yml file would be
CheckActionType:
Type: Choice
Choices:
- Variable: "$.results.ACTION"
StringEquals: "CREATED"
Next: CreateOrderTask
but how would we implement a logical Operator in Choice Task ( for example for the given ASL, if anybody can give me corresponding serverless.yml file)
"CheckActionType": {
"Type": "Choice",
"Choices": [
{
"And": [
{
"Variable": "$.results.ACTION",
"StringEquals": "CREATED"
},
{
"Variable": "$.results.BUSINESS",
"StringEquals": "Payroll"
}
],
"Next": "CreateOrderTask"
},
any help would be highly appreciated
Thanks