{
	"name": "form/manager/workpost_gig/run.json",
	"info": "start new work phase...",
	"rec": {
		"prwo.json_data.start_person_id": "AK",
		"prwo.production_lot": "",
		"prwo.work_phase_number": 1,
		"prwo.info": ""
	},
	"start_new_phase": {
		"code": [
			{
				"parameter": ["4d", "convert/wpa/new_record.json", "rec"],
				"function": "convertAndSave",
				"result": "wpaRec"
			}
		]
	},
	"code": [
		{
			"parameter": [
				"query/manager/product/product_work/actual/employee_open_phase.json",
				{
					"production_lot": "rec.prwo.production_lot",
					"phase": "rec.prwo.work_phase_number",
					"employee": "rec.prwo.json_data.start_person_id"
				}
			],
			"function": "query",
			"result": "wpaTbl"
		},
		{
			"if": ["wpaTbl", "is empty"],
			"true": "start_new_phase"
		}
	]
}
