{
	"configuration": {
		"className": "com.liferay.headless.admin.workflow.dto.v1_0.WorkflowDefinition",
		"parameters": {
			"containsHeaders": "true",
			"createStrategy": "INSERT",
			"importStrategy": "ON_ERROR_FAIL",
			"updateStrategy": "UPDATE"
		},
		"taskItemDelegateName": "DEFAULT"
	},
	"items": [
		{
			"active": true,
			"content": {
				"#child-nodes": [
					{
						"#tag-name": "description",
						"#value": "A machine(function) approver can approve a workflow content."
					},
					{
						"#tag-name": "version",
						"#value": "4"
					},
					{
						"#child-nodes": [
							{
								"#tag-name": "name",
								"#value": "created"
							},
							{
								"#cdata-value": [
									"{",
									"    \"xy\": [",
									"        165,",
									"        76",
									"    ]",
									"}"
								],
								"#tag-name": "metadata"
							},
							{
								"#tag-name": "initial",
								"#value": "true"
							},
							{
								"#child-nodes": [
									{
										"#tag-name": "label",
										"#value": "created",
										"language-id": "en_US"
									}
								],
								"#tag-name": "labels"
							},
							{
								"#child-nodes": [
									{
										"#child-nodes": [
											{
												"#child-nodes": [
													{
														"#tag-name": "label",
														"#value": "review",
														"language-id": "en_US"
													}
												],
												"#tag-name": "labels"
											},
											{
												"#tag-name": "name",
												"#value": "created_review_review"
											},
											{
												"#tag-name": "target",
												"#value": "machine-review"
											},
											{
												"#tag-name": "default",
												"#value": "true"
											}
										],
										"#tag-name": "transition"
									}
								],
								"#tag-name": "transitions"
							}
						],
						"#tag-name": "state"
					},
					{
						"#child-nodes": [
							{
								"#tag-name": "name",
								"#value": "approved"
							},
							{
								"#cdata-value": [
									"{",
									"    \"terminal\": true,",
									"    \"xy\": [",
									"        539,",
									"        74",
									"    ]",
									"}"
								],
								"#tag-name": "metadata"
							},
							{
								"#child-nodes": [
									{
										"#child-nodes": [
											{
												"#tag-name": "name",
												"#value": "approve"
											},
											{
												"#tag-name": "status",
												"#value": "0"
											},
											{
												"#tag-name": "execution-type",
												"#value": "onEntry"
											}
										],
										"#tag-name": "action"
									}
								],
								"#tag-name": "actions"
							},
							{
								"#child-nodes": [
									{
										"#tag-name": "label",
										"#value": "approved",
										"language-id": "en_US"
									}
								],
								"#tag-name": "labels"
							}
						],
						"#tag-name": "state"
					},
					{
						"#child-nodes": [
							{
								"#tag-name": "name",
								"#value": "update"
							},
							{
								"#cdata-value": [
									"{",
									"    \"xy\": [",
									"        164,",
									"        533",
									"    ]",
									"}"
								],
								"#tag-name": "metadata"
							},
							{
								"#child-nodes": [
									{
										"#child-nodes": [
											{
												"#tag-name": "name",
												"#value": "deny"
											},
											{
												"#tag-name": "status",
												"#value": "4"
											},
											{
												"#tag-name": "priority",
												"#value": "1"
											},
											{
												"#tag-name": "execution-type",
												"#value": "onAssignment"
											}
										],
										"#tag-name": "action"
									},
									{
										"#child-nodes": [
											{
												"#tag-name": "name",
												"#value": "pending"
											},
											{
												"#tag-name": "status",
												"#value": "1"
											},
											{
												"#tag-name": "priority",
												"#value": "2"
											},
											{
												"#tag-name": "execution-type",
												"#value": "onAssignment"
											}
										],
										"#tag-name": "action"
									},
									{
										"#child-nodes": [
											{
												"#tag-name": "name",
												"#value": "Creator Modification Notification"
											},
											{
												"#cdata-value": [
													"Your submission was rejected by ${userName}, please modify and resubmit."
												],
												"#tag-name": "template"
											},
											{
												"#tag-name": "template-language",
												"#value": "freemarker"
											},
											{
												"#tag-name": "notification-type",
												"#value": "email"
											},
											{
												"#tag-name": "notification-type",
												"#value": "user-notification"
											},
											{
												"#child-nodes": [
													{
														"#tag-name": "user"
													}
												],
												"#tag-name": "recipients",
												"receptionType": "to"
											},
											{
												"#tag-name": "execution-type",
												"#value": "onAssignment"
											}
										],
										"#tag-name": "notification"
									}
								],
								"#tag-name": "actions"
							},
							{
								"#child-nodes": [
									{
										"#tag-name": "user"
									}
								],
								"#tag-name": "assignments"
							},
							{
								"#child-nodes": [
									{
										"#tag-name": "label",
										"#value": "update",
										"language-id": "en_US"
									}
								],
								"#tag-name": "labels"
							},
							{
								"#child-nodes": [
									{
										"#child-nodes": [
											{
												"#child-nodes": [
													{
														"#tag-name": "label",
														"#value": "resubmit",
														"language-id": "en_US"
													}
												],
												"#tag-name": "labels"
											},
											{
												"#tag-name": "name",
												"#value": "resubmit"
											},
											{
												"#tag-name": "target",
												"#value": "machine-review"
											},
											{
												"#tag-name": "default",
												"#value": "true"
											}
										],
										"#tag-name": "transition"
									}
								],
								"#tag-name": "transitions"
							}
						],
						"#tag-name": "task"
					},
					{
						"#child-nodes": [
							{
								"#tag-name": "name",
								"#value": "machine-review"
							},
							{
								"#tag-name": "description",
								"#value": "Machine Action reviews this entry."
							},
							{
								"#cdata-value": [
									"{",
									"    \"xy\": [",
									"        165,",
									"        292",
									"    ]",
									"}"
								],
								"#tag-name": "metadata"
							},
							{
								"#child-nodes": [
									{
										"#child-nodes": [
											{
												"#tag-name": "name",
												"#value": "Machine Action"
											},
											{
												"#tag-name": "description"
											},
											{
												"#tag-name": "script"
											},
											{
												"#tag-name": "script-language",
												"#value": "function#liferay-sample-etc-spring-boot-workflow-action-1"
											},
											{
												"#tag-name": "priority",
												"#value": "1"
											},
											{
												"#tag-name": "execution-type",
												"#value": "onEntry"
											}
										],
										"#tag-name": "action"
									}
								],
								"#tag-name": "actions"
							},
							{
								"#child-nodes": [
									{
										"#child-nodes": [
											{
												"#tag-name": "screen-name",
												"#value": "test"
											}
										],
										"#tag-name": "user"
									}
								],
								"#tag-name": "assignments"
							},
							{
								"#child-nodes": [
									{
										"#tag-name": "label",
										"#value": "Machine review",
										"language-id": "en_US"
									}
								],
								"#tag-name": "labels"
							},
							{
								"#child-nodes": [
									{
										"#child-nodes": [
											{
												"#child-nodes": [
													{
														"#tag-name": "label",
														"#value": "approve",
														"language-id": "en_US"
													}
												],
												"#tag-name": "labels"
											},
											{
												"#tag-name": "name",
												"#value": "approve"
											},
											{
												"#tag-name": "target",
												"#value": "approved"
											},
											{
												"#tag-name": "default",
												"#value": "true"
											}
										],
										"#tag-name": "transition"
									},
									{
										"#child-nodes": [
											{
												"#child-nodes": [
													{
														"#tag-name": "label",
														"#value": "reject",
														"language-id": "en_US"
													}
												],
												"#tag-name": "labels"
											},
											{
												"#tag-name": "name",
												"#value": "reject"
											},
											{
												"#tag-name": "target",
												"#value": "update"
											},
											{
												"#tag-name": "default",
												"#value": "false"
											}
										],
										"#tag-name": "transition"
									}
								],
								"#tag-name": "transitions"
							}
						],
						"#tag-name": "task"
					}
				],
				"#tag-name": "workflow-definition",
				"xmlns": "urn:liferay.com:liferay-workflow_7.4.0",
				"xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
				"xsi:schemaLocation": "urn:liferay.com:liferay-workflow_7.4.0 http://www.liferay.com/dtd/liferay-workflow-definition_7_4_0.xsd"
			},
			"description": "A machine approved content workflow.",
			"name": "Machine Approver",
			"nodes": [
				{
					"label": "\n\t\t\t\tapproved\n\t\t\t",
					"name": "approved",
					"type": "TERMINAL_STATE"
				},
				{
					"label": "\n\t\t\t\tcreated\n\t\t\t",
					"name": "created",
					"type": "INITIAL_STATE"
				},
				{
					"label": "\n\t\t\t\tupdate\n\t\t\t",
					"name": "update",
					"type": "TASK"
				},
				{
					"label": "\n\t\t\t\tMachine review\n\t\t\t",
					"name": "machine-review",
					"type": "TASK"
				}
			],
			"title": "Machine Approver",
			"title_i18n": {
				"en_US": "Machine Approver"
			},
			"transitions": [
				{
					"label": "\n\t\t\t\t\t\treview\n\t\t\t\t\t",
					"name": "created_review_review",
					"sourceNodeName": "created",
					"targetNodeName": "machine-review"
				},
				{
					"label": "\n\t\t\t\t\t\tresubmit\n\t\t\t\t\t",
					"name": "resubmit",
					"sourceNodeName": "update",
					"targetNodeName": "machine-review"
				},
				{
					"label": "\n\t\t\t\t\t\tapprove\n\t\t\t\t\t",
					"name": "approve",
					"sourceNodeName": "machine-review",
					"targetNodeName": "approved"
				},
				{
					"label": "\n\t\t\t\t\t\treject\n\t\t\t\t\t",
					"name": "reject",
					"sourceNodeName": "machine-review",
					"targetNodeName": "update"
				}
			],
			"version": "6"
		}
	]
}