Skip to content

Commit a0246c8

Browse files
committed
update statemachine to rerun UpdatingSalesforceWithNotifications when not done
1 parent 2a7691d commit a0246c8

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

stateMachine/cfn/cfn.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Resources:
322322
"Resource": "${UpdatingSalesforceWithNotificationsLambdaArn}",
323323
"InputPath": "$.cohortSpec",
324324
"ResultPath": "$.result",
325-
"Next": "Amending",
325+
"Next": "IsUpdatingSalesforceWithNotificationsComplete",
326326
"Retry": [
327327
{
328328
"ErrorEquals": [
@@ -336,6 +336,18 @@ Resources:
336336
}
337337
]
338338
},
339+
"IsUpdatingSalesforceWithNotificationsComplete": {
340+
"Type": "Choice",
341+
"Comment": "Is the notifications Salesforce update step complete?",
342+
"Choices": [
343+
{
344+
"Variable": "$.result.isComplete",
345+
"BooleanEquals": false,
346+
"Next": "UpdatingSalesforceWithNotifications"
347+
}
348+
],
349+
"Default": "Amending"
350+
},
339351
"Amending": {
340352
"Type": "Task",
341353
"Comment": "Applying price-rise amendment in Zuora on each sub in this cohort.",

0 commit comments

Comments
 (0)