{
    "template_name": "Maker Checker",
    "template_type": "Process test",
    "short_description": "Submit and approve your Excel files in an efficient and secure control process.",
    "description": "A maker-checker (also known as four-eyes principle) is a control process where one person (maker) initiates an action or transaction, and another person (checker) reviews and approves it before completion. This workflow helps prevent errors, reduce fraud risk, and ensure data quality through dual control.",
    "template_definitions": [
        {
            "template_task_type": "non_input",
            "upload_flag": true,
            "task_definition": [
                {
                    "object": "task",
                    "id": "{{PV_TASK_ID_1}}",
                    "data": {
                        "task_name": "Submit workbook",
                        "task_description": "Submit this workbook for review.",
                        "button_text": "Submit",
                        "sequence": 1,
                        "configuration": {
                            "x": 160.47432221719229,
                            "y": -10.970776117901494,
                            "parent_task_ids": []
                        },
                        "task_actions": [
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_1}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Unprotect Workbook",
                                    "supporting_text": "",
                                    "action_code": "unprotect",
                                    "is_critical": true,
                                    "sequence": 1,
                                    "payload": {
                                        "password": "{{PV_PASSWORD}}",
                                        "protect_target": "workbook"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_2}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Unprotect Sheet",
                                    "supporting_text": "",
                                    "action_code": "unprotect",
                                    "is_critical": true,
                                    "sequence": 2,
                                    "payload": {
                                        "password": "{{PV_PASSWORD}}",
                                        "protect_target": "sheet"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_3}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Lock All Worksheets",
                                    "supporting_text": "Lock all worksheets",
                                    "action_code": "lock",
                                    "is_critical": true,
                                    "sequence": 3,
                                    "payload": {
                                        "lock_target": "sheet"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_4}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Protect Sheet",
                                    "supporting_text": "",
                                    "action_code": "protect",
                                    "is_critical": true,
                                    "sequence": 4,
                                    "payload": {
                                        "password": "{{PV_PASSWORD}}",
                                        "protect_target": "sheet"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_5}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Protect Workbook",
                                    "supporting_text": "",
                                    "action_code": "protect",
                                    "is_critical": true,
                                    "sequence": 5,
                                    "payload": {
                                        "password": "{{PV_PASSWORD}}",
                                        "protect_target": "workbook"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_6}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Save Workbook",
                                    "supporting_text": "Save the workbook",
                                    "action_code": "save",
                                    "is_critical": true,
                                    "sequence": 6,
                                    "payload": {
                                        "path": "{{PV_TENANT}}/uploads/controls/{{PV_PROCESS_VERSION_ID}}/submissions/{{CH_CHAIN_ID}}",
                                        "destination": "remote",
                                        "destinationType": "remote",
                                        "filename_format": "{{PV_PROCESS_NAME}}_{{CH_AUTHOR}}_{{CH_DATE}}.{{PV_EXTENSION}}",
                                        "prompt_for_filename": true
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_7}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Remove Metadata",
                                    "supporting_text": "",
                                    "action_code": "remove_metadata",
                                    "is_critical": true,
                                    "sequence": 7,
                                    "payload": {
                                        "keys": [
                                            "CONTROL_GROUP_ID",
                                            "CONTROL_PV_ID",
                                            "CONTROL_CHAIN_ID",
                                            "CONTROL_FILE_STATUS"
                                        ]
                                    },
                                    "payload_overridable": true
                                }
                            }
                        ],
                        "task_conditions": [
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_1}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "User is a Group Member",
                                    "sequence": 1,
                                    "condition_code": "role",
                                    "operator": "",
                                    "payload": {
                                        "role": "{{PV_MAKER_ROLES}}",
                                        "operator": "in_list",
                                        "target_name": "User is a Group Member"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_2}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "User is a allowed",
                                    "sequence": 1,
                                    "condition_code": "user",
                                    "operator": "",
                                    "payload": {
                                        "usernames": "{{PV_MAKER_USERS}}",
                                        "operator": "in_list",
                                        "target_name": "User is allowed"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_3}}",
                                "data": {
                                    "condition_code": "pro_model",
                                    "target_name": "",
                                    "operator": "equal",
                                    "payload": {
                                        "model_type": "workbook",
                                        "model_id": "{{PV_WORKBOOK_ID}}",
                                        "model_name": "{{PV_WORKBOOK_FILE_NAME}}",
                                        "selected_hashes": [
                                            "model_hash"
                                        ],
                                        "hash_set_config": "tagged_model"
                                    },
                                    "target_description": "Process Model {{PV_WORKBOOK_FILE_NAME}}",
                                    "sequence": 2
                                }
                            }
                        ]
                    }
                },
                {
                    "object": "task",
                    "id": "{{PV_TASK_ID_2}}",
                    "data": {
                        "task_name": "Reject workbook",
                        "task_description": "This workbook is not fit for purpose.",
                        "button_text": "Reject",
                        "sequence": 2,
                        "configuration": {
                            "x": 349.2907801418439,
                            "y": 354.82269503546106,
                            "parent_task_ids": [
                                "{{PV_TASK_ID_1}}"
                            ]
                        },
                        "task_actions": [
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_10}}",
                                "data": {
                                    "target_name": "Status Update",
                                    "supporting_text": "",
                                    "action_code": "status",
                                    "is_critical": true,
                                    "payload": {
                                        "status": "rejected"
                                    },
                                    "sequence": 0
                                }
                            }
                        ],
                        "task_conditions": [
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_4}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "Task is completed",
                                    "sequence": 1,
                                    "condition_code": "task",
                                    "operator": "",
                                    "payload": {
                                        "task_id": "{{PV_TASK_ID_1}}",
                                        "operator": "completed",
                                        "target_name": "Task is completed"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_5}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "User is a Group Member",
                                    "sequence": 1,
                                    "condition_code": "role",
                                    "operator": "",
                                    "payload": {
                                        "role": "{{PV_CHECKER_ROLES}}",
                                        "operator": "in_list",
                                        "target_name": "User is a Group Member"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_6}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "User is allowed",
                                    "sequence": 1,
                                    "condition_code": "user",
                                    "operator": "",
                                    "payload": {
                                        "usernames": "{{PV_CHECKER_USERS}}",
                                        "operator": "in_list",
                                        "target_name": "User is allowed"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_7}}",
                                "data": {
                                    "condition_code": "user",
                                    "target_name": "",
                                    "operator": "not_equal",
                                    "payload": {
                                        "user_type": "submitter",
                                        "target_name": "Submitter",
                                        "usernames": ""
                                    },
                                    "target_description": "User Submitter",
                                    "sequence": 1
                                }
                            }
                        ]
                    }
                },
                {
                    "object": "task",
                    "id": "{{PV_TASK_ID_3}}",
                    "data": {
                        "task_name": "Approve workbook",
                        "task_description": "I confirm that this workbook is fit for purpose.",
                        "button_text": "Approve",
                        "sequence": 3,
                        "configuration": {
                            "x": -33.75886524822698,
                            "y": 354.8226950354609,
                            "parent_task_ids": [
                                "{{PV_TASK_ID_1}}"
                            ]
                        },
                        "task_actions": [
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_11}}",
                                "data": {
                                    "target_name": "Status Update",
                                    "supporting_text": "",
                                    "action_code": "status",
                                    "is_critical": true,
                                    "payload": {
                                        "status": "approved"
                                    },
                                    "sequence": 0
                                }
                            }
                        ],
                        "task_conditions": [
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_8}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "Task is completed",
                                    "sequence": 1,
                                    "condition_code": "task",
                                    "operator": "",
                                    "payload": {
                                        "task_id": "{{PV_TASK_ID_1}}",
                                        "operator": "completed",
                                        "target_name": "Task is completed"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_9}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "User is a Group Member",
                                    "sequence": 1,
                                    "condition_code": "role",
                                    "operator": "",
                                    "payload": {
                                        "role": "{{PV_CHECKER_ROLES}}",
                                        "operator": "in_list",
                                        "target_name": "User is a Group Member"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_10}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "User is allowed",
                                    "sequence": 1,
                                    "condition_code": "user",
                                    "operator": "",
                                    "payload": {
                                        "usernames": "{{PV_CHECKER_USERS}}",
                                        "operator": "in_list",
                                        "target_name": "User is allowed"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_11}}",
                                "data": {
                                    "condition_code": "user",
                                    "target_name": "",
                                    "operator": "not_equal",
                                    "payload": {
                                        "user_type": "submitter",
                                        "target_name": "Submitter",
                                        "usernames": ""
                                    },
                                    "target_description": "User Submitter",
                                    "sequence": 1
                                }
                            }
                        ]
                    }
                }
            ]
        },
        {
            "template_task_type": "non_static",
            "upload_flag": true,
            "task_definition": [
                {
                    "object": "task",
                    "id": "{{PV_TASK_ID_1}}",
                    "data": {
                        "task_name": "Submit workbook",
                        "task_description": "Submit this workbook for review.",
                        "button_text": "Submit",
                        "sequence": 1,
                        "configuration": {
                            "x": 160.47432221719229,
                            "y": -10.970776117901494,
                            "parent_task_ids": []
                        },
                        "task_actions": [
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_1}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Unprotect Workbook",
                                    "supporting_text": "",
                                    "action_code": "unprotect",
                                    "is_critical": true,
                                    "sequence": 1,
                                    "payload": {
                                        "password": "{{PV_PASSWORD}}",
                                        "protect_target": "workbook"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_2}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Unprotect Sheet",
                                    "supporting_text": "",
                                    "action_code": "unprotect",
                                    "is_critical": true,
                                    "sequence": 2,
                                    "payload": {
                                        "password": "{{PV_PASSWORD}}",
                                        "protect_target": "sheet"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_3}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Lock All Worksheets",
                                    "supporting_text": "Lock all worksheets",
                                    "action_code": "lock",
                                    "is_critical": true,
                                    "sequence": 3,
                                    "payload": {
                                        "lock_target": "sheet"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_4}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Protect Sheet",
                                    "supporting_text": "",
                                    "action_code": "protect",
                                    "is_critical": true,
                                    "sequence": 4,
                                    "payload": {
                                        "password": "{{PV_PASSWORD}}",
                                        "protect_target": "sheet"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_5}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Protect Workbook",
                                    "supporting_text": "",
                                    "action_code": "protect",
                                    "is_critical": true,
                                    "sequence": 5,
                                    "payload": {
                                        "password": "{{PV_PASSWORD}}",
                                        "protect_target": "workbook"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_6}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Save Workbook",
                                    "supporting_text": "Save the workbook",
                                    "action_code": "save",
                                    "is_critical": true,
                                    "sequence": 6,
                                    "payload": {
                                        "path": "{{PV_TENANT}}/uploads/controls/{{PV_PROCESS_VERSION_ID}}/submissions/{{CH_CHAIN_ID}}",
                                        "destination": "remote",
                                        "destinationType": "remote",
                                        "filename_format": "{{PV_PROCESS_NAME}}_{{CH_AUTHOR}}_{{CH_DATE}}.{{PV_EXTENSION}}",
                                        "prompt_for_filename": true
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_7}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Remove Metadata",
                                    "supporting_text": "",
                                    "action_code": "remove_metadata",
                                    "is_critical": true,
                                    "sequence": 7,
                                    "payload": {
                                        "keys": [
                                            "CONTROL_GROUP_ID",
                                            "CONTROL_PV_ID",
                                            "CONTROL_CHAIN_ID",
                                            "CONTROL_FILE_STATUS"
                                        ]
                                    },
                                    "payload_overridable": true
                                }
                            }
                        ],
                        "task_conditions": [
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_12}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "User is a Group Member",
                                    "sequence": 1,
                                    "condition_code": "role",
                                    "operator": "",
                                    "payload": {
                                        "role": "{{PV_MAKER_ROLES}}",
                                        "operator": "in_list",
                                        "target_name": "User is a Group Member"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_13}}",
                                "data": {
                                    "condition_code": "pro_model",
                                    "target_name": "",
                                    "operator": "equal",
                                    "payload": {
                                        "model_type": "workbook",
                                        "model_id": "{{PV_WORKBOOK_ID}}",
                                        "model_name": "{{PV_WORKBOOK_FILE_NAME}}",
                                        "selected_hashes": [
                                            "model_hash"
                                        ],
                                        "hash_set_config": "tagged_model"
                                    },
                                    "target_description": "Process Model {{PV_WORKBOOK_FILE_NAME}}",
                                    "sequence": 2
                                }
                            }
                        ]
                    }
                },
                {
                    "object": "task",
                    "id": "{{PV_TASK_ID_2}}",
                    "data": {
                        "task_name": "Reject workbook",
                        "task_description": "This workbook is not fit for purpose.",
                        "button_text": "Reject",
                        "sequence": 3,
                        "configuration": {
                            "x": 349.2907801418439,
                            "y": 354.82269503546106,
                            "parent_task_ids": [
                                "{{PV_TASK_ID_1}}"
                            ]
                        },
                        "task_actions": [
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_10}}",
                                "data": {
                                    "target_name": "Status Update",
                                    "supporting_text": "",
                                    "action_code": "status",
                                    "is_critical": true,
                                    "payload": {
                                        "status": "rejected"
                                    },
                                    "sequence": 0
                                }
                            }
                        ],
                        "task_conditions": [
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_1}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "Task is completed",
                                    "sequence": 1,
                                    "condition_code": "task",
                                    "operator": "",
                                    "payload": {
                                        "task_id": "{{PV_TASK_ID_1}}",
                                        "operator": "completed",
                                        "target_name": "Task is completed"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_2}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "User is a Group Member",
                                    "sequence": 1,
                                    "condition_code": "role",
                                    "operator": "",
                                    "payload": {
                                        "role": "{{PV_CHECKER_ROLES}}",
                                        "operator": "in_list",
                                        "target_name": "User is a Group Member"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_3}}",
                                "data": {
                                    "condition_code": "user",
                                    "target_name": "",
                                    "operator": "not_equal",
                                    "payload": {
                                        "user_type": "submitter",
                                        "target_name": "Submitter",
                                        "usernames": ""
                                    },
                                    "target_description": "User Submitter",
                                    "sequence": 1
                                }
                            }
                        ]
                    }
                },
                {
                    "object": "task",
                    "id": "{{PV_TASK_ID_3}}",
                    "data": {
                        "task_name": "Approve workbook",
                        "task_description": "I confirm that this workbook is fit for purpose.",
                        "button_text": "Approve",
                        "sequence": 2,
                        "configuration": {
                            "x": -33.75886524822698,
                            "y": 354.8226950354609,
                            "parent_task_ids": [
                                "{{PV_TASK_ID_1}}"
                            ]
                        },
                        "task_actions": [
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_11}}",
                                "data": {
                                    "target_name": "Status Update",
                                    "supporting_text": "",
                                    "action_code": "status",
                                    "is_critical": true,
                                    "payload": {
                                        "status": "approved"
                                    },
                                    "sequence": 0
                                }
                            }
                        ],
                        "task_conditions": [
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_1}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "Task is completed",
                                    "sequence": 1,
                                    "condition_code": "task",
                                    "operator": "",
                                    "payload": {
                                        "task_id": "{{PV_TASK_ID_1}}",
                                        "operator": "completed",
                                        "target_name": "Task is completed"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_2}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "User is a Group Member",
                                    "sequence": 1,
                                    "condition_code": "role",
                                    "operator": "",
                                    "payload": {
                                        "role": "{{PV_CHECKER_ROLES}}",
                                        "operator": "in_list",
                                        "target_name": "User is a Group Member"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_3}}",
                                "data": {
                                    "condition_code": "user",
                                    "target_name": "",
                                    "operator": "not_equal",
                                    "payload": {
                                        "user_type": "submitter",
                                        "target_name": "Submitter",
                                        "usernames": ""
                                    },
                                    "target_description": "User Submitter",
                                    "sequence": 1
                                }
                            }
                        ]
                    }
                }
            ]
        },
        {
            "template_task_type": "non_static",
            "upload_flag": true,
            "task_definition": [
                {
                    "object": "task",
                    "id": "{{PV_TASK_ID_1}}",
                    "data": {
                        "task_name": "Submit workbook",
                        "task_description": "Submit this workbook for review.",
                        "button_text": "Submit",
                        "sequence": 1,
                        "configuration": {
                            "x": 160.47432221719229,
                            "y": -10.970776117901494,
                            "parent_task_ids": []
                        },
                        "task_actions": [
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_1}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Lock All Worksheets",
                                    "supporting_text": "Lock all worksheets",
                                    "action_code": "lock",
                                    "is_critical": true,
                                    "sequence": 3,
                                    "payload": {
                                        "lock_target": "sheet"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_2}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Protect Sheet",
                                    "supporting_text": "",
                                    "action_code": "protect",
                                    "is_critical": true,
                                    "sequence": 4,
                                    "payload": {
                                        "password": "{{PV_PASSWORD}}",
                                        "protect_target": "sheet"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_3}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Protect Workbook",
                                    "supporting_text": "",
                                    "action_code": "protect",
                                    "is_critical": true,
                                    "sequence": 5,
                                    "payload": {
                                        "password": "{{PV_PASSWORD}}",
                                        "protect_target": "workbook"
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_4}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Save Workbook",
                                    "supporting_text": "Save the workbook",
                                    "action_code": "save",
                                    "is_critical": true,
                                    "sequence": 6,
                                    "payload": {
                                        "path": "{{PV_TENANT}}/uploads/controls/{{PV_PROCESS_VERSION_ID}}/submissions/{{CH_CHAIN_ID}}",
                                        "destination": "remote",
                                        "destinationType": "remote",
                                        "filename_format": "{{PV_PROCESS_NAME}}_{{CH_AUTHOR}}_{{CH_DATE}}.{{PV_EXTENSION}}",
                                        "prompt_for_filename": true
                                    },
                                    "payload_overridable": true
                                }
                            },
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_7}}",
                                "data": {
                                    "target_id": null,
                                    "target_name": "Remove Metadata",
                                    "supporting_text": "",
                                    "action_code": "remove_metadata",
                                    "is_critical": true,
                                    "sequence": 7,
                                    "payload": {
                                        "keys": [
                                            "CONTROL_GROUP_ID",
                                            "CONTROL_PV_ID",
                                            "CONTROL_CHAIN_ID",
                                            "CONTROL_FILE_STATUS"
                                        ]
                                    },
                                    "payload_overridable": true
                                }
                            }
                        ],
                        "task_conditions": [
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_1}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "User is a Group Member",
                                    "sequence": 1,
                                    "condition_code": "role",
                                    "operator": "",
                                    "payload": {
                                        "role": "{{PV_MAKER_ROLES}}",
                                        "operator": "in_list",
                                        "target_name": "User is a Group Member"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_2}}",
                                "data": {
                                    "condition_code": "pro_model",
                                    "target_name": "",
                                    "operator": "equal",
                                    "payload": {
                                        "model_type": "workbook",
                                        "model_id": "{{PV_WORKBOOK_ID}}",
                                        "model_name": "{{PV_WORKBOOK_FILE_NAME}}",
                                        "selected_hashes": [
                                            "model_hash"
                                        ],
                                        "hash_set_config": "tagged_model"
                                    },
                                    "target_description": "Process Model {{PV_WORKBOOK_FILE_NAME}}",
                                    "sequence": 2
                                }
                            }
                        ]
                    }
                },
                {
                    "object": "task",
                    "id": "{{PV_TASK_ID_2}}",
                    "data": {
                        "task_name": "Reject workbook",
                        "task_description": "This workbook is not fit for purpose.",
                        "button_text": "Reject",
                        "sequence": 2,
                        "configuration": {
                            "x": 349.2907801418439,
                            "y": 354.82269503546106,
                            "parent_task_ids": [
                                "{{PV_TASK_ID_1}}"
                            ]
                        },
                        "task_actions": [
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_7}}",
                                "data": {
                                    "target_name": "Status Update",
                                    "supporting_text": "",
                                    "action_code": "status",
                                    "is_critical": true,
                                    "payload": {
                                        "status": "rejected"
                                    },
                                    "sequence": 0
                                }
                            }
                        ],
                        "task_conditions": [
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_3}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "Task is completed",
                                    "sequence": 1,
                                    "condition_code": "task",
                                    "operator": "",
                                    "payload": {
                                        "task_id": "{{PV_TASK_ID_1}}",
                                        "operator": "completed",
                                        "target_name": "Task is completed"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_4}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "User is a Group Member",
                                    "sequence": 1,
                                    "condition_code": "role",
                                    "operator": "",
                                    "payload": {
                                        "role": "{{PV_CHECKER_ROLES}}",
                                        "operator": "in_list",
                                        "target_name": "User is a Group Member"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_5}}",
                                "data": {
                                    "condition_code": "user",
                                    "target_name": "",
                                    "operator": "not_equal",
                                    "payload": {
                                        "user_type": "submitter",
                                        "target_name": "Submitter",
                                        "usernames": ""
                                    },
                                    "target_description": "User Submitter",
                                    "sequence": 1
                                }
                            }
                        ]
                    }
                },
                {
                    "object": "task",
                    "id": "{{PV_TASK_ID_3}}",
                    "data": {
                        "task_name": "Approve workbook",
                        "task_description": "I confirm that this workbook is fit for purpose.",
                        "button_text": "Approve",
                        "sequence": 3,
                        "configuration": {
                            "x": -33.75886524822698,
                            "y": 354.8226950354609,
                            "parent_task_ids": [
                                "{{PV_TASK_ID_1}}"
                            ]
                        },
                        "task_actions": [
                            {
                                "object": "task_action",
                                "id": "{{PV_TASK_ACTION_ID_8}}",
                                "data": {
                                    "target_name": "Status Update",
                                    "supporting_text": "",
                                    "action_code": "status",
                                    "is_critical": true,
                                    "payload": {
                                        "status": "approved"
                                    },
                                    "sequence": 0
                                }
                            }
                        ],
                        "task_conditions": [
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_6}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "Task is completed",
                                    "sequence": 1,
                                    "condition_code": "task",
                                    "operator": "",
                                    "payload": {
                                        "task_id": "{{PV_TASK_ID_1}}",
                                        "operator": "completed",
                                        "target_name": "Task is completed"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_7}}",
                                "data": {
                                    "target_task_id": null,
                                    "target_id": null,
                                    "target_description": "User is a Group Member",
                                    "sequence": 1,
                                    "condition_code": "role",
                                    "operator": "",
                                    "payload": {
                                        "role": "{{PV_CHECKER_ROLES}}",
                                        "operator": "in_list",
                                        "target_name": "User is a Group Member"
                                    },
                                    "operator_overridable": false
                                }
                            },
                            {
                                "object": "task_condition",
                                "id": "{{PV_TASK_CONDITION_ID_8}}",
                                "data": {
                                    "condition_code": "user",
                                    "target_name": "",
                                    "operator": "not_equal",
                                    "payload": {
                                        "user_type": "submitter",
                                        "target_name": "Submitter",
                                        "usernames": ""
                                    },
                                    "target_description": "User Submitter",
                                    "sequence": 1
                                }
                            }
                        ]
                    }
                }
            ]
        }
    ]
}

Update PV_TASK_CONDITION_ID , PV_TASK_ACTION_ID unique and sequential and start from from one in every template_definitions