diff --git a/common/taskana-common-data/src/main/resources/sql/monitor-data/monitor-sample-data.sql b/common/taskana-common-data/src/main/resources/sql/monitor-data/monitor-sample-data.sql index bdc4197a9..f5ae3b879 100644 --- a/common/taskana-common-data/src/main/resources/sql/monitor-data/monitor-sample-data.sql +++ b/common/taskana-common-data/src/main/resources/sql/monitor-data/monitor-sample-data.sql @@ -31,58 +31,58 @@ INSERT INTO ATTACHMENT VALUES('ATT:000000000000000000000000000000000010', 'TKI:0 INSERT INTO ATTACHMENT VALUES('ATT:000000000000000000000000000000000011', 'TKI:000000000000000000000000000000000045', RELATIVE_DATE(0) , RELATIVE_DATE(0) , 'L99000' ,'CLI:000000000000000000000000000000000009', '' , '' , '' , '' , '' , '' , RELATIVE_DATE(0) , null ); -- TASK TABLE (ID , EXTERNAL_ID , CREATED , CLAIMED , COMPLETED , MODIFIED , RECEIVED, PLANNED , DUE , NAME , CREATOR , DESCRIPTION , NOTE , PRIORITY, MANUAL_PRIORITY, STATE , CLASSIFICATION_CATEGORY , CLASSIFICATION_KEY, CLASSIFICATION_ID , WORKBASKET_ID , WORKBASKET_KEY, DOMAIN , BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER , POR_COMPANY , POR_SYSTEM , POR_INSTANCE , POR_TYPE , POR_VALUE , IS_READ, IS_TRANSFERRED, CALLBACK_INFO, callback_state, CUSTOM_ATTRIBUTES, CUSTOM_1 , CUSTOM_2 , CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9,CUSTOM_10 ,CUSTOM_11 ,CUSTOM_12 ,CUSTOM_13 ,CUSTOM_14 ,CUSTOM_15 ,CUSTOM_16 , custom-int-1, custom-int-2, custom-int-3, custom-int-4, custom-int-5, custom-int-6, custom-int-7, custom-int-8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000001', 'ETI:000000000000000000000000000000000001', RELATIVE_DATE(0) , RELATIVE_DATE(0) , RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(-5), RELATIVE_DATE(-70000), 'Task01', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_01' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000002', 'ETI:000000000000000000000000000000000002', RELATIVE_DATE(0) , RELATIVE_DATE(0) , RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(-6), RELATIVE_DATE(-14000), 'Task02', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_02' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000003', 'ETI:000000000000000000000000000000000003', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-2800) , 'Task03', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_03' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000004', 'ETI:000000000000000000000000000000000004', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(-5), RELATIVE_DATE(-1400) , 'Task04', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_04' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000005', 'ETI:000000000000000000000000000000000005', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-1400) , 'Task05', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_05' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000006', 'ETI:000000000000000000000000000000000006', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-700) , 'Task06', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_06' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000007', 'ETI:000000000000000000000000000000000007', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-700) , 'Task07', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_07' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000008', 'ETI:000000000000000000000000000000000008', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-35) , 'Task08', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_08' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000009', 'ETI:000000000000000000000000000000000009', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-28) , 'Task09', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_09' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000010', 'ETI:000000000000000000000000000000000010', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-28) , 'Task10', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_10' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000011', 'ETI:000000000000000000000000000000000011', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task11', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_11' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000012', 'ETI:000000000000000000000000000000000012', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task12', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_12' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000013', 'ETI:000000000000000000000000000000000013', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task13', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_13' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000014', 'ETI:000000000000000000000000000000000014', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task14', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_14' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000015', 'ETI:000000000000000000000000000000000015', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task15', 'teamlead-2', 'Some description.', 'Some custom Note', 6 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_15' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000016', 'ETI:000000000000000000000000000000000016', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task16', 'teamlead-2', 'Some description.', 'Some custom Note', 7 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_16' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000017', 'ETI:000000000000000000000000000000000017', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task17', 'teamlead-2', 'Some description.', 'Some custom Note', 8 , -1 , 'READY' , 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_17' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000018', 'ETI:000000000000000000000000000000000018', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task18', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_18' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000019', 'ETI:000000000000000000000000000000000019', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task19', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_19' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000020', 'ETI:000000000000000000000000000000000020', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task20', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_20' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000021', 'ETI:000000000000000000000000000000000021', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task21', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_21' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000022', 'ETI:000000000000000000000000000000000022', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task22', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_22' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000023', 'ETI:000000000000000000000000000000000023', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task23', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_23' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000024', 'ETI:000000000000000000000000000000000024', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task24', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_24' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000025', 'ETI:000000000000000000000000000000000025', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task25', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_25' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000026', 'ETI:000000000000000000000000000000000026', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task26', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_26' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000027', 'ETI:000000000000000000000000000000000027', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task27', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_27' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000028', 'ETI:000000000000000000000000000000000028', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task28', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_28' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000029', 'ETI:000000000000000000000000000000000029', RELATIVE_DATE(-8), RELATIVE_DATE(0) , RELATIVE_DATE(-7), RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task29', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_29' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000030', 'ETI:000000000000000000000000000000000030', RELATIVE_DATE(-9), RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task30', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_30' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000031', 'ETI:000000000000000000000000000000000031', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(0) , 'Task31', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_31' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000032', 'ETI:000000000000000000000000000000000032', RELATIVE_DATE(0) , RELATIVE_DATE(0) , RELATIVE_DATE(-1), RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(0) , 'Task32', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_32' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000033', 'ETI:000000000000000000000000000000000033', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(0) , 'Task33', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_33' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000034', 'ETI:000000000000000000000000000000000034', RELATIVE_DATE(0) , RELATIVE_DATE(0) , RELATIVE_DATE(-1), RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(0) , 'Task34', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_34' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000035', 'ETI:000000000000000000000000000000000035', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task35', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_35' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000036', 'ETI:000000000000000000000000000000000036', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task36', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_36' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000037', 'ETI:000000000000000000000000000000000037', RELATIVE_DATE(-8), RELATIVE_DATE(0) , RELATIVE_DATE(-2), RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task37', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_37' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000038', 'ETI:000000000000000000000000000000000038', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task38', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_38' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000039', 'ETI:000000000000000000000000000000000039', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task39', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_39' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000040', 'ETI:000000000000000000000000000000000040', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task40', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_40' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000041', 'ETI:000000000000000000000000000000000041', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task41', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_41' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000042', 'ETI:000000000000000000000000000000000042', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task42', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_42' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000043', 'ETI:000000000000000000000000000000000043', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task43', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_43' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000044', 'ETI:000000000000000000000000000000000044', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task44', 'teamlead-2', 'Some description.', 'Some custom Note', 9 , -1 , 'CLAIMED', 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_44' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000045', 'ETI:000000000000000000000000000000000045', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task45', 'teamlead-2', 'Some description.', 'Some custom Note', 9 , -1 , 'CLAIMED', 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_45' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000046', 'ETI:000000000000000000000000000000000046', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(21) , 'Task46', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_46' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000047', 'ETI:000000000000000000000000000000000047', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(210) , 'Task47', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_47' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000048', 'ETI:000000000000000000000000000000000048', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(210) , 'Task48', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_48' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000049', 'ETI:000000000000000000000000000000000049', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(28000) , 'Task49', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_49' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000050', 'ETI:000000000000000000000000000000000050', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) ,RELATIVE_DATE(700000), 'Task50', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_50' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000001', 'ETI:000000000000000000000000000000000001', RELATIVE_DATE(0) , RELATIVE_DATE(0) , RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(-5), RELATIVE_DATE(-70000), 'Task01', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_01' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000002', 'ETI:000000000000000000000000000000000002', RELATIVE_DATE(0) , RELATIVE_DATE(0) , RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(-6), RELATIVE_DATE(-14000), 'Task02', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_02' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000003', 'ETI:000000000000000000000000000000000003', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-2800) , 'Task03', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_03' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000004', 'ETI:000000000000000000000000000000000004', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(-5), RELATIVE_DATE(-1400) , 'Task04', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_04' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000005', 'ETI:000000000000000000000000000000000005', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-1400) , 'Task05', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_05' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000006', 'ETI:000000000000000000000000000000000006', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-700) , 'Task06', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_06' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000007', 'ETI:000000000000000000000000000000000007', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-700) , 'Task07', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_07' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000008', 'ETI:000000000000000000000000000000000008', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-35) , 'Task08', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_08' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000009', 'ETI:000000000000000000000000000000000009', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-28) , 'Task09', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_09' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000010', 'ETI:000000000000000000000000000000000010', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-28) , 'Task10', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_10' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000011', 'ETI:000000000000000000000000000000000011', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task11', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_11' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000012', 'ETI:000000000000000000000000000000000012', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task12', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_12' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000013', 'ETI:000000000000000000000000000000000013', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task13', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_13' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000014', 'ETI:000000000000000000000000000000000014', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task14', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_14' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000015', 'ETI:000000000000000000000000000000000015', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task15', 'teamlead-2', 'Some description.', 'Some custom Note', 6 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_15' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000016', 'ETI:000000000000000000000000000000000016', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task16', 'teamlead-2', 'Some description.', 'Some custom Note', 7 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_16' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000017', 'ETI:000000000000000000000000000000000017', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task17', 'teamlead-2', 'Some description.', 'Some custom Note', 8 , -1 , 'READY' , 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_17' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000018', 'ETI:000000000000000000000000000000000018', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task18', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_18' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000019', 'ETI:000000000000000000000000000000000019', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-14) , 'Task19', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_19' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000020', 'ETI:000000000000000000000000000000000020', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task20', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_20' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000021', 'ETI:000000000000000000000000000000000021', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task21', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_21' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000022', 'ETI:000000000000000000000000000000000022', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task22', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_22' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000023', 'ETI:000000000000000000000000000000000023', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task23', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_23' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000024', 'ETI:000000000000000000000000000000000024', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task24', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_24' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000025', 'ETI:000000000000000000000000000000000025', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task25', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_25' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000026', 'ETI:000000000000000000000000000000000026', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task26', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_26' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000027', 'ETI:000000000000000000000000000000000027', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task27', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_27' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000028', 'ETI:000000000000000000000000000000000028', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task28', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_28' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000029', 'ETI:000000000000000000000000000000000029', RELATIVE_DATE(-8), RELATIVE_DATE(0) , RELATIVE_DATE(-7), RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task29', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_29' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000030', 'ETI:000000000000000000000000000000000030', RELATIVE_DATE(-9), RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(-7) , 'Task30', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_30' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000031', 'ETI:000000000000000000000000000000000031', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(0) , 'Task31', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_31' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000032', 'ETI:000000000000000000000000000000000032', RELATIVE_DATE(0) , RELATIVE_DATE(0) , RELATIVE_DATE(-1), RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(0) , 'Task32', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_32' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000033', 'ETI:000000000000000000000000000000000033', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(0) , 'Task33', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L10000' , 'CLI:000000000000000000000000000000000001', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_33' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000034', 'ETI:000000000000000000000000000000000034', RELATIVE_DATE(0) , RELATIVE_DATE(0) , RELATIVE_DATE(-1), RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(0) , 'Task34', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_34' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000035', 'ETI:000000000000000000000000000000000035', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task35', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L20000' , 'CLI:000000000000000000000000000000000002', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_35' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000036', 'ETI:000000000000000000000000000000000036', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task36', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_36' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000037', 'ETI:000000000000000000000000000000000037', RELATIVE_DATE(-8), RELATIVE_DATE(0) , RELATIVE_DATE(-2), RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task37', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_37' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000038', 'ETI:000000000000000000000000000000000038', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task38', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_38' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000039', 'ETI:000000000000000000000000000000000039', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task39', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_39' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000040', 'ETI:000000000000000000000000000000000040', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task40', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_40' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000041', 'ETI:000000000000000000000000000000000041', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task41', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_41' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000042', 'ETI:000000000000000000000000000000000042', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task42', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_42' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000043', 'ETI:000000000000000000000000000000000043', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task43', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_43' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000044', 'ETI:000000000000000000000000000000000044', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task44', 'teamlead-2', 'Some description.', 'Some custom Note', 9 , -1 , 'CLAIMED', 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_44' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000045', 'ETI:000000000000000000000000000000000045', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task45', 'teamlead-2', 'Some description.', 'Some custom Note', 9 , -1 , 'CLAIMED', 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_45' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000046', 'ETI:000000000000000000000000000000000046', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(21) , 'Task46', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_46' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000047', 'ETI:000000000000000000000000000000000047', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(210) , 'Task47', 'teamlead-1', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_47' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000048', 'ETI:000000000000000000000000000000000048', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(210) , 'Task48', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000001', 'USER-1-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_48' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000049', 'ETI:000000000000000000000000000000000049', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(28000) , 'Task49', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000003', 'USER-1-3' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_49' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:000000000000000000000000000000000050', 'ETI:000000000000000000000000000000000050', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(700000), 'Task50', 'teamlead-2', 'Some description.', 'Some custom Note', 1 , -1 , 'CLAIMED', 'MANUAL' , 'L40000' , 'CLI:000000000000000000000000000000000004', 'WBI:000000000000000000000000000000000002', 'USER-1-2' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle A' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_50' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -- Task for TransferAccTest -INSERT INTO TASK VALUES('TKI:100000000000000000000000000000000098', 'ETI:100000000000000000000000000000000098', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task51', 'teamlead-1', 'Some description.', 'Some custom Note', 305 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000005', 'GPK-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_41' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:200000000000000000000000000000000099', 'ETI:200000000000000000000000000000000099', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task52', 'teamlead-1', 'Some description.', 'Some custom Note', 505 , -1 , 'CLAIMED', 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000005', 'GPK-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_42' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:200000000000000000000000000000000100', 'ETI:200000000000000000000000000000000100', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task53', 'teamlead-2', 'Some description.', 'Some custom Note', 605 , -1 , 'CLAIMED', 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000006', 'TPK-VIP-1' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_43' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); -INSERT INTO TASK VALUES('TKI:200000000000000000000000000000000101', 'ETI:200000000000000000000000000000000101', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task54', 'teamlead-2', 'Some description.', 'Some custom Note', 305 , -1 , 'CLAIMED', 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000006', 'TPK-VIP-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , null , null , null , null , null , null , null , null , null , null , null , null , null , 'VALUE_44' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:100000000000000000000000000000000098', 'ETI:100000000000000000000000000000000098', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(7) , 'Task51', 'teamlead-1', 'Some description.', 'Some custom Note', 305 , -1 , 'READY' , 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000005', 'GPK-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle B' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_41' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:200000000000000000000000000000000099', 'ETI:200000000000000000000000000000000099', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task52', 'teamlead-1', 'Some description.', 'Some custom Note', 505 , -1 , 'CLAIMED', 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000005', 'GPK-1' , 'DOMAIN_C', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_42' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:200000000000000000000000000000000100', 'ETI:200000000000000000000000000000000100', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task53', 'teamlead-2', 'Some description.', 'Some custom Note', 605 , -1 , 'CLAIMED', 'EXTERN' , 'L50000' , 'CLI:000000000000000000000000000000000005', 'WBI:000000000000000000000000000000000006', 'TPK-VIP-1' , 'DOMAIN_B', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Vollkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_43' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); +INSERT INTO TASK VALUES('TKI:200000000000000000000000000000000101', 'ETI:200000000000000000000000000000000101', RELATIVE_DATE(0) , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , null , RELATIVE_DATE(0) , RELATIVE_DATE(14) , 'Task54', 'teamlead-2', 'Some description.', 'Some custom Note', 305 , -1 , 'CLAIMED', 'AUTOMATIC' , 'L30000' , 'CLI:000000000000000000000000000000000003', 'WBI:000000000000000000000000000000000006', 'TPK-VIP-1' , 'DOMAIN_A', 'BPI21' , 'PBPI21' , 'John', 'MyCompany1', 'MySystem1', 'MyInstance1', 'MyType1', 'MyValue1', true , false , null , 'NONE' , null , 'Geschaeftsstelle C' , 'Teilkasko' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , 'VALUE_44' , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ); diff --git a/lib/taskana-core/src/main/java/pro/taskana/monitor/internal/MonitorMapperSqlProvider.java b/lib/taskana-core/src/main/java/pro/taskana/monitor/internal/MonitorMapperSqlProvider.java index 9bf9db462..469ce4095 100644 --- a/lib/taskana-core/src/main/java/pro/taskana/monitor/internal/MonitorMapperSqlProvider.java +++ b/lib/taskana-core/src/main/java/pro/taskana/monitor/internal/MonitorMapperSqlProvider.java @@ -293,11 +293,6 @@ public class MonitorMapperSqlProvider { return sb; } - private static StringBuilder whereCustomStatements( - String baseCollection, String baseColumn, int customBound) { - return whereCustomStatements(baseCollection, baseColumn, customBound, new StringBuilder()); - } - private static StringBuilder taskWhereStatements() { StringBuilder sb = new StringBuilder(); SqlProviderUtil.whereIn("report.workbasketIds", "T.WORKBASKET_ID", sb); diff --git a/lib/taskana-core/src/test/java/acceptance/report/ProvideWorkbasketPriorityReportAccTest.java b/lib/taskana-core/src/test/java/acceptance/report/ProvideWorkbasketPriorityReportAccTest.java index b37fcbe8f..43409b7ff 100644 --- a/lib/taskana-core/src/test/java/acceptance/report/ProvideWorkbasketPriorityReportAccTest.java +++ b/lib/taskana-core/src/test/java/acceptance/report/ProvideWorkbasketPriorityReportAccTest.java @@ -230,4 +230,103 @@ class ProvideWorkbasketPriorityReportAccTest extends AbstractReportAccTest { int[] row4 = report.getRow("TPK-VIP-1").getCells(); assertThat(row4).isEqualTo(new int[] {0, 1, 0}); } + + @WithAccessId(user = "monitor") + @Test + void should_ReturnItemsOfWorkbasketReport_When_FilteringWithAllCustomFieldsIn() throws Exception { + WorkbasketPriorityReport report = + MONITOR_SERVICE + .createWorkbasketPriorityReportBuilder() + .withColumnHeaders(DEFAULT_TEST_HEADERS) + .customAttributeIn(TaskCustomField.CUSTOM_1, "Geschaeftsstelle A") + .customAttributeIn(TaskCustomField.CUSTOM_2, "Vollkasko") + .customAttributeIn(TaskCustomField.CUSTOM_3, "") + .customAttributeIn(TaskCustomField.CUSTOM_4, "") + .customAttributeIn(TaskCustomField.CUSTOM_5, "") + .customAttributeIn(TaskCustomField.CUSTOM_6, "") + .customAttributeIn(TaskCustomField.CUSTOM_7, "") + .customAttributeIn(TaskCustomField.CUSTOM_8, "") + .customAttributeIn(TaskCustomField.CUSTOM_9, "") + .customAttributeIn(TaskCustomField.CUSTOM_10, "") + .customAttributeIn(TaskCustomField.CUSTOM_11, "") + .customAttributeIn(TaskCustomField.CUSTOM_12, "") + .customAttributeIn(TaskCustomField.CUSTOM_13, "") + .customAttributeIn(TaskCustomField.CUSTOM_14, "") + .customAttributeIn(TaskCustomField.CUSTOM_15, "") + .customAttributeIn(TaskCustomField.CUSTOM_16, "VALUE_01") + .inWorkingDays() + .buildReport(); + + assertThat(report).isNotNull(); + assertThat(report.rowSize()).isEqualTo(1); + int[] row1 = report.getRow("USER-1-1").getCells(); + assertThat(row1).isEqualTo(new int[] {1, 0, 0}); + } + + @WithAccessId(user = "monitor") + @Test + void should_ReturnItemsOfWorkbasketReport_When_FilteringWithAllCustomFieldsLike() + throws Exception { + WorkbasketPriorityReport report = + MONITOR_SERVICE + .createWorkbasketPriorityReportBuilder() + .withColumnHeaders(DEFAULT_TEST_HEADERS) + .customAttributeLike(TaskCustomField.CUSTOM_1, "Geschaeftsstelle %") + .customAttributeLike(TaskCustomField.CUSTOM_2, "Vollkask%") + .customAttributeLike(TaskCustomField.CUSTOM_3, "") + .customAttributeLike(TaskCustomField.CUSTOM_4, "") + .customAttributeLike(TaskCustomField.CUSTOM_5, "") + .customAttributeLike(TaskCustomField.CUSTOM_6, "") + .customAttributeLike(TaskCustomField.CUSTOM_7, "") + .customAttributeLike(TaskCustomField.CUSTOM_8, "") + .customAttributeLike(TaskCustomField.CUSTOM_9, "") + .customAttributeLike(TaskCustomField.CUSTOM_10, "") + .customAttributeLike(TaskCustomField.CUSTOM_11, "") + .customAttributeLike(TaskCustomField.CUSTOM_12, "") + .customAttributeLike(TaskCustomField.CUSTOM_13, "") + .customAttributeLike(TaskCustomField.CUSTOM_14, "") + .customAttributeLike(TaskCustomField.CUSTOM_15, "") + .customAttributeLike(TaskCustomField.CUSTOM_16, "%ALUE_01") + .inWorkingDays() + .buildReport(); + + assertThat(report).isNotNull(); + assertThat(report.rowSize()).isEqualTo(1); + int[] row1 = report.getRow("USER-1-1").getCells(); + assertThat(row1).isEqualTo(new int[] {1, 0, 0}); + } + + @WithAccessId(user = "monitor") + @Test + void should_ReturnItemsOfWorkbasketReport_When_FilteringWithAllCustomFieldsNotIn() + throws Exception { + WorkbasketPriorityReport report = + MONITOR_SERVICE + .createWorkbasketPriorityReportBuilder() + .withColumnHeaders(DEFAULT_TEST_HEADERS) + .customAttributeNotIn( + TaskCustomField.CUSTOM_1, "Geschaeftsstelle A", "Geschaeftsstelle C") + .customAttributeNotIn(TaskCustomField.CUSTOM_2, "Teilkasko") + .customAttributeNotIn(TaskCustomField.CUSTOM_3, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_4, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_5, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_6, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_7, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_8, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_9, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_10, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_11, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_12, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_13, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_14, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_15, "INVALID") + .customAttributeNotIn(TaskCustomField.CUSTOM_16, "VALUE_24", "VALUE_25") + .inWorkingDays() + .buildReport(); + + assertThat(report).isNotNull(); + assertThat(report.rowSize()).isEqualTo(1); + int[] row1 = report.getRow("USER-1-1").getCells(); + assertThat(row1).isEqualTo(new int[] {1, 0, 0}); + } } diff --git a/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/MonitorController.java b/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/MonitorController.java index 2a6e115ed..be7a1aa04 100644 --- a/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/MonitorController.java +++ b/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/MonitorController.java @@ -28,7 +28,6 @@ import pro.taskana.monitor.api.reports.header.PriorityColumnHeader; import pro.taskana.monitor.rest.assembler.PriorityColumnHeaderRepresentationModelAssembler; import pro.taskana.monitor.rest.assembler.ReportRepresentationModelAssembler; import pro.taskana.monitor.rest.models.PriorityColumnHeaderRepresentationModel; -import pro.taskana.monitor.rest.models.PriorityReportFilterParameter; import pro.taskana.monitor.rest.models.ReportRepresentationModel; import pro.taskana.task.api.TaskCustomField; import pro.taskana.task.api.TaskState; @@ -99,6 +98,7 @@ public class MonitorController { *

Each Column Header represents a priority range. * * @title Compute a Workbasket Priority Report + * @param filterParameter the filter parameters * @param workbasketTypes determine the WorkbasketTypes to include in the report * @param columnHeaders the column headers for the report * @return the computed Report diff --git a/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/PriorityReportFilterParameter.java b/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/PriorityReportFilterParameter.java new file mode 100644 index 000000000..83bd5ede2 --- /dev/null +++ b/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/PriorityReportFilterParameter.java @@ -0,0 +1,289 @@ +package pro.taskana.monitor.rest; + +import static pro.taskana.common.internal.util.CheckedConsumer.wrap; + +import java.beans.ConstructorProperties; +import java.util.Arrays; +import java.util.List; +import java.util.Optional; +import java.util.stream.Stream; + +import pro.taskana.common.internal.util.Pair; +import pro.taskana.common.rest.QueryParameter; +import pro.taskana.monitor.api.reports.WorkbasketPriorityReport; +import pro.taskana.monitor.api.reports.header.PriorityColumnHeader; +import pro.taskana.task.api.TaskCustomField; +import pro.taskana.task.api.TaskState; + +public class PriorityReportFilterParameter extends ReportFilterParameter + implements QueryParameter { + + @ConstructorProperties({ + "in-working-days", + "workbasket-id", + "state", + "classification-category", + "domain", + "classification-id", + "excluded-classification-id", + "custom-1", + "custom-1-like", + "custom-1-not-in", + "custom-2", + "custom-2-like", + "custom-2-not-in", + "custom-3", + "custom-3-like", + "custom-3-not-in", + "custom-4", + "custom-4-like", + "custom-4-not-in", + "custom-5", + "custom-5-like", + "custom-5-not-in", + "custom-6", + "custom-6-like", + "custom-6-not-in", + "custom-7", + "custom-7-like", + "custom-7-not-in", + "custom-8", + "custom-8-like", + "custom-8-not-in", + "custom-9", + "custom-9-like", + "custom-9-not-in", + "custom-10", + "custom-10-like", + "custom-10-not-in", + "custom-11", + "custom-11-like", + "custom-11-not-in", + "custom-12", + "custom-12-like", + "custom-12-not-in", + "custom-13", + "custom-13-like", + "custom-13-not-in", + "custom-14", + "custom-14-like", + "custom-14-not-in", + "custom-15", + "custom-15-like", + "custom-15-not-in", + "custom-16", + "custom-16-like", + "custom-16-not-in" + }) + public PriorityReportFilterParameter( + Boolean inWorkingDays, + String[] workbasketId, + TaskState[] state, + String[] classificationCategory, + String[] domain, + String[] classificationId, + String[] excludedClassificationId, + String[] custom1, + String[] custom1Like, + String[] custom1NotIn, + String[] custom2, + String[] custom2Like, + String[] custom2NotIn, + String[] custom3, + String[] custom3Like, + String[] custom3NotIn, + String[] custom4, + String[] custom4Like, + String[] custom4NotIn, + String[] custom5, + String[] custom5Like, + String[] custom5NotIn, + String[] custom6, + String[] custom6Like, + String[] custom6NotIn, + String[] custom7, + String[] custom7Like, + String[] custom7NotIn, + String[] custom8, + String[] custom8Like, + String[] custom8NotIn, + String[] custom9, + String[] custom9Like, + String[] custom9NotIn, + String[] custom10, + String[] custom10Like, + String[] custom10NotIn, + String[] custom11, + String[] custom11Like, + String[] custom11NotIn, + String[] custom12, + String[] custom12Like, + String[] custom12NotIn, + String[] custom13, + String[] custom13Like, + String[] custom13NotIn, + String[] custom14, + String[] custom14Like, + String[] custom14NotIn, + String[] custom15, + String[] custom15Like, + String[] custom15NotIn, + String[] custom16, + String[] custom16Like, + String[] custom16NotIn) { + super( + inWorkingDays, + workbasketId, + state, + classificationCategory, + domain, + classificationId, + excludedClassificationId, + custom1, + custom1Like, + custom1NotIn, + custom2, + custom2Like, + custom2NotIn, + custom3, + custom3Like, + custom3NotIn, + custom4, + custom4Like, + custom4NotIn, + custom5, + custom5Like, + custom5NotIn, + custom6, + custom6Like, + custom6NotIn, + custom7, + custom7Like, + custom7NotIn, + custom8, + custom8Like, + custom8NotIn, + custom9, + custom9Like, + custom9NotIn, + custom10, + custom10Like, + custom10NotIn, + custom11, + custom11Like, + custom11NotIn, + custom12, + custom12Like, + custom12NotIn, + custom13, + custom13Like, + custom13NotIn, + custom14, + custom14Like, + custom14NotIn, + custom15, + custom15Like, + custom15NotIn, + custom16, + custom16Like, + custom16NotIn); + } + + @Override + public Void apply(WorkbasketPriorityReport.Builder builder) { + builder.withColumnHeaders(defaultColumnHeaders()); + Optional.ofNullable(inWorkingDays) + .ifPresent( + bool -> { + if (Boolean.TRUE.equals(bool)) { + builder.inWorkingDays(); + } + }); + Optional.ofNullable(workbasketId).map(Arrays::asList).ifPresent(builder::workbasketIdIn); + Optional.ofNullable(state).map(Arrays::asList).ifPresent(builder::stateIn); + Optional.ofNullable(classificationCategory) + .map(Arrays::asList) + .ifPresent(builder::classificationCategoryIn); + Optional.ofNullable(domain).map(Arrays::asList).ifPresent(builder::domainIn); + Optional.ofNullable(classificationId) + .map(Arrays::asList) + .ifPresent(builder::classificationIdIn); + Optional.ofNullable(excludedClassificationId) + .map(Arrays::asList) + .ifPresent(builder::excludedClassificationIdIn); + + Stream.of( + Pair.of(TaskCustomField.CUSTOM_1, custom1), + Pair.of(TaskCustomField.CUSTOM_2, custom2), + Pair.of(TaskCustomField.CUSTOM_3, custom3), + Pair.of(TaskCustomField.CUSTOM_4, custom4), + Pair.of(TaskCustomField.CUSTOM_5, custom5), + Pair.of(TaskCustomField.CUSTOM_6, custom6), + Pair.of(TaskCustomField.CUSTOM_7, custom7), + Pair.of(TaskCustomField.CUSTOM_8, custom8), + Pair.of(TaskCustomField.CUSTOM_9, custom9), + Pair.of(TaskCustomField.CUSTOM_10, custom10), + Pair.of(TaskCustomField.CUSTOM_11, custom11), + Pair.of(TaskCustomField.CUSTOM_12, custom12), + Pair.of(TaskCustomField.CUSTOM_13, custom13), + Pair.of(TaskCustomField.CUSTOM_14, custom14), + Pair.of(TaskCustomField.CUSTOM_15, custom15), + Pair.of(TaskCustomField.CUSTOM_16, custom16)) + .forEach( + pair -> + Optional.ofNullable(pair.getRight()) + .ifPresent(wrap(l -> builder.customAttributeIn(pair.getLeft(), l)))); + Stream.of( + Pair.of(TaskCustomField.CUSTOM_1, custom1Like), + Pair.of(TaskCustomField.CUSTOM_2, custom2Like), + Pair.of(TaskCustomField.CUSTOM_3, custom3Like), + Pair.of(TaskCustomField.CUSTOM_4, custom4Like), + Pair.of(TaskCustomField.CUSTOM_5, custom5Like), + Pair.of(TaskCustomField.CUSTOM_6, custom6Like), + Pair.of(TaskCustomField.CUSTOM_7, custom7Like), + Pair.of(TaskCustomField.CUSTOM_8, custom8Like), + Pair.of(TaskCustomField.CUSTOM_9, custom9Like), + Pair.of(TaskCustomField.CUSTOM_10, custom10Like), + Pair.of(TaskCustomField.CUSTOM_11, custom11Like), + Pair.of(TaskCustomField.CUSTOM_12, custom12Like), + Pair.of(TaskCustomField.CUSTOM_13, custom13Like), + Pair.of(TaskCustomField.CUSTOM_14, custom14Like), + Pair.of(TaskCustomField.CUSTOM_15, custom15Like), + Pair.of(TaskCustomField.CUSTOM_16, custom16Like)) + .forEach( + pair -> + Optional.ofNullable(pair.getRight()) + .map(this::wrapElementsInLikeStatement) + .ifPresent(wrap(l -> builder.customAttributeLike(pair.getLeft(), l)))); + + Stream.of( + Pair.of(TaskCustomField.CUSTOM_1, custom1NotIn), + Pair.of(TaskCustomField.CUSTOM_2, custom2NotIn), + Pair.of(TaskCustomField.CUSTOM_3, custom3NotIn), + Pair.of(TaskCustomField.CUSTOM_4, custom4NotIn), + Pair.of(TaskCustomField.CUSTOM_5, custom5NotIn), + Pair.of(TaskCustomField.CUSTOM_6, custom6NotIn), + Pair.of(TaskCustomField.CUSTOM_7, custom7NotIn), + Pair.of(TaskCustomField.CUSTOM_8, custom8NotIn), + Pair.of(TaskCustomField.CUSTOM_9, custom9NotIn), + Pair.of(TaskCustomField.CUSTOM_10, custom10NotIn), + Pair.of(TaskCustomField.CUSTOM_11, custom11NotIn), + Pair.of(TaskCustomField.CUSTOM_12, custom12NotIn), + Pair.of(TaskCustomField.CUSTOM_13, custom13NotIn), + Pair.of(TaskCustomField.CUSTOM_14, custom14NotIn), + Pair.of(TaskCustomField.CUSTOM_15, custom15NotIn), + Pair.of(TaskCustomField.CUSTOM_16, custom16NotIn)) + .forEach( + pair -> + Optional.ofNullable(pair.getRight()) + .ifPresent(wrap(l -> builder.customAttributeNotIn(pair.getLeft(), l)))); + return null; + } + + private List defaultColumnHeaders() { + return Arrays.asList( + new PriorityColumnHeader(Integer.MIN_VALUE, 249), + new PriorityColumnHeader(250, 500), + new PriorityColumnHeader(501, Integer.MAX_VALUE)); + } +} diff --git a/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/models/PriorityReportFilterParameter.java b/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/ReportFilterParameter.java similarity index 64% rename from rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/models/PriorityReportFilterParameter.java rename to rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/ReportFilterParameter.java index eea07ed87..e78e40265 100644 --- a/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/models/PriorityReportFilterParameter.java +++ b/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/ReportFilterParameter.java @@ -1,55 +1,43 @@ -package pro.taskana.monitor.rest.models; - -import static pro.taskana.common.internal.util.CheckedConsumer.wrap; +package pro.taskana.monitor.rest; import com.fasterxml.jackson.annotation.JsonProperty; import java.beans.ConstructorProperties; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; -import java.util.stream.Stream; -import pro.taskana.common.internal.util.Pair; -import pro.taskana.common.rest.QueryParameter; -import pro.taskana.monitor.api.reports.WorkbasketPriorityReport; -import pro.taskana.monitor.api.reports.header.PriorityColumnHeader; -import pro.taskana.task.api.TaskCustomField; import pro.taskana.task.api.TaskState; -public class PriorityReportFilterParameter - implements QueryParameter { +public class ReportFilterParameter { /** Determine weather the report should convert the age of the tasks into working days. */ @JsonProperty("in-working-days") - private final Boolean inWorkingDays; + protected final Boolean inWorkingDays; /** Filter by workbasket id of the task. This is an exact match. */ @JsonProperty("workbasket-id") - private final String[] workbasketId; + protected final String[] workbasketId; /** Filter by the task state. This is an exact match. */ @JsonProperty("state") - private final TaskState[] state; + protected final TaskState[] state; /** Filter by the classification category of the task. This is an exact match. */ @JsonProperty("classification-category") - private final String[] classificationCategory; + protected final String[] classificationCategory; /** Filter by domain of the task. This is an exact match. */ @JsonProperty("domain") - private final String[] domain; + protected final String[] domain; /** Filter by the classification id of the task. This is an exact match. */ @JsonProperty("classification-id") - private final String[] classificationId; + protected final String[] classificationId; /** Filter by the classification id of the task. This is an exact match. */ @JsonProperty("excluded-classification-id") - private final String[] excludedClassificationId; + protected final String[] excludedClassificationId; /** Filter by the value of the field custom1 of the task. This is an exact match. */ @JsonProperty("custom-1") - private final String[] custom1; + protected final String[] custom1; /** * Filter by the custom1 field of the task. This results in a substring search (% is appended to @@ -57,15 +45,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-1-like") - private final String[] custom1Like; + protected final String[] custom1Like; /** Filter out by values of the field custom1 of the task. This is an exact match. */ @JsonProperty("custom-1-not-in") - private final String[] custom1NotIn; + protected final String[] custom1NotIn; /** Filter by the value of the field custom2 of the task. This is an exact match. */ @JsonProperty("custom-2") - private final String[] custom2; + protected final String[] custom2; /** * Filter by the custom2 field of the task. This results in a substring search (% is appended to @@ -73,15 +61,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-2-like") - private final String[] custom2Like; + protected final String[] custom2Like; /** Filter out by values of the field custom2 of the task. This is an exact match. */ @JsonProperty("custom-2-not-in") - private final String[] custom2NotIn; + protected final String[] custom2NotIn; /** Filter by the value of the field custom3 of the task. This is an exact match. */ @JsonProperty("custom-3") - private final String[] custom3; + protected final String[] custom3; /** * Filter by the custom3 field of the task. This results in a substring search (% is appended to @@ -89,15 +77,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-3-like") - private final String[] custom3Like; + protected final String[] custom3Like; /** Filter out by values of the field custom3 of the task. This is an exact match. */ @JsonProperty("custom-3-not-in") - private final String[] custom3NotIn; + protected final String[] custom3NotIn; /** Filter by the value of the field custom4 of the task. This is an exact match. */ @JsonProperty("custom-4") - private final String[] custom4; + protected final String[] custom4; /** * Filter by the custom4 field of the task. This results in a substring search (% is appended to @@ -105,15 +93,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-4-like") - private final String[] custom4Like; + protected final String[] custom4Like; /** Filter out by values of the field custom4 of the task. This is an exact match. */ @JsonProperty("custom-4-not-in") - private final String[] custom4NotIn; + protected final String[] custom4NotIn; /** Filter by the value of the field custom5 of the task. This is an exact match. */ @JsonProperty("custom-5") - private final String[] custom5; + protected final String[] custom5; /** * Filter by the custom5 field of the task. This results in a substring search (% is appended to @@ -121,15 +109,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-5-like") - private final String[] custom5Like; + protected final String[] custom5Like; /** Filter out by values of the field custom5 of the task. This is an exact match. */ @JsonProperty("custom-5-not-in") - private final String[] custom5NotIn; + protected final String[] custom5NotIn; /** Filter by the value of the field custom6 of the task. This is an exact match. */ @JsonProperty("custom-6") - private final String[] custom6; + protected final String[] custom6; /** * Filter by the custom6 field of the task. This results in a substring search (% is appended to @@ -137,15 +125,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-6-like") - private final String[] custom6Like; + protected final String[] custom6Like; /** Filter out by values of the field custom6 of the task. This is an exact match. */ @JsonProperty("custom-6-not-in") - private final String[] custom6NotIn; + protected final String[] custom6NotIn; /** Filter by the value of the field custom7 of the task. This is an exact match. */ @JsonProperty("custom-7") - private final String[] custom7; + protected final String[] custom7; /** * Filter by the custom7 field of the task. This results in a substring search (% is appended to @@ -153,15 +141,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-7-like") - private final String[] custom7Like; + protected final String[] custom7Like; /** Filter out by values of the field custom7 of the task. This is an exact match. */ @JsonProperty("custom-7-not-in") - private final String[] custom7NotIn; + protected final String[] custom7NotIn; /** Filter by the value of the field custom8 of the task. This is an exact match. */ @JsonProperty("custom-8") - private final String[] custom8; + protected final String[] custom8; /** * Filter by the custom8 field of the task. This results in a substring search (% is appended to @@ -169,15 +157,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-8-like") - private final String[] custom8Like; + protected final String[] custom8Like; /** Filter out by values of the field custom8 of the task. This is an exact match. */ @JsonProperty("custom-8-not-in") - private final String[] custom8NotIn; + protected final String[] custom8NotIn; /** Filter by the value of the field custom9 of the task. This is an exact match. */ @JsonProperty("custom-9") - private final String[] custom9; + protected final String[] custom9; /** * Filter by the custom9 field of the task. This results in a substring search (% is appended to @@ -185,15 +173,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-9-like") - private final String[] custom9Like; + protected final String[] custom9Like; /** Filter out by values of the field custom9 of the task. This is an exact match. */ @JsonProperty("custom-9-not-in") - private final String[] custom9NotIn; + protected final String[] custom9NotIn; /** Filter by the value of the field custom10 of the task. This is an exact match. */ @JsonProperty("custom-10") - private final String[] custom10; + protected final String[] custom10; /** * Filter by the custom10 field of the task. This results in a substring search (% is appended to @@ -201,15 +189,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-10-like") - private final String[] custom10Like; + protected final String[] custom10Like; /** Filter out by values of the field custom10 of the task. This is an exact match. */ @JsonProperty("custom-10-not-in") - private final String[] custom10NotIn; + protected final String[] custom10NotIn; /** Filter by the value of the field custom11 of the task. This is an exact match. */ @JsonProperty("custom-11") - private final String[] custom11; + protected final String[] custom11; /** * Filter by the custom11 field of the task. This results in a substring search (% is appended to @@ -217,15 +205,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-11-like") - private final String[] custom11Like; + protected final String[] custom11Like; /** Filter out by values of the field custom11 of the task. This is an exact match. */ @JsonProperty("custom-11-not-in") - private final String[] custom11NotIn; + protected final String[] custom11NotIn; /** Filter by the value of the field custom12 of the task. This is an exact match. */ @JsonProperty("custom-12") - private final String[] custom12; + protected final String[] custom12; /** * Filter by the custom12 field of the task. This results in a substring search (% is appended to @@ -233,15 +221,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-12-like") - private final String[] custom12Like; + protected final String[] custom12Like; /** Filter out by values of the field custom12 of the task. This is an exact match. */ @JsonProperty("custom-12-not-in") - private final String[] custom12NotIn; + protected final String[] custom12NotIn; /** Filter by the value of the field custom13 of the task. This is an exact match. */ @JsonProperty("custom-13") - private final String[] custom13; + protected final String[] custom13; /** * Filter by the custom13 field of the task. This results in a substring search (% is appended to @@ -249,15 +237,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-13-like") - private final String[] custom13Like; + protected final String[] custom13Like; /** Filter out by values of the field custom13 of the task. This is an exact match. */ @JsonProperty("custom-13-not-in") - private final String[] custom13NotIn; + protected final String[] custom13NotIn; /** Filter by the value of the field custom14 of the task. This is an exact match. */ @JsonProperty("custom-14") - private final String[] custom14; + protected final String[] custom14; /** * Filter by the custom14 field of the task. This results in a substring search (% is appended to @@ -265,15 +253,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-14-like") - private final String[] custom14Like; + protected final String[] custom14Like; /** Filter out by values of the field custom14 of the task. This is an exact match. */ @JsonProperty("custom-14-not-in") - private final String[] custom14NotIn; + protected final String[] custom14NotIn; /** Filter by the value of the field custom15 of the task. This is an exact match. */ @JsonProperty("custom-15") - private final String[] custom15; + protected final String[] custom15; /** * Filter by the custom15 field of the task. This results in a substring search (% is appended to @@ -281,15 +269,15 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-15-like") - private final String[] custom15Like; + protected final String[] custom15Like; /** Filter out by values of the field custom15 of the task. This is an exact match. */ @JsonProperty("custom-15-not-in") - private final String[] custom15NotIn; + protected final String[] custom15NotIn; /** Filter by the value of the field custom16 of the task. This is an exact match. */ @JsonProperty("custom-16") - private final String[] custom16; + protected final String[] custom16; /** * Filter by the custom16 field of the task. This results in a substring search (% is appended to @@ -297,11 +285,11 @@ public class PriorityReportFilterParameter * resolved correctly. */ @JsonProperty("custom-16-like") - private final String[] custom16Like; + protected final String[] custom16Like; /** Filter out by values of the field custom16 of the task. This is an exact match. */ @JsonProperty("custom-16-not-in") - private final String[] custom16NotIn; + protected final String[] custom16NotIn; @ConstructorProperties({ "in-working-days", @@ -360,7 +348,7 @@ public class PriorityReportFilterParameter "custom-16-like", "custom-16-not-in" }) - public PriorityReportFilterParameter( + public ReportFilterParameter( Boolean inWorkingDays, String[] workbasketId, TaskState[] state, @@ -473,101 +461,4 @@ public class PriorityReportFilterParameter this.custom16NotIn = custom16NotIn; } - @Override - public Void apply(WorkbasketPriorityReport.Builder builder) { - builder.withColumnHeaders(defaultColumnHeaders()); - Optional.ofNullable(inWorkingDays) - .ifPresent( - bool -> { - if (bool) { - builder.inWorkingDays(); - } - }); - Optional.ofNullable(workbasketId).map(Arrays::asList).ifPresent(builder::workbasketIdIn); - Optional.ofNullable(state).map(Arrays::asList).ifPresent(builder::stateIn); - Optional.ofNullable(classificationCategory) - .map(Arrays::asList) - .ifPresent(builder::classificationCategoryIn); - Optional.ofNullable(domain).map(Arrays::asList).ifPresent(builder::domainIn); - Optional.ofNullable(classificationId) - .map(Arrays::asList) - .ifPresent(builder::classificationIdIn); - Optional.ofNullable(excludedClassificationId) - .map(Arrays::asList) - .ifPresent(builder::excludedClassificationIdIn); - - Stream.of( - Pair.of(TaskCustomField.CUSTOM_1, custom1), - Pair.of(TaskCustomField.CUSTOM_2, custom2), - Pair.of(TaskCustomField.CUSTOM_3, custom3), - Pair.of(TaskCustomField.CUSTOM_4, custom4), - Pair.of(TaskCustomField.CUSTOM_5, custom5), - Pair.of(TaskCustomField.CUSTOM_6, custom6), - Pair.of(TaskCustomField.CUSTOM_7, custom7), - Pair.of(TaskCustomField.CUSTOM_8, custom8), - Pair.of(TaskCustomField.CUSTOM_9, custom9), - Pair.of(TaskCustomField.CUSTOM_10, custom10), - Pair.of(TaskCustomField.CUSTOM_11, custom11), - Pair.of(TaskCustomField.CUSTOM_12, custom12), - Pair.of(TaskCustomField.CUSTOM_13, custom13), - Pair.of(TaskCustomField.CUSTOM_14, custom14), - Pair.of(TaskCustomField.CUSTOM_15, custom15), - Pair.of(TaskCustomField.CUSTOM_16, custom16)) - .forEach( - pair -> - Optional.ofNullable(pair.getRight()) - .ifPresent(wrap(l -> builder.customAttributeIn(pair.getLeft(), l)))); - Stream.of( - Pair.of(TaskCustomField.CUSTOM_1, custom1Like), - Pair.of(TaskCustomField.CUSTOM_2, custom2Like), - Pair.of(TaskCustomField.CUSTOM_3, custom3Like), - Pair.of(TaskCustomField.CUSTOM_4, custom4Like), - Pair.of(TaskCustomField.CUSTOM_5, custom5Like), - Pair.of(TaskCustomField.CUSTOM_6, custom6Like), - Pair.of(TaskCustomField.CUSTOM_7, custom7Like), - Pair.of(TaskCustomField.CUSTOM_8, custom8Like), - Pair.of(TaskCustomField.CUSTOM_9, custom9Like), - Pair.of(TaskCustomField.CUSTOM_10, custom10Like), - Pair.of(TaskCustomField.CUSTOM_11, custom11Like), - Pair.of(TaskCustomField.CUSTOM_12, custom12Like), - Pair.of(TaskCustomField.CUSTOM_13, custom13Like), - Pair.of(TaskCustomField.CUSTOM_14, custom14Like), - Pair.of(TaskCustomField.CUSTOM_15, custom15Like), - Pair.of(TaskCustomField.CUSTOM_16, custom16Like)) - .forEach( - pair -> - Optional.ofNullable(pair.getRight()) - .map(this::wrapElementsInLikeStatement) - .ifPresent(wrap(l -> builder.customAttributeLike(pair.getLeft(), l)))); - - Stream.of( - Pair.of(TaskCustomField.CUSTOM_1, custom1NotIn), - Pair.of(TaskCustomField.CUSTOM_2, custom2NotIn), - Pair.of(TaskCustomField.CUSTOM_3, custom3NotIn), - Pair.of(TaskCustomField.CUSTOM_4, custom4NotIn), - Pair.of(TaskCustomField.CUSTOM_5, custom5NotIn), - Pair.of(TaskCustomField.CUSTOM_6, custom6NotIn), - Pair.of(TaskCustomField.CUSTOM_7, custom7NotIn), - Pair.of(TaskCustomField.CUSTOM_8, custom8NotIn), - Pair.of(TaskCustomField.CUSTOM_9, custom9NotIn), - Pair.of(TaskCustomField.CUSTOM_10, custom10NotIn), - Pair.of(TaskCustomField.CUSTOM_11, custom11NotIn), - Pair.of(TaskCustomField.CUSTOM_12, custom12NotIn), - Pair.of(TaskCustomField.CUSTOM_13, custom13NotIn), - Pair.of(TaskCustomField.CUSTOM_14, custom14NotIn), - Pair.of(TaskCustomField.CUSTOM_15, custom15NotIn), - Pair.of(TaskCustomField.CUSTOM_16, custom16NotIn)) - .forEach( - pair -> - Optional.ofNullable(pair.getRight()) - .ifPresent(wrap(l -> builder.customAttributeNotIn(pair.getLeft(), l)))); - return null; - } - - private List defaultColumnHeaders() { - return Arrays.asList( - new PriorityColumnHeader(Integer.MIN_VALUE, 249), - new PriorityColumnHeader(250, 500), - new PriorityColumnHeader(501, Integer.MAX_VALUE)); - } } diff --git a/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/TimeIntervalReportFilterParameter.java b/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/TimeIntervalReportFilterParameter.java index 643df2078..5363f2317 100644 --- a/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/TimeIntervalReportFilterParameter.java +++ b/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/TimeIntervalReportFilterParameter.java @@ -2,7 +2,6 @@ package pro.taskana.monitor.rest; import static pro.taskana.common.internal.util.CheckedConsumer.wrap; -import com.fasterxml.jackson.annotation.JsonProperty; import java.beans.ConstructorProperties; import java.util.Arrays; import java.util.Comparator; @@ -18,293 +17,9 @@ import pro.taskana.monitor.api.reports.header.TimeIntervalColumnHeader; import pro.taskana.task.api.TaskCustomField; import pro.taskana.task.api.TaskState; -public class TimeIntervalReportFilterParameter +public class TimeIntervalReportFilterParameter extends ReportFilterParameter implements QueryParameter, Void> { - /** Determine weather the report should convert the age of the tasks into working days. */ - @JsonProperty("in-working-days") - private final Boolean inWorkingDays; - - /** Filter by workbasket id of the task. This is an exact match. */ - @JsonProperty("workbasket-id") - private final String[] workbasketId; - - /** Filter by the task state. This is an exact match. */ - @JsonProperty("state") - private final TaskState[] state; - - /** Filter by the classification category of the task. This is an exact match. */ - @JsonProperty("classification-category") - private final String[] classificationCategory; - - /** Filter by domain of the task. This is an exact match. */ - @JsonProperty("domain") - private final String[] domain; - - /** Filter by the classification id of the task. This is an exact match. */ - @JsonProperty("classification-id") - private final String[] classificationId; - - /** Filter by the classification id of the task. This is an exact match. */ - @JsonProperty("excluded-classification-id") - private final String[] excludedClassificationId; - - /** Filter by the value of the field custom1 of the task. This is an exact match. */ - @JsonProperty("custom-1") - private final String[] custom1; - - /** - * Filter by the custom1 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-1-like") - private final String[] custom1Like; - - /** Filter out by values of the field custom1 of the task. This is an exact match. */ - @JsonProperty("custom-1-not-in") - private final String[] custom1NotIn; - - /** Filter by the value of the field custom2 of the task. This is an exact match. */ - @JsonProperty("custom-2") - private final String[] custom2; - - /** - * Filter by the custom2 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-2-like") - private final String[] custom2Like; - - /** Filter out by values of the field custom2 of the task. This is an exact match. */ - @JsonProperty("custom-2-not-in") - private final String[] custom2NotIn; - - /** Filter by the value of the field custom3 of the task. This is an exact match. */ - @JsonProperty("custom-3") - private final String[] custom3; - - /** - * Filter by the custom3 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-3-like") - private final String[] custom3Like; - - /** Filter out by values of the field custom3 of the task. This is an exact match. */ - @JsonProperty("custom-3-not-in") - private final String[] custom3NotIn; - - /** Filter by the value of the field custom4 of the task. This is an exact match. */ - @JsonProperty("custom-4") - private final String[] custom4; - - /** - * Filter by the custom4 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-4-like") - private final String[] custom4Like; - - /** Filter out by values of the field custom4 of the task. This is an exact match. */ - @JsonProperty("custom-4-not-in") - private final String[] custom4NotIn; - - /** Filter by the value of the field custom5 of the task. This is an exact match. */ - @JsonProperty("custom-5") - private final String[] custom5; - - /** - * Filter by the custom5 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-5-like") - private final String[] custom5Like; - - /** Filter out by values of the field custom5 of the task. This is an exact match. */ - @JsonProperty("custom-5-not-in") - private final String[] custom5NotIn; - - /** Filter by the value of the field custom6 of the task. This is an exact match. */ - @JsonProperty("custom-6") - private final String[] custom6; - - /** - * Filter by the custom6 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-6-like") - private final String[] custom6Like; - - /** Filter out by values of the field custom6 of the task. This is an exact match. */ - @JsonProperty("custom-6-not-in") - private final String[] custom6NotIn; - - /** Filter by the value of the field custom7 of the task. This is an exact match. */ - @JsonProperty("custom-7") - private final String[] custom7; - - /** - * Filter by the custom7 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-7-like") - private final String[] custom7Like; - - /** Filter out by values of the field custom7 of the task. This is an exact match. */ - @JsonProperty("custom-7-not-in") - private final String[] custom7NotIn; - - /** Filter by the value of the field custom8 of the task. This is an exact match. */ - @JsonProperty("custom-8") - private final String[] custom8; - - /** - * Filter by the custom8 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-8-like") - private final String[] custom8Like; - - /** Filter out by values of the field custom8 of the task. This is an exact match. */ - @JsonProperty("custom-8-not-in") - private final String[] custom8NotIn; - - /** Filter by the value of the field custom9 of the task. This is an exact match. */ - @JsonProperty("custom-9") - private final String[] custom9; - - /** - * Filter by the custom9 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-9-like") - private final String[] custom9Like; - - /** Filter out by values of the field custom9 of the task. This is an exact match. */ - @JsonProperty("custom-9-not-in") - private final String[] custom9NotIn; - - /** Filter by the value of the field custom10 of the task. This is an exact match. */ - @JsonProperty("custom-10") - private final String[] custom10; - - /** - * Filter by the custom10 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-10-like") - private final String[] custom10Like; - - /** Filter out by values of the field custom10 of the task. This is an exact match. */ - @JsonProperty("custom-10-not-in") - private final String[] custom10NotIn; - - /** Filter by the value of the field custom11 of the task. This is an exact match. */ - @JsonProperty("custom-11") - private final String[] custom11; - - /** - * Filter by the custom11 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-11-like") - private final String[] custom11Like; - - /** Filter out by values of the field custom11 of the task. This is an exact match. */ - @JsonProperty("custom-11-not-in") - private final String[] custom11NotIn; - - /** Filter by the value of the field custom12 of the task. This is an exact match. */ - @JsonProperty("custom-12") - private final String[] custom12; - - /** - * Filter by the custom12 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-12-like") - private final String[] custom12Like; - - /** Filter out by values of the field custom12 of the task. This is an exact match. */ - @JsonProperty("custom-12-not-in") - private final String[] custom12NotIn; - - /** Filter by the value of the field custom13 of the task. This is an exact match. */ - @JsonProperty("custom-13") - private final String[] custom13; - - /** - * Filter by the custom13 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-13-like") - private final String[] custom13Like; - - /** Filter out by values of the field custom13 of the task. This is an exact match. */ - @JsonProperty("custom-13-not-in") - private final String[] custom13NotIn; - - /** Filter by the value of the field custom14 of the task. This is an exact match. */ - @JsonProperty("custom-14") - private final String[] custom14; - - /** - * Filter by the custom14 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-14-like") - private final String[] custom14Like; - - /** Filter out by values of the field custom14 of the task. This is an exact match. */ - @JsonProperty("custom-14-not-in") - private final String[] custom14NotIn; - - /** Filter by the value of the field custom15 of the task. This is an exact match. */ - @JsonProperty("custom-15") - private final String[] custom15; - - /** - * Filter by the custom15 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-15-like") - private final String[] custom15Like; - - /** Filter out by values of the field custom15 of the task. This is an exact match. */ - @JsonProperty("custom-15-not-in") - private final String[] custom15NotIn; - - /** Filter by the value of the field custom16 of the task. This is an exact match. */ - @JsonProperty("custom-16") - private final String[] custom16; - - /** - * Filter by the custom16 field of the task. This results in a substring search (% is appended to - * the front and end of the requested value). Further SQL "LIKE" wildcard characters will be - * resolved correctly. - */ - @JsonProperty("custom-16-like") - private final String[] custom16Like; - - /** Filter out by values of the field custom16 of the task. This is an exact match. */ - @JsonProperty("custom-16-not-in") - private final String[] custom16NotIn; - @ConstructorProperties({ "in-working-days", "workbasket-id", @@ -418,61 +133,62 @@ public class TimeIntervalReportFilterParameter String[] custom16, String[] custom16Like, String[] custom16NotIn) { - this.inWorkingDays = inWorkingDays; - this.workbasketId = workbasketId; - this.state = state; - this.classificationCategory = classificationCategory; - this.domain = domain; - this.classificationId = classificationId; - this.excludedClassificationId = excludedClassificationId; - this.custom1 = custom1; - this.custom1Like = custom1Like; - this.custom1NotIn = custom1NotIn; - this.custom2 = custom2; - this.custom2Like = custom2Like; - this.custom2NotIn = custom2NotIn; - this.custom3 = custom3; - this.custom3Like = custom3Like; - this.custom3NotIn = custom3NotIn; - this.custom4 = custom4; - this.custom4Like = custom4Like; - this.custom4NotIn = custom4NotIn; - this.custom5 = custom5; - this.custom5Like = custom5Like; - this.custom5NotIn = custom5NotIn; - this.custom6 = custom6; - this.custom6Like = custom6Like; - this.custom6NotIn = custom6NotIn; - this.custom7 = custom7; - this.custom7Like = custom7Like; - this.custom7NotIn = custom7NotIn; - this.custom8 = custom8; - this.custom8Like = custom8Like; - this.custom8NotIn = custom8NotIn; - this.custom9 = custom9; - this.custom9Like = custom9Like; - this.custom9NotIn = custom9NotIn; - this.custom10 = custom10; - this.custom10Like = custom10Like; - this.custom10NotIn = custom10NotIn; - this.custom11 = custom11; - this.custom11Like = custom11Like; - this.custom11NotIn = custom11NotIn; - this.custom12 = custom12; - this.custom12Like = custom12Like; - this.custom12NotIn = custom12NotIn; - this.custom13 = custom13; - this.custom13Like = custom13Like; - this.custom13NotIn = custom13NotIn; - this.custom14 = custom14; - this.custom14Like = custom14Like; - this.custom14NotIn = custom14NotIn; - this.custom15 = custom15; - this.custom15Like = custom15Like; - this.custom15NotIn = custom15NotIn; - this.custom16 = custom16; - this.custom16Like = custom16Like; - this.custom16NotIn = custom16NotIn; + super( + inWorkingDays, + workbasketId, + state, + classificationCategory, + domain, + classificationId, + excludedClassificationId, + custom1, + custom1Like, + custom1NotIn, + custom2, + custom2Like, + custom2NotIn, + custom3, + custom3Like, + custom3NotIn, + custom4, + custom4Like, + custom4NotIn, + custom5, + custom5Like, + custom5NotIn, + custom6, + custom6Like, + custom6NotIn, + custom7, + custom7Like, + custom7NotIn, + custom8, + custom8Like, + custom8NotIn, + custom9, + custom9Like, + custom9NotIn, + custom10, + custom10Like, + custom10NotIn, + custom11, + custom11Like, + custom11NotIn, + custom12, + custom12Like, + custom12NotIn, + custom13, + custom13Like, + custom13NotIn, + custom14, + custom14Like, + custom14NotIn, + custom15, + custom15Like, + custom15NotIn, + custom16, + custom16Like, + custom16NotIn); } @Override diff --git a/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/assembler/ReportRepresentationModelAssembler.java b/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/assembler/ReportRepresentationModelAssembler.java index 772aff2fe..12d10a506 100644 --- a/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/assembler/ReportRepresentationModelAssembler.java +++ b/rest/taskana-rest-spring/src/main/java/pro/taskana/monitor/rest/assembler/ReportRepresentationModelAssembler.java @@ -31,9 +31,9 @@ import pro.taskana.monitor.api.reports.row.FoldableRow; import pro.taskana.monitor.api.reports.row.Row; import pro.taskana.monitor.api.reports.row.SingleRow; import pro.taskana.monitor.rest.MonitorController; +import pro.taskana.monitor.rest.PriorityReportFilterParameter; import pro.taskana.monitor.rest.TimeIntervalReportFilterParameter; import pro.taskana.monitor.rest.models.PriorityColumnHeaderRepresentationModel; -import pro.taskana.monitor.rest.models.PriorityReportFilterParameter; import pro.taskana.monitor.rest.models.ReportRepresentationModel; import pro.taskana.monitor.rest.models.ReportRepresentationModel.RowRepresentationModel; import pro.taskana.task.api.TaskCustomField; diff --git a/rest/taskana-rest-spring/src/test/java/pro/taskana/monitor/rest/MonitorControllerRestDocTest.java b/rest/taskana-rest-spring/src/test/java/pro/taskana/monitor/rest/MonitorControllerRestDocTest.java index c7bf2d44b..0372d4257 100644 --- a/rest/taskana-rest-spring/src/test/java/pro/taskana/monitor/rest/MonitorControllerRestDocTest.java +++ b/rest/taskana-rest-spring/src/test/java/pro/taskana/monitor/rest/MonitorControllerRestDocTest.java @@ -62,7 +62,7 @@ class MonitorControllerRestDocTest extends BaseRestDocTest { @Test void computeTaskStatusReportDocTest() throws Exception { mockMvc - .perform(get(RestEndpoints.URL_MONITOR_TASK_STATUS_REPORT + "?state=READY")) + .perform(get(RestEndpoints.URL_MONITOR_TASK_STATUS_REPORT)) .andExpect(MockMvcResultMatchers.status().isOk()); }