File size: 4,756 Bytes
7cd106f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
    "name": "webpage_video_understanding",
    "tasks": [
        {
            "name": "WebpageVideoPreprocessor",
            "taskReferenceName": "webpage_video_preprocess",
            "inputParameters": {
                "video_path": "${workflow.input.video_path}"
            },
            "type": "SIMPLE",
            "taskDefinition": {}
        },
        {
            "name": "WebpageVideoQA",
            "taskReferenceName": "webpage_video_qa",
            "inputParameters": {
                "video_md5": "${workflow.input.video_md5}",
                "video_path": "${workflow.input.video_path}",
                "instance_id": "${workflow.input.instance_id}",
                "question": "${workflow.input.question}"
            },
            "type": "SIMPLE",
            "taskDefinition": {}
        },
        {
            "name": "ConstructDncPayload",
            "taskReferenceName": "construct_dnc_payload",
            "inputParameters": {
                "query": "${webpage_video_qa.output.query}"
            },
            "type": "SIMPLE",
            "taskDefinition": {}
        },
        {
            "name": "dncloop_task",
            "taskReferenceName": "dncloop_task",
            "inputParameters": {},
            "type": "DO_WHILE",
            "taskDefinition": {},
            "loopCondition": " if ( $.task_exit_monitor['exit_flag'] == true) { false; } else { true; }",
            "loopOver": [
                {
                    "name": "StructureUpdate",
                    "taskReferenceName": "structure_update",
                    "inputParameters": {
                        "dnc_structure": "${construct_dnc_payload.output.dnc_structure}"
                    },
                    "type": "SIMPLE"
                },
                {
                    "name": "TaskConqueror",
                    "taskReferenceName": "task_conqueror",
                    "inputParameters": {
                        "dnc_structure": "${structure_update.output.dnc_structure}",
                        "last_output": "${structure_update.output.last_output}"
                    },
                    "type": "SIMPLE"
                },
                {
                    "name": "switch_task",
                    "taskReferenceName": "switch_task",
                    "inputParameters": {
                        "switchCaseValue": "${task_conqueror.output.switch_case_value}"
                    },
                    "type": "SWITCH",
                    "decisionCases": {
                        "complex": [
                            {
                                "name": "TaskDivider",
                                "taskReferenceName": "task_divider",
                                "inputParameters": {
                                    "dnc_structure": "${task_conqueror.output.dnc_structure}",
                                    "last_output": "${task_conqueror.output.last_output}"
                                },
                                "type": "SIMPLE"
                            }
                        ],
                        "failed": [
                            {
                                "name": "TaskRescue",
                                "taskReferenceName": "task_rescue",
                                "inputParameters": {
                                    "dnc_structure": "${task_conqueror.output.dnc_structure}",
                                    "last_output": "${task_conqueror.output.last_output}"
                                },
                                "type": "SIMPLE"
                            }
                        ]
                    },
                    "defaultCase": [],
                    "evaluatorType": "value-param",
                    "expression": "switchCaseValue"
                },
                {
                    "name": "TaskExitMonitor",
                    "taskReferenceName": "task_exit_monitor",
                    "inputParameters": {},
                    "type": "SIMPLE"
                }
            ]
        },
        {
            "name": "WebpageConclude",
            "taskReferenceName": "webpage_task_conclude",
            "inputParameters": {
                "dnc_structure": "${task_exit_monitor.output.dnc_structure}",
                "last_output": "${task_exit_monitor.output.last_output}"
            },
            "type": "SIMPLE",
            "taskDefinition": {}
        }
    ],
    "inputParameters": [],
    "outputParameters": {},
    "failureWorkflow": "",
    "schemaVersion": 2,
    "workflowStatusListenerEnabled": false,
    "ownerEmail": "default@omagent.ai",
    "timeoutSeconds": 60,
    "variables": {},
    "inputTemplate": {}
}