conversation-sync-state-machine.json31.1 KBView on GitHub {
"WFCronSyncStateMachine871F8F2B": {
"name": "aws-staging-wf-cron-sync",
"definition": {
"Fn::Join": [
"",
[
"{\"StartAt\":\"CronSync_Setup\",\"States\":{\"CronSync_Setup\":{\"Next\":\"CronSync_CheckAndSync\",\"Type\":\"Task\",\"TimeoutSeconds\":300,\"ResultPath\":\"$.steps.setup\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"cron-sync.setup\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"CronSync_CheckAndSync\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.checkAndSync\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"cron-sync.checkAndSync\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}}},\"TimeoutSeconds\":3600}"
]
]
}
},
"WFSyncThreadsStateMachineCF3CB301": {
"name": "aws-staging-wf-sync-threads",
"definition": {
"Fn::Join": [
"",
[
"{\"StartAt\":\"SyncThreads_Setup\",\"States\":{\"SyncThreads_Setup\":{\"Next\":\"SyncThreads_ProcessPage\",\"Type\":\"Task\",\"TimeoutSeconds\":300,\"ResultPath\":\"$.steps.setup\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"sync-threads.setup\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"SyncThreads_ProcessPage\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.processPage\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"sync-threads.process-page\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}}},\"TimeoutSeconds\":3600}"
]
]
}
},
"WFSyncThreadsCoordinatorStateMachineFCA15EC3": {
"name": "aws-staging-wf-sync-threads-coordinator",
"definition": {
"Fn::Join": [
"",
[
"{\"StartAt\":\"SyncThreadsCoord_Setup\",\"States\":{\"SyncThreadsCoord_Setup\":{\"Next\":\"SyncThreadsCoord_ProcessPage\",\"Type\":\"Task\",\"TimeoutSeconds\":300,\"ResultPath\":\"$.steps.setup\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"sync-threads-coordinator.setup\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"SyncThreadsCoord_ProcessPage\":{\"Next\":\"SyncThreadsCoord_HasMorePages\",\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.processPage\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"sync-threads-coordinator.process-page\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"SyncThreadsCoord_ReshapeParams\":{\"Type\":\"Pass\",\"Parameters\":{\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$.$\":\"States.JsonMerge($.params, States.StringToJson(States.Format('\\\\{\\\"pageToken\\\":\\\"{}\\\"\\\\}', $.steps.processPage.nextPageToken)), false)\",\"steps.$\":\"$.steps\"},\"Next\":\"SyncThreadsCoord_ProcessPage\"},\"SyncThreadsCoord_HasMorePages\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.steps.processPage.nextPageToken\",\"IsPresent\":true,\"Next\":\"SyncThreadsCoord_ReshapeParams\"}],\"Default\":\"SyncThreadsCoord_UpdateHistoryId\"},\"SyncThreadsCoord_UpdateHistoryId\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":300,\"ResultPath\":\"$.steps.updateHistoryId\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"sync-threads-coordinator.update-history-id\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}}},\"TimeoutSeconds\":14400}"
]
]
}
},
"WFConversationRefreshStateMachineA9068F38": {
"name": "aws-staging-wf-conversation-refresh",
"definition": {
"Fn::Join": [
"",
[
"{\"StartAt\":\"ConvRefresh_CheckAopEnabled\",\"States\":{\"ConvRefresh_CheckAopEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.params.config.refreshByAop.enabled\",\"BooleanEquals\":true,\"Next\":\"ConvRefresh_RefreshAopRoot\"}],\"Default\":\"ConvRefresh_SkipAop\"},\"ConvRefresh_SkipAop\":{\"Type\":\"Pass\",\"Next\":\"ConvRefresh_AfterAop\"},\"ConvRefresh_AfterAop\":{\"Type\":\"Pass\",\"Next\":\"ConvRefresh_CheckSearchEnabled\"},\"ConvRefresh_RefreshAopBatchMap\":{\"Type\":\"Map\",\"ResultPath\":null,\"Next\":\"ConvRefresh_AfterAop\",\"ItemsPath\":\"$.steps.refreshByAopRoot.batches\",\"ItemSelector\":{\"workflowName.$\":\"$$.Execution.Input.workflowName\",\"workflowId.$\":\"$$.Execution.Input.workflowId\",\"item.$\":\"$$.Map.Item.Value\"},\"ItemProcessor\":{\"ProcessorConfig\":{\"Mode\":\"INLINE\"},\"StartAt\":\"ConvRefresh_RefreshAopBatch\",\"States\":{\"ConvRefresh_RefreshAopBatch\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.refreshBatch\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-refresh.refresh-batch\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.item\"}}}}},\"MaxConcurrency\":5},\"ConvRefresh_RefreshAopRoot\":{\"Next\":\"ConvRefresh_RefreshAopBatchMap\",\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.refreshByAopRoot\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-refresh.refresh-by-aop-root\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"ConvRefresh_CheckSearchEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.params.config.refreshBySearchTerms.enabled\",\"BooleanEquals\":true,\"Next\":\"ConvRefresh_RefreshSearchRoot\"}],\"Default\":\"ConvRefresh_SkipSearch\"},\"ConvRefresh_SkipSearch\":{\"Type\":\"Pass\",\"Next\":\"ConvRefresh_Done\"},\"ConvRefresh_Done\":{\"Type\":\"Pass\",\"End\":true},\"ConvRefresh_RefreshSearchBatchMap\":{\"Type\":\"Map\",\"ResultPath\":null,\"Next\":\"ConvRefresh_Done\",\"ItemsPath\":\"$.steps.refreshBySearchRoot.batches\",\"ItemSelector\":{\"workflowName.$\":\"$$.Execution.Input.workflowName\",\"workflowId.$\":\"$$.Execution.Input.workflowId\",\"item.$\":\"$$.Map.Item.Value\"},\"ItemProcessor\":{\"ProcessorConfig\":{\"Mode\":\"INLINE\"},\"StartAt\":\"ConvRefresh_RefreshSearchBatch\",\"States\":{\"ConvRefresh_RefreshSearchBatch\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.refreshBatch\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-refresh.refresh-batch\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.item\"}}}}},\"MaxConcurrency\":5},\"ConvRefresh_RefreshSearchRoot\":{\"Next\":\"ConvRefresh_RefreshSearchBatchMap\",\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.refreshBySearchRoot\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-refresh.refresh-by-search-root\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}}},\"TimeoutSeconds\":7200}"
]
]
}
},
"WFConversationSyncStateMachine511B442E": {
"name": "aws-staging-wf-conversation-sync",
"definition": {
"Fn::Join": [
"",
[
"{\"StartAt\":\"ConvSync_Setup\",\"States\":{\"ConvSync_Setup\":{\"Next\":\"ConvSync_CheckSentEnabled\",\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.setup\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.setup\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"ConvSync_CheckSentEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.params.config.sentSync.enabled\",\"BooleanEquals\":true,\"Next\":\"ConvSync_SyncSent\"}],\"Default\":\"ConvSync_SkipSent\"},\"ConvSync_SkipSent\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_AfterSent\"},\"ConvSync_AfterSent\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_CheckInboxEnabled\"},\"ConvSync_SyncSent\":{\"Next\":\"ConvSync_AfterSent\",\"Type\":\"Task\",\"TimeoutSeconds\":1200,\"ResultPath\":\"$.steps.syncSent\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-sent\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"ConvSync_CheckInboxEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.params.config.inboxSync.enabled\",\"BooleanEquals\":true,\"Next\":\"ConvSync_SyncInbox\"}],\"Default\":\"ConvSync_SkipInbox\"},\"ConvSync_SkipInbox\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_AfterInbox\"},\"ConvSync_AfterInbox\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_CheckLabelEnabled\"},\"ConvSync_SyncInbox\":{\"Next\":\"ConvSync_AfterInbox\",\"Type\":\"Task\",\"TimeoutSeconds\":1200,\"ResultPath\":\"$.steps.syncInbox\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-inbox\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"ConvSync_CheckLabelEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.params.config.labelSync.enabled\",\"BooleanEquals\":true,\"Next\":\"ConvSync_SyncLabelMap\"}],\"Default\":\"ConvSync_SkipLabel\"},\"ConvSync_SkipLabel\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_AfterLabel\"},\"ConvSync_AfterLabel\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_CheckSearchEnabled\"},\"ConvSync_SyncLabelMap\":{\"Type\":\"Map\",\"ResultPath\":null,\"Next\":\"ConvSync_AfterLabel\",\"ItemsPath\":\"$.params.config.labelSync.labels\",\"ItemSelector\":{\"workflowName.$\":\"$$.Execution.Input.workflowName\",\"workflowId.$\":\"$$.Execution.Input.workflowId\",\"item.$\":\"$$.Map.Item.Value\"},\"ItemProcessor\":{\"ProcessorConfig\":{\"Mode\":\"INLINE\"},\"StartAt\":\"ConvSync_SyncLabel\",\"States\":{\"ConvSync_SyncLabel\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.syncLabel\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-label\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.item\"}}}}},\"MaxConcurrency\":3},\"ConvSync_CheckSearchEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.params.config.searchSync.enabled\",\"BooleanEquals\":true,\"Next\":\"ConvSync_SyncSearchMap\"}],\"Default\":\"ConvSync_SkipSearch\"},\"ConvSync_SkipSearch\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_AfterSearch\"},\"ConvSync_AfterSearch\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_CheckMeetingEnabled\"},\"ConvSync_SyncSearchMap\":{\"Type\":\"Map\",\"ResultPath\":null,\"Next\":\"ConvSync_AfterSearch\",\"ItemsPath\":\"$.params.config.searchSync.queries\",\"ItemSelector\":{\"workflowName.$\":\"$$.Execution.Input.workflowName\",\"workflowId.$\":\"$$.Execution.Input.workflowId\",\"item\":{\"query.$\":\"$$.Map.Item.Value\"}},\"ItemProcessor\":{\"ProcessorConfig\":{\"Mode\":\"INLINE\"},\"StartAt\":\"ConvSync_SyncSearch\",\"States\":{\"ConvSync_SyncSearch\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.syncSearch\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-search\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.item\"}}}}},\"MaxConcurrency\":3},\"ConvSync_CheckMeetingEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.params.config.meetingSync.enabled\",\"BooleanEquals\":true,\"Next\":\"ConvSync_SyncMeetingsPrepare\"}],\"Default\":\"ConvSync_SkipMeeting\"},\"ConvSync_SkipMeeting\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_AfterMeeting\"},\"ConvSync_AfterMeeting\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_CheckSlackEnabled\"},\"ConvSync_SyncMeetingDomainMap\":{\"Type\":\"Map\",\"ResultPath\":null,\"Next\":\"ConvSync_AfterMeeting\",\"ItemsPath\":\"$.steps.syncMeetingsPrepare.domains\",\"ItemSelector\":{\"workflowName.$\":\"$$.Execution.Input.workflowName\",\"workflowId.$\":\"$$.Execution.Input.workflowId\",\"item.$\":\"$$.Map.Item.Value\"},\"ItemProcessor\":{\"ProcessorConfig\":{\"Mode\":\"INLINE\"},\"StartAt\":\"ConvSync_SyncMeetingDomain\",\"States\":{\"ConvSync_SyncMeetingDomain\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":1800,\"ResultPath\":\"$.steps.syncMeetingDomain\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-meeting-domain\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.item\"}}}}},\"MaxConcurrency\":5},\"ConvSync_SyncMeetingsBatchMap\":{\"Type\":\"Map\",\"ResultPath\":null,\"Next\":\"ConvSync_SyncMeetingDomainMap\",\"ItemsPath\":\"$.steps.syncMeetingsPrepare.batches\",\"ItemSelector\":{\"workflowName.$\":\"$$.Execution.Input.workflowName\",\"workflowId.$\":\"$$.Execution.Input.workflowId\",\"item.$\":\"$$.Map.Item.Value\"},\"ItemProcessor\":{\"ProcessorConfig\":{\"Mode\":\"INLINE\"},\"StartAt\":\"ConvSync_SyncMeetingsBatch\",\"States\":{\"ConvSync_SyncMeetingsBatch\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":1200,\"ResultPath\":\"$.steps.syncMeetingsBatch\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-meetings-batch\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.item\"}}}}},\"MaxConcurrency\":3},\"ConvSync_SyncMeetingsPrepare\":{\"Next\":\"ConvSync_SyncMeetingsBatchMap\",\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.syncMeetingsPrepare\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-meetings-prepare\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"ConvSync_CheckSlackEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.params.config.slackSync.enabled\",\"BooleanEquals\":true,\"Next\":\"ConvSync_SyncSlackPrepare\"}],\"Default\":\"ConvSync_SkipSlack\"},\"ConvSync_SkipSlack\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_AfterSlack\"},\"ConvSync_AfterSlack\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_CheckCrmEnabled\"},\"ConvSync_SyncSlackBatchMap\":{\"Type\":\"Map\",\"ResultPath\":null,\"Next\":\"ConvSync_AfterSlack\",\"ItemsPath\":\"$.steps.syncSlackPrepare.batches\",\"ItemSelector\":{\"workflowName.$\":\"$$.Execution.Input.workflowName\",\"workflowId.$\":\"$$.Execution.Input.workflowId\",\"item.$\":\"$$.Map.Item.Value\"},\"ItemProcessor\":{\"ProcessorConfig\":{\"Mode\":\"INLINE\"},\"StartAt\":\"ConvSync_SyncSlackBatch\",\"States\":{\"ConvSync_SyncSlackBatch\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.syncSlackBatch\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-slack-batch\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.item\"}}}}},\"MaxConcurrency\":3},\"ConvSync_SyncSlackPrepare\":{\"Next\":\"ConvSync_SyncSlackBatchMap\",\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.syncSlackPrepare\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-slack-prepare\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"ConvSync_CheckCrmEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.params.config.crmSync.enabled\",\"BooleanEquals\":true,\"Next\":\"ConvSync_SyncCrmPrepare\"}],\"Default\":\"ConvSync_SkipCrm\"},\"ConvSync_SkipCrm\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_AfterCrm\"},\"ConvSync_AfterCrm\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_SyncCleanup\"},\"ConvSync_SyncCrmDomainMap\":{\"Type\":\"Map\",\"ResultPath\":null,\"Next\":\"ConvSync_AfterCrm\",\"ItemsPath\":\"$.steps.syncCrmCollectDomains.domains\",\"ItemSelector\":{\"workflowName.$\":\"$$.Execution.Input.workflowName\",\"workflowId.$\":\"$$.Execution.Input.workflowId\",\"item.$\":\"$$.Map.Item.Value\"},\"ItemProcessor\":{\"ProcessorConfig\":{\"Mode\":\"INLINE\"},\"StartAt\":\"ConvSync_SyncCrmDomain\",\"States\":{\"ConvSync_SyncCrmDomain\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":1200,\"ResultPath\":\"$.steps.syncCrmDomain\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-crm-domain\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.item\"}}}}},\"MaxConcurrency\":5},\"ConvSync_SyncCrmCollectDomains\":{\"Next\":\"ConvSync_SyncCrmDomainMap\",\"Type\":\"Task\",\"TimeoutSeconds\":300,\"ResultPath\":\"$.steps.syncCrmCollectDomains\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-crm-collect-domains\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"ConvSync_SyncCrmBatchMap\":{\"Type\":\"Map\",\"ResultPath\":null,\"Next\":\"ConvSync_SyncCrmCollectDomains\",\"ItemsPath\":\"$.steps.syncCrmPrepare.batches\",\"ItemSelector\":{\"workflowName.$\":\"$$.Execution.Input.workflowName\",\"workflowId.$\":\"$$.Execution.Input.workflowId\",\"item.$\":\"$$.Map.Item.Value\"},\"ItemProcessor\":{\"ProcessorConfig\":{\"Mode\":\"INLINE\"},\"StartAt\":\"ConvSync_SyncCrmBatch\",\"States\":{\"ConvSync_SyncCrmBatch\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.syncCrmBatch\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-crm-batch\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.item\"}}}}},\"MaxConcurrency\":3},\"ConvSync_SyncCrmPrepare\":{\"Next\":\"ConvSync_SyncCrmBatchMap\",\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.syncCrmPrepare\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-crm-prepare\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"ConvSync_SyncCleanup\":{\"Next\":\"ConvSync_CheckStageHistoryEnabled\",\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.syncCleanup\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-cleanup\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"ConvSync_CheckStageHistoryEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"And\":[{\"Variable\":\"$.params.config.stageHistorySync\",\"IsPresent\":true},{\"Variable\":\"$.params.config.stageHistorySync.enabled\",\"BooleanEquals\":true}],\"Next\":\"ConvSync_SyncStageHistory\"}],\"Default\":\"ConvSync_SkipStageHistory\"},\"ConvSync_SkipStageHistory\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_AfterStageHistory\"},\"ConvSync_AfterStageHistory\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_CheckFinalizeEnabled\"},\"ConvSync_SyncStageHistory\":{\"Next\":\"ConvSync_AfterStageHistory\",\"Type\":\"Task\",\"TimeoutSeconds\":1200,\"ResultPath\":\"$.steps.syncStageHistory\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.sync-stage-history\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"ConvSync_CheckFinalizeEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"And\":[{\"Variable\":\"$.params.mode\",\"StringEquals\":\"two-phase\"},{\"Not\":{\"Variable\":\"$.params.phase1Only\",\"BooleanEquals\":true}}],\"Next\":\"ConvSync_FinalizeMap\"}],\"Default\":\"ConvSync_SkipFinalize\"},\"ConvSync_SkipFinalize\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_AfterFinalize\"},\"ConvSync_AfterFinalize\":{\"Type\":\"Pass\",\"Next\":\"ConvSync_CheckBrainBackfillEnabled\"},\"ConvSync_FinalizeMap\":{\"Type\":\"Map\",\"ResultPath\":null,\"Next\":\"ConvSync_AfterFinalize\",\"ItemsPath\":\"$.steps.syncCleanup.conversationIds\",\"ItemSelector\":{\"workflowName.$\":\"$$.Execution.Input.workflowName\",\"workflowId.$\":\"$$.Execution.Input.workflowId\",\"item.$\":\"$$.Map.Item.Value\"},\"ItemProcessor\":{\"ProcessorConfig\":{\"Mode\":\"INLINE\"},\"StartAt\":\"ConvSync_FinalizeConversation\",\"States\":{\"ConvSync_FinalizeConversation\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":1200,\"ResultPath\":\"$.steps.finalizeConversation\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.finalize-conversation\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.item\"}}}}},\"MaxConcurrency\":10},\"ConvSync_CheckBrainBackfillEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"And\":[{\"Variable\":\"$.params.config.brainBackfill\",\"IsPresent\":true},{\"Variable\":\"$.params.config.brainBackfill.enabled\",\"BooleanEquals\":true}],\"Next\":\"ConvSync_BrainBackfillPrepare\"}],\"Default\":\"ConvSync_SkipBrainBackfill\"},\"ConvSync_SkipBrainBackfill\":{\"Type\":\"Pass\",\"End\":true},\"ConvSync_BrainBackfillPrepare\":{\"Next\":\"ConvSync_BrainBackfillBatchMap\",\"Type\":\"Task\",\"TimeoutSeconds\":600,\"ResultPath\":\"$.steps.brainBackfillPrepare\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.brain-backfill-prepare\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}},\"ConvSync_BrainBackfillBatchMap\":{\"Type\":\"Map\",\"ResultPath\":null,\"Next\":\"ConvSync_CheckBrainSynthesisEnabled\",\"ItemsPath\":\"$.steps.brainBackfillPrepare.batches\",\"ItemSelector\":{\"workflowName.$\":\"$$.Execution.Input.workflowName\",\"workflowId.$\":\"$$.Execution.Input.workflowId\",\"item.$\":\"$$.Map.Item.Value\"},\"ItemProcessor\":{\"ProcessorConfig\":{\"Mode\":\"INLINE\"},\"StartAt\":\"ConvSync_BrainBackfillBatch\",\"States\":{\"ConvSync_BrainBackfillBatch\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":900,\"ResultPath\":\"$.steps.brainBackfillBatch\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.brain-backfill-batch\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.item\"}}}}},\"MaxConcurrency\":3},\"ConvSync_CheckBrainSynthesisEnabled\":{\"Type\":\"Choice\",\"Choices\":[{\"And\":[{\"Variable\":\"$.params.config.brainBackfill\",\"IsPresent\":true},{\"Variable\":\"$.params.config.brainBackfill.runSynthesis\",\"BooleanEquals\":true}],\"Next\":\"ConvSync_ReshapeBrainSynthesizeParams\"}],\"Default\":\"ConvSync_SkipBrainSynthesis\"},\"ConvSync_SkipBrainSynthesis\":{\"Type\":\"Pass\",\"End\":true},\"ConvSync_ReshapeBrainSynthesizeParams\":{\"Type\":\"Pass\",\"Parameters\":{\"workflowName.$\":\"$.workflowName\",\"workflowId.$\":\"$.workflowId\",\"params\":{\"closedDealIds.$\":\"$.steps.brainBackfillPrepare.closedDealIds\",\"userId.$\":\"$.steps.brainBackfillPrepare.userId\",\"orgId.$\":\"$.steps.brainBackfillPrepare.orgId\",\"connectionId.$\":\"$.params.connectionId\",\"workflowRunId.$\":\"$.workflowId\"},\"steps.$\":\"$.steps\"},\"Next\":\"ConvSync_BrainBackfillSynthesize\"},\"ConvSync_BrainBackfillSynthesize\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":3600,\"ResultPath\":\"$.steps.brainBackfillSynthesize\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"conversation-sync.brain-backfill-synthesize\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}}},\"TimeoutSeconds\":21600}"
]
]
}
},
"WFDealReconcileStateMachine36A5554D": {
"name": "aws-staging-wf-deal-reconcile",
"definition": {
"Fn::Join": [
"",
[
"{\"StartAt\":\"DealReconcile_Run\",\"States\":{\"DealReconcile_Run\":{\"End\":true,\"Type\":\"Task\",\"TimeoutSeconds\":1680,\"ResultPath\":\"$.steps.run\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::sqs:sendMessage.waitForTaskToken\",\"Parameters\":{\"QueueUrl\":\"",
{
"Ref": "TestQueue6F0069AA"
},
"\",\"MessageBody\":{\"taskToken.$\":\"$$.Task.Token\",\"stepName\":\"deal-reconcile.run\",\"workflowName.$\":\"$.workflowName\",\"workflowRunId.$\":\"$.workflowId\",\"params.$\":\"$.params\"}}}},\"TimeoutSeconds\":7200}"
]
]
}
}
}