mirror of
https://github.com/sartography/spiffworkflow-backend.git
synced 2025-02-24 13:28:31 +00:00
fixed mypy ignore comment and removed accidentally committed files
This commit is contained in:
parent
2bbdf8a0d6
commit
fb92d6714d
@ -666,8 +666,8 @@ def task_show_completed_user_task(
|
||||
ActiveTaskModel.query.filter_by(
|
||||
assigned_principal_id=principal.id, process_instance_id=process_instance_id
|
||||
).order_by(
|
||||
desc(ActiveTaskModel.id)
|
||||
) # type: ignore
|
||||
desc(ActiveTaskModel.id) # type: ignore
|
||||
)
|
||||
).first()
|
||||
|
||||
task.current_active_task_id = active_task.id
|
||||
|
596
test2.json
596
test2.json
@ -1,596 +0,0 @@
|
||||
{
|
||||
"data": {
|
||||
"validate_only": false,
|
||||
"process_instance_id": 614
|
||||
},
|
||||
"last_task": "2d449bc3-5825-49d5-8954-0e4aa965a41a",
|
||||
"success": true,
|
||||
"tasks": {
|
||||
"5cf148e9-8a18-4e30-b70a-0f379e3914f0": {
|
||||
"id": "5cf148e9-8a18-4e30-b70a-0f379e3914f0",
|
||||
"parent": null,
|
||||
"children": [
|
||||
"d77d94a6-9174-433b-95a9-09536f315cff"
|
||||
],
|
||||
"last_state_change": 1658326560.4419284,
|
||||
"state": 32,
|
||||
"task_spec": "Root",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"d77d94a6-9174-433b-95a9-09536f315cff": {
|
||||
"id": "d77d94a6-9174-433b-95a9-09536f315cff",
|
||||
"parent": "5cf148e9-8a18-4e30-b70a-0f379e3914f0",
|
||||
"children": [
|
||||
"82a5f501-dad6-4b1f-b6db-fdc1900ce8a5"
|
||||
],
|
||||
"last_state_change": 1658326560.4565284,
|
||||
"state": 32,
|
||||
"task_spec": "Start",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {
|
||||
"current_user": {
|
||||
"id": "1",
|
||||
"username": "test_user1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"82a5f501-dad6-4b1f-b6db-fdc1900ce8a5": {
|
||||
"id": "82a5f501-dad6-4b1f-b6db-fdc1900ce8a5",
|
||||
"parent": "d77d94a6-9174-433b-95a9-09536f315cff",
|
||||
"children": [
|
||||
"36f9305b-a50b-477a-bdf7-80ec8ae9fcd6"
|
||||
],
|
||||
"last_state_change": 1658326560.4569082,
|
||||
"state": 32,
|
||||
"task_spec": "StartEvent_1",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {
|
||||
"event_fired": true
|
||||
},
|
||||
"data": {
|
||||
"current_user": {
|
||||
"id": "1",
|
||||
"username": "test_user1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"36f9305b-a50b-477a-bdf7-80ec8ae9fcd6": {
|
||||
"id": "36f9305b-a50b-477a-bdf7-80ec8ae9fcd6",
|
||||
"parent": "82a5f501-dad6-4b1f-b6db-fdc1900ce8a5",
|
||||
"children": [
|
||||
"b548f004-b536-41b2-b757-cc3d2b77bb1f"
|
||||
],
|
||||
"last_state_change": 1658326560.457242,
|
||||
"state": 32,
|
||||
"task_spec": "set_system_generated_number",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {
|
||||
"current_user": {
|
||||
"id": "1",
|
||||
"username": "test_user1"
|
||||
},
|
||||
"system_generated_number": 4
|
||||
}
|
||||
},
|
||||
"b548f004-b536-41b2-b757-cc3d2b77bb1f": {
|
||||
"id": "b548f004-b536-41b2-b757-cc3d2b77bb1f",
|
||||
"parent": "36f9305b-a50b-477a-bdf7-80ec8ae9fcd6",
|
||||
"children": [
|
||||
"2d449bc3-5825-49d5-8954-0e4aa965a41a"
|
||||
],
|
||||
"last_state_change": 1658326894.542517,
|
||||
"state": 32,
|
||||
"task_spec": "get_user_generated_number",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {
|
||||
"current_user": {
|
||||
"id": "1",
|
||||
"username": "test_user1"
|
||||
},
|
||||
"system_generated_number": 4,
|
||||
"user_generated_number": 2
|
||||
}
|
||||
},
|
||||
"2d449bc3-5825-49d5-8954-0e4aa965a41a": {
|
||||
"id": "2d449bc3-5825-49d5-8954-0e4aa965a41a",
|
||||
"parent": "b548f004-b536-41b2-b757-cc3d2b77bb1f",
|
||||
"children": [
|
||||
"e8890437-f835-4a70-97ae-017c203444e7"
|
||||
],
|
||||
"last_state_change": 1658326894.5578055,
|
||||
"state": 32,
|
||||
"task_spec": "multiply",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {
|
||||
"current_user": {
|
||||
"id": "1",
|
||||
"username": "test_user1"
|
||||
},
|
||||
"system_generated_number": 4,
|
||||
"user_generated_number": 2,
|
||||
"product": 8
|
||||
}
|
||||
},
|
||||
"e8890437-f835-4a70-97ae-017c203444e7": {
|
||||
"id": "e8890437-f835-4a70-97ae-017c203444e7",
|
||||
"parent": "2d449bc3-5825-49d5-8954-0e4aa965a41a",
|
||||
"children": [
|
||||
"cf0ddaf1-aee6-4393-aa48-5425a76f85f0"
|
||||
],
|
||||
"last_state_change": 1658326894.5580246,
|
||||
"state": 16,
|
||||
"task_spec": "Activity_05z7ccx",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {
|
||||
"current_user": {
|
||||
"id": "1",
|
||||
"username": "test_user1"
|
||||
},
|
||||
"system_generated_number": 4,
|
||||
"user_generated_number": 2,
|
||||
"product": 8
|
||||
}
|
||||
},
|
||||
"cf0ddaf1-aee6-4393-aa48-5425a76f85f0": {
|
||||
"id": "cf0ddaf1-aee6-4393-aa48-5425a76f85f0",
|
||||
"parent": "e8890437-f835-4a70-97ae-017c203444e7",
|
||||
"children": [
|
||||
"310e155e-238b-4627-a228-10f302e39ae4"
|
||||
],
|
||||
"last_state_change": 1658326560.4422436,
|
||||
"state": 4,
|
||||
"task_spec": "Activity_00mekhp",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"310e155e-238b-4627-a228-10f302e39ae4": {
|
||||
"id": "310e155e-238b-4627-a228-10f302e39ae4",
|
||||
"parent": "cf0ddaf1-aee6-4393-aa48-5425a76f85f0",
|
||||
"children": [
|
||||
"250180b0-f8ac-4bf3-b1ed-d369ed0beba6"
|
||||
],
|
||||
"last_state_change": 1658326560.4422898,
|
||||
"state": 4,
|
||||
"task_spec": "EndEvent_0q4qzl9",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"250180b0-f8ac-4bf3-b1ed-d369ed0beba6": {
|
||||
"id": "250180b0-f8ac-4bf3-b1ed-d369ed0beba6",
|
||||
"parent": "310e155e-238b-4627-a228-10f302e39ae4",
|
||||
"children": [
|
||||
"bff8b7dc-f1f8-4345-a50d-fe07560083e4"
|
||||
],
|
||||
"last_state_change": 1658326560.4423366,
|
||||
"state": 4,
|
||||
"task_spec": "test_form.EndJoin",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"bff8b7dc-f1f8-4345-a50d-fe07560083e4": {
|
||||
"id": "bff8b7dc-f1f8-4345-a50d-fe07560083e4",
|
||||
"parent": "250180b0-f8ac-4bf3-b1ed-d369ed0beba6",
|
||||
"children": [],
|
||||
"last_state_change": 1658326560.4423747,
|
||||
"state": 4,
|
||||
"task_spec": "End",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
}
|
||||
},
|
||||
"root": "5cf148e9-8a18-4e30-b70a-0f379e3914f0",
|
||||
"spec": {
|
||||
"name": "test_form",
|
||||
"description": "Test Form",
|
||||
"file": "test_form.bpmn",
|
||||
"task_specs": {
|
||||
"Start": {
|
||||
"id": "test_form_1",
|
||||
"name": "Start",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [],
|
||||
"outputs": [
|
||||
"StartEvent_1"
|
||||
],
|
||||
"typename": "StartTask"
|
||||
},
|
||||
"test_form.EndJoin": {
|
||||
"id": "test_form_2",
|
||||
"name": "test_form.EndJoin",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"EndEvent_0q4qzl9"
|
||||
],
|
||||
"outputs": [
|
||||
"End"
|
||||
],
|
||||
"typename": "_EndJoin"
|
||||
},
|
||||
"End": {
|
||||
"id": "test_form_3",
|
||||
"name": "End",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"test_form.EndJoin"
|
||||
],
|
||||
"outputs": [],
|
||||
"typename": "Simple"
|
||||
},
|
||||
"StartEvent_1": {
|
||||
"id": "test_form_4",
|
||||
"name": "StartEvent_1",
|
||||
"description": null,
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"Start"
|
||||
],
|
||||
"outputs": [
|
||||
"set_system_generated_number"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 112,
|
||||
"y": 99
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"set_system_generated_number": {
|
||||
"id": "SequenceFlow_0lvudp8",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "set_system_generated_number",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"SequenceFlow_0lvudp8": {
|
||||
"id": "SequenceFlow_0lvudp8",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "set_system_generated_number",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"event_definition": {
|
||||
"internal": false,
|
||||
"external": false,
|
||||
"typename": "NoneEventDefinition"
|
||||
},
|
||||
"typename": "StartEvent",
|
||||
"extensions": {}
|
||||
},
|
||||
"set_system_generated_number": {
|
||||
"id": "test_form_5",
|
||||
"name": "set_system_generated_number",
|
||||
"description": "set_system_generated_number",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"StartEvent_1"
|
||||
],
|
||||
"outputs": [
|
||||
"get_user_generated_number"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 190,
|
||||
"y": 77
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"get_user_generated_number": {
|
||||
"id": "Flow_0kk2hzj",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "get_user_generated_number",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_0kk2hzj": {
|
||||
"id": "Flow_0kk2hzj",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "get_user_generated_number",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"script": "system_generated_number = 4",
|
||||
"typename": "ScriptTask",
|
||||
"extensions": {}
|
||||
},
|
||||
"get_user_generated_number": {
|
||||
"id": "test_form_6",
|
||||
"name": "get_user_generated_number",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"set_system_generated_number"
|
||||
],
|
||||
"outputs": [
|
||||
"multiply"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 320,
|
||||
"y": 77
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"multiply": {
|
||||
"id": "Flow_1cck1pb",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "multiply",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_1cck1pb": {
|
||||
"id": "Flow_1cck1pb",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "multiply",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"prescript": null,
|
||||
"postscript": null,
|
||||
"typename": "UserTask",
|
||||
"extensions": {
|
||||
"properties": {
|
||||
"formJsonSchemaFilename": "give_me_a_number_form.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"multiply": {
|
||||
"id": "test_form_7",
|
||||
"name": "multiply",
|
||||
"description": "multiply",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"get_user_generated_number"
|
||||
],
|
||||
"outputs": [
|
||||
"Activity_05z7ccx"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 450,
|
||||
"y": 77
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"Activity_05z7ccx": {
|
||||
"id": "Flow_16gxvwr",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "Activity_05z7ccx",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_16gxvwr": {
|
||||
"id": "Flow_16gxvwr",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "Activity_05z7ccx",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"script": "product = system_generated_number * user_generated_number",
|
||||
"typename": "ScriptTask",
|
||||
"extensions": {}
|
||||
},
|
||||
"Activity_05z7ccx": {
|
||||
"id": "test_form_8",
|
||||
"name": "Activity_05z7ccx",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"multiply"
|
||||
],
|
||||
"outputs": [
|
||||
"Activity_00mekhp"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 580,
|
||||
"y": 77
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"Activity_00mekhp": {
|
||||
"id": "Flow_0k1q81g",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "Activity_00mekhp",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_0k1q81g": {
|
||||
"id": "Flow_0k1q81g",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "Activity_00mekhp",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"prescript": null,
|
||||
"postscript": null,
|
||||
"typename": "UserTask",
|
||||
"extensions": {
|
||||
"properties": {
|
||||
"formJsonSchemaFilename": "give_me_another_number_form.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Activity_00mekhp": {
|
||||
"id": "test_form_9",
|
||||
"name": "Activity_00mekhp",
|
||||
"description": "multiply",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"Activity_05z7ccx"
|
||||
],
|
||||
"outputs": [
|
||||
"EndEvent_0q4qzl9"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 730,
|
||||
"y": 77
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"EndEvent_0q4qzl9": {
|
||||
"id": "Flow_1hp8s94",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "EndEvent_0q4qzl9",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_1hp8s94": {
|
||||
"id": "Flow_1hp8s94",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "EndEvent_0q4qzl9",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"script": "final_product = product * second_user_generated_number",
|
||||
"typename": "ScriptTask",
|
||||
"extensions": {}
|
||||
},
|
||||
"EndEvent_0q4qzl9": {
|
||||
"id": "test_form_10",
|
||||
"name": "EndEvent_0q4qzl9",
|
||||
"description": null,
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"Activity_00mekhp"
|
||||
],
|
||||
"outputs": [
|
||||
"test_form.EndJoin"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 862,
|
||||
"y": 99
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"test_form.EndJoin": {
|
||||
"id": "EndEvent_0q4qzl9.ToEndJoin",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "test_form.EndJoin",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"EndEvent_0q4qzl9.ToEndJoin": {
|
||||
"id": "EndEvent_0q4qzl9.ToEndJoin",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "test_form.EndJoin",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"event_definition": {
|
||||
"internal": false,
|
||||
"external": false,
|
||||
"typename": "NoneEventDefinition"
|
||||
},
|
||||
"typename": "EndEvent",
|
||||
"extensions": {}
|
||||
},
|
||||
"Root": {
|
||||
"id": "test_form_11",
|
||||
"name": "Root",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [],
|
||||
"outputs": [],
|
||||
"typename": "Simple"
|
||||
}
|
||||
},
|
||||
"data_inputs": [],
|
||||
"data_outputs": [],
|
||||
"data_objects": [],
|
||||
"typename": "BpmnProcessSpec"
|
||||
},
|
||||
"subprocess_specs": {},
|
||||
"subprocesses": {},
|
||||
"serializer_version": "1.0-CRC"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user