{
	"schema": "1.0",
	"key": "job_v1_0_0",
	"title": "job_v1_0_0",
	"tasks": [
		{
			"name": "table-export-items",
			"taskReferenceName": "table_export_products",
			"description": "Export of products on which to apply suggestions",
			"optional": false,
			"type": "SUB_WORKFLOW",
			"inputParameters": {
				"tableKey": "${workflow.variable.products_table_key}",
				"mode": "USER_SELECTION",
				"fileName": "items.xml"
			}
		},
		{
			"name": "table-export-schema",
			"taskReferenceName": "table_export_schema",
			"description": "Export products data structure",
			"optional": false,
			"type": "SUB_WORKFLOW",
			"inputParameters": {
				"tableKey": "${workflow.variable.products_table_key}",
				"mode": "ACTIVE",
				"fileName": "table.xml"
			}
		},
		{
			"name": "file-transformation-xslt",
			"taskReferenceName": "file_transformation_xslt_create_options_file",
			"description": "Create apply suggestions options file",
			"optional": false,
			"type": "SUB_WORKFLOW",
			"inputParameters": {
				"mode": "FILE",
				"file": "${table_export_schema.output.file}",
				"xslt": "file://assets/create-options-file.xslt",
				"fileName": "options.xml"
			}
		},
		{
			"name": "exchange-apply-suggestions",
			"taskReferenceName": "exchange_apply_suggestions",
			"description": "Apply suggestions",
			"optional": false,
			"type": "SUB_WORKFLOW",
			"inputParameters": {
				"items": "${table_export_products.output.file}",
				"options": "${file_transformation_xslt_create_options_file.output.file}",
				"apiKey": "${workflow.variable.api_key}",
				"domain": "${workflow.variable.domain}",
				"identifierKey": "${workflow.variable.identifier_key}"
			}
		}
	],
	"outputParameters": {
		"suggestions-application-report": "${exchange_apply_suggestions.output.report}"
	}
}