{
  "objects": [
    {
      "id": "ActivityId27",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Update old dms_customer",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldDmsCustomer/updateOldDmsCustomer_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId28"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId34",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Upload staging_release_subgenre",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context=Production --context_param dimension_table_name=staging_release_subgenre",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId35"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId4",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Copy staging_dim_catalog from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context=Production --context_param Redshift_table_name=staging_dim_catalog",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId3"
      }
    },
    {
      "id": "ActivityId43",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "insert new Genre",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewGenre/insertNewGenre_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId38"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId25",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Update latitudes and longitudes",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldZip/updateOldZip_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId21"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId22",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Copy dim_zip_error from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context=Production --context_param Redshift_table_name=dim_zip_error",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId23"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "Default",
      "scheduleType": "cron",
      "failureAndRerunMode": "CASCADE",
      "name": "Default",
      "role": "DataPipelineDefaultRole",
      "resourceRole": "DataPipelineDefaultResourceRole"
    },
    {
      "id": "ActivityId16",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Transform staging_dim_imprint",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformImprint/transformImprint_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId17"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId39",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Copy staging_dim_genre",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context=Production --context_param Redshift_table_name=staging_dim_genre",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId40"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId31",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Export staging_dms_customer",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/export_dms_customer/export_dms_customer_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId26",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Insert new dms_customer",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewDmsCustomer/insertNewDmsCustomer_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId27"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId3",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Upload staging_dim_catalog to S3",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context=Production --context_param dimension_table_name=staging_dim_catalog",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId2"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId37",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "insert new release subgenre",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewReleaseSubgenre/insertNewReleaseSubgenre_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId32"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId2",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Transform staging_dim_catalog",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformCatalog/transformCatalog_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId1"
      }
    },
    {
      "id": "ActivityId17",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Export staging_dim_imprint",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/exportImprint/exportImprint_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId36",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Export staging_release_subgenre",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/export_release_subgenre/export_release_subgenre_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId14",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Copy staging_dim_imprint from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context=Production --context_param Redshift_table_name=staging_dim_imprint",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId15"
      }
    },
    {
      "id": "ActivityId1",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Export staging_dim_catalog",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/exportCatalog/exportCatalog_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId11",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Update old subaccount",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldSubaccount/updateOldSubaccount_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId10"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId5",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Update old catalog",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldCatalog/updateOldCatalog_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId4"
      }
    },
    {
      "id": "ActivityId23",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Upload dim_zip_error",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context=Production --context_param dimension_table_name=dim_zip_error",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId24"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId32",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Update old release subgenre",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldReleaseSubgenre/updateOldReleaseSubgenre_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId33"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId20",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Export staging_dim_zip",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/exportDimZip/exportDimZip_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId28",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Copy staging_dms_customer from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context=Production --context_param Redshift_table_name=staging_dms_customer",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId29"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId7",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Export staging_dim_subaccount",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/exportSubaccount/exportSubaccount_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId18",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Insert new imprint",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewImprint/insertNewImprint_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId14"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId8",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Transform staging_dim_subaccount",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformSubaccount/transformSubaccount_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId7"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId24",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Upload staging_dim_zip",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context=Production --context_param dimension_table_name=staging_dim_zip",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId19"
      }
    },
    {
      "id": "ScheduleId7",
      "startDateTime": "2014-02-03T00:00:00",
      "name": "DimRefresh",
      "type": "Schedule",
      "period": "1 Days"
    },
    {
      "id": "ActivityId40",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Upload staging_dim_genre",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context=Production --context_param dimension_table_name=staging_dim_genre",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId41"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId41",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Transform staging_dim_genre",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformGenre/transformGenre_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId42"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId42",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Export staging_dim_genre",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/exportGenre/exportGenre_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId12",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "stdout": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewSubaccount/insertNewSubaccount_run.sh --context=Production",
      "name": "Insert new subaccount",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewSubaccount/insertNewSubaccount_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId11"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId35",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Transform staging_release_subgenre",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformReleaseSubgenre/transformReleaseSubgenre_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId36"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId10",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Copy staging_dim_subaccount from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context=Production --context_param Redshift_table_name=staging_dim_subaccount",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId9"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId30",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Transform staging_dms_customer",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformDmsCustomer/transformDmsCustomer_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId31"
      }
    },
    {
      "id": "ActivityId33",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Copy staging_release_subgenre",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context=Production --context_param Redshift_table_name=staging_release_subgenre",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId34"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId38",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Update old genre",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/updateOldGenre/updateOldGenre_run.sh --context=Production",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId39"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId9",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Upload staging_dim_subaccount to S3",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context=Production --context_param dimension_table_name=staging_dim_subaccount",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId8"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId19",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Transform staging_dim_zip",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/transformZip/transformZip_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId20"
      }
    },
    {
      "id": "ActivityId29",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Upload staging_dms_customer",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context=Production --context_param dimension_table_name=staging_dms_customer",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId30"
      }
    },
    {
      "id": "ActivityId21",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Copy staging_dim_zip from S3 to Redshift",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/copyFromS3ToRedshift/copyFromS3ToRedshift_run.sh --context=Production --context_param Redshift_table_name=staging_dim_zip",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId22"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId15",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Upload staging_dim_imprint",
      "command": "/Analytics/CommonDimRefreshRelatedJobs/CommonDimRefreshRelatedJobs/uploadDimTableStagingFileToS3/uploadDimTableStagingFileToS3_run.sh --context=Production --context_param dimension_table_name=staging_dim_imprint",
      "workerGroup": "production",
      "dependsOn": {
        "ref": "ActivityId16"
      },
      "type": "ShellCommandActivity"
    },
    {
      "id": "ActivityId6",
      "schedule": {
        "ref": "ScheduleId7"
      },
      "name": "Insert new catalog",
      "command": "/Analytics/DimensionRefresh/DimensionRefresh/insertNewCatalog/insertNewCatalog_run.sh --context=Production",
      "workerGroup": "production",
      "type": "ShellCommandActivity",
      "dependsOn": {
        "ref": "ActivityId5"
      }
    }
  ]
}