{
  "objects": [
    {
      "id": "ActivityId33",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Transform staging_dim_country",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformCountries/transformCountries_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId34"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId24",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Insert new tracks",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewTracks/insertNewTracks_run.sh --context=Production ",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId23"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId18",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Export staging_dim_label",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/exportLabel/exportLabel_run.sh --context=Production ",
      "onFail": {
        "ref": "ActionId2"
      },
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId13",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Update old labels",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldLabel/updateOldLabel_run.sh --context=Production ",
      "onFail": {
        "ref": "ActionId2"
      },
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId16"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "Default",
      "scheduleType": "cron",
      "failureAndRerunMode": "CASCADE",
      "name": "Default",
      "role": "DataPipelineDefaultRole",
      "resourceRole": "DataPipelineDefaultResourceRole"
    },
    {
      "id": "ActivityId32",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Upload staging_dim_country",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context=Production --context_param dimension_table_name=staging_dim_country",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId33"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId8",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Transform staging_dim_owner",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformOwner/transformOwner_run.sh --context=Production ",
      "onFail": {
        "ref": "ActionId5"
      },
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId6"
      }
    },
    {
      "id": "ActivityId25",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Transform staging_dim_artist",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformArtist/transformArtist_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId26"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId41",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Upload staging_dim_isrc",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context=Production --context_param dimension_table_name=staging_dim_isrc",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId42"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId15",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Insert new labels",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewLabel/insertNewLabel_run.sh --context=Production ",
      "onFail": {
        "ref": "ActionId2"
      },
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId13"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId7",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Insert new releases",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewRelease/insertNewRelease_run.sh --context=Production ",
      "onFail": {
        "ref": "ActionId1"
      },
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId5"
      }
    },
    {
      "id": "ActivityId6",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Export staging_dim_owner",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/exportOwner/exportOwner_run.sh --context=Production ",
      "onFail": {
        "ref": "ActionId5"
      },
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId1",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Export staging_dim_release",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/exportRelease/exportRelease_run.sh --context=Production ",
      "onFail": {
        "ref": "ActionId1"
      },
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId38",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Update old isrcs",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldISRC/updateOldISRC_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId40"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId20",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Export staging_dim_track",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/exportDimTrack/exportDimTrack_run.sh --context=Production ",
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId9",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Upload staging_dim_owner to S3",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context_param dimension_table_name=staging_dim_owner --context=Production ",
      "onFail": {
        "ref": "ActionId5"
      },
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId8"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId30",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Upload staging_dim_artist",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context=Production --context_param dimension_table_name=staging_dim_artist",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId25"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId35",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Insert new countries",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewCountries/insertNewCountries_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId36"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId14",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Upload staging_dim_label",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context_param dimension_table_name=staging_dim_label --context=Production ",
      "onFail": {
        "ref": "ActionId2"
      },
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId17"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId43",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Export staging_dim_isrc",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/exportISRC/exportISRC_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId24"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId22",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "copy staging_dim_track from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context_param Redshift_table_name=staging_dim_track --context=Production ",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId21"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId19",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Transform staging_dim_track",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformTrack/transformTrack_run.sh --context=Production ",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId20"
      }
    },
    {
      "message": "Dim Label Refresh Failed",
      "id": "ActionId2",
      "subject": "Dim Label Refresh Failed",
      "name": "Dim Label Refresh Failed",
      "topicArn": "arn:aws:sns:us-east-1:437795906767:data_pipeline_topic",
      "type": "SnsAlarm"
    },
    {
      "id": "ActivityId40",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "copy staging_dim_isrc from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context=Production --context_param Redshift_table_name=staging_dim_isrc",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId41"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId21",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Upload staging_dim_track",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context_param dimension_table_name=staging_dim_track --context=Production ",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId19"
      }
    },
    {
      "id": "ActivityId11",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Update old owner",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldOwner/updateOldOwner_run.sh --context=Production ",
      "onFail": {
        "ref": "ActionId5"
      },
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId10"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActionId5",
      "message": "Owner Refresh Failed",
      "subject": "Owner Refresh Failed",
      "name": "Owner Refresh Failed",
      "topicArn": "arn:aws:sns:us-east-1:437795906767:data_pipeline_topic",
      "type": "SnsAlarm"
    },
    {
      "id": "ActivityId16",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "copy staging_dim_label from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context_param Redshift_table_name=staging_dim_label --context=Production ",
      "onFail": {
        "ref": "ActionId2"
      },
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId14"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId3",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "copy staging_dim_release from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context_param Redshift_table_name=staging_dim_release --context=Production ",
      "onFail": {
        "ref": "ActionId1"
      },
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId4"
      }
    },
    {
      "id": "ActivityId17",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Transform staging_dim_label",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformLabel/transformLabel_run.sh --context=Production ",
      "onFail": {
        "ref": "ActionId2"
      },
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId18"
      }
    },
    {
      "id": "ActivityId42",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Transform staging_dim_isrc",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformISRC/transformISRC_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId43"
      }
    },
    {
      "id": "ActionId1",
      "message": "Artist Refresh Failed",
      "subject": "Artist Refresh Failed",
      "name": "Artist Refresh Failed",
      "topicArn": "arn:aws:sns:us-east-1:437795906767:data_pipeline_topic",
      "type": "SnsAlarm"
    },
    {
      "id": "ActivityId31",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "copy staging_dim_country from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context=Production --context_param Redshift_table_name=staging_dim_country",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId32"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId29",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "copy staging_dim_artist from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context_param Redshift_table_name=staging_dim_artist --context=Production ",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId30"
      }
    },
    {
      "id": "ScheduleId3",
      "startDateTime": "2014-02-03T00:00:00",
      "name": "DimRefresh",
      "type": "Schedule",
      "period": "1 Days"
    },
    {
      "id": "ActivityId27",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Insert new artists",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewArtist/insertNewArtist_run.sh --context=Production",
      "onFail": {
        "ref": "ActionId1"
      },
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId28"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId34",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Export staging_dim_country",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/exportCountry/exportCountry_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId5",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Update old releases",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldRelease/updateOldRelease_run.sh --context=Production ",
      "onFail": {
        "ref": "ActionId1"
      },
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId3"
      }
    },
    {
      "id": "ActivityId36",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Update old countries",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldCountries/updateOldCountries_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId31"
      }
    },
    {
      "id": "ActivityId28",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Update old artists",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldArtist/updateOldArtist_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId29"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId12",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Insert new owner",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewOwner/insertNewOwner_run.sh --context=Production ",
      "onFail": {
        "ref": "ActionId5"
      },
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId11"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId26",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Export staging_dim_artist",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/exportArtist/exportArtist_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId37",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Insert new ISRCS",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewISRC/insertNewISRC_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId38"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId2",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Transform staging_dim_release",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformRelease/transformRelease_run.sh --context=Production ",
      "onFail": {
        "ref": "ActionId1"
      },
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId1"
      }
    },
    {
      "id": "ActivityId4",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Upload staging_dim_release to S3",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context_param dimension_table_name=staging_dim_release --context=Production ",
      "onFail": {
        "ref": "ActionId1"
      },
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId2"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId23",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "Update old tracks",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldTracks/updateOldTracks_run.sh --context=Production ",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId22"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId10",
      "schedule": {
        "ref": "ScheduleId3"
      },
      "name": "copy staging_dim_owner from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context_param Redshift_table_name=staging_dim_owner --context=Production ",
      "onFail": {
        "ref": "ActionId5"
      },
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId9"
      },
      "type": "ShellCommandActivity"
    }
  ]
}