TSK-1335: removed last occurences of "HEI" prefix for history events
This commit is contained in:
parent
121a9c103f
commit
b23c6873db
|
@ -1,46 +1,46 @@
|
||||||
-- TASK_HISTORY_EVENT TABLE (ID , BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, TASK_ID , EVENT_TYPE, CREATED , USER_ID , DOMAIN , WORKBASKET_KEY , POR_COMPANY, POR_SYSTEM, POR_INSTANCE, POR_TYPE, POR_VALUE , TASK_CLASSIFICATION_KEY, TASK_CLASSIFICATION_CATEGORY, ATTACHMENT_CLASSIFICATION_KEY, OLD_VALUE , NEW_VALUE , CUSTOM_1 , CUSTOM_2 , CUSTOM_3 , CUSTOM_4 , DETAILS );
|
-- TASK_HISTORY_EVENT TABLE (ID , BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, TASK_ID , EVENT_TYPE, CREATED , USER_ID , DOMAIN , WORKBASKET_KEY , POR_COMPANY, POR_SYSTEM, POR_INSTANCE, POR_TYPE, POR_VALUE , TASK_CLASSIFICATION_KEY, TASK_CLASSIFICATION_CATEGORY, ATTACHMENT_CLASSIFICATION_KEY, OLD_VALUE , NEW_VALUE , CUSTOM_1 , CUSTOM_2 , CUSTOM_3 , CUSTOM_4 , DETAILS );
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000000', 'BPI:01' , '' , 'TKI:000000000000000000000000000000000000', 'CREATED' , RELATIVE_DATE(0) , 'USER_2_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', 'L140101' , 'TASK' , '' , 'old_val12', 'new_val12', 'custom1', 'custom2', 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000000', 'BPI:01' , '' , 'TKI:000000000000000000000000000000000000', 'CREATED' , RELATIVE_DATE(0) , 'USER_2_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', 'L140101' , 'TASK' , '' , 'old_val12', 'new_val12', 'custom1', 'custom2', 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000001', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-2), 'USER_1_1', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '65464564', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000001', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-2), 'USER_1_1', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '65464564', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000002', 'BPI:03' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000002', 'BPI:03' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000003', 'BPI:04' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000003', 'BPI:04' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000004', 'BPI:03' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000004', 'BPI:03' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000005', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'CREATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000005', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'CREATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000006', 'BPI:06' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000006', 'BPI:06' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000007', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000007', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000008', 'BPI:04' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'CREATED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000008', 'BPI:04' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'CREATED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000009', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000009', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000010', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000010', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000011', 'BPI:03' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000011', 'BPI:03' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000012', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000012', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000013', 'BPI:03' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000013', 'BPI:03' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000014', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000014', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000015', 'BPI:05' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000015', 'BPI:05' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000016', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'CREATED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000016', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'CREATED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000017', 'BPI:04' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000017', 'BPI:04' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000018', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000018', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000019', 'BPI:03' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000019', 'BPI:03' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000020', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000020', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000021', 'BPI:05' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000021', 'BPI:05' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000022', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000022', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000023', 'BPI:05' , '' , 'TKI:000000000000000000000000000000000000', 'CREATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000023', 'BPI:05' , '' , 'TKI:000000000000000000000000000000000000', 'CREATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000024', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000024', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000025', 'BPI:03' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000025', 'BPI:03' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000026', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'CREATED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000026', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'CREATED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000027', 'BPI:04' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000027', 'BPI:04' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000028', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000028', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000029', 'BPI:03' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000029', 'BPI:03' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000030', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000030', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000031', 'BPI:05' , '' , 'TKI:000000000000000000000000000000000000', 'CREATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000031', 'BPI:05' , '' , 'TKI:000000000000000000000000000000000000', 'CREATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000032', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000032', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000033', 'BPI:06' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000033', 'BPI:06' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000034', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'CREATED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000034', 'BPI:02' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'CREATED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000035', 'BPI:04' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000035', 'BPI:04' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000036', 'BPI:03' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000036', 'BPI:03' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000037', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000037', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000038', 'BPI:03' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000038', 'BPI:03' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000039', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'CREATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000039', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'CREATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000040', 'BPI:06' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000040', 'BPI:06' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000041', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000041', 'BPI:02' , '' , 'TKI:000000000000000000000000000000000000', 'UPDATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000042', 'BPI:03' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000042', 'BPI:03' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000043', 'BPI:04' , '' , 'TKI:000000000000000000000000000000000000', 'CREATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000043', 'BPI:04' , '' , 'TKI:000000000000000000000000000000000000', 'CREATED' , RELATIVE_DATE(-1), 'USER_1_2', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' , '' , '2old_val' , 'new_val2' , 'custom1', '' , 'custom3', 'custom4', 'some Details');
|
||||||
INSERT INTO TASK_HISTORY_EVENT VALUES ('HEI:000000000000000000000000000000000044', 'BPI:03' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
INSERT INTO TASK_HISTORY_EVENT VALUES ('THI:000000000000000000000000000000000044', 'BPI:03' , 'BPI:01' , 'TKI:000000000000000000000000000000000001', 'DELETED' , RELATIVE_DATE(0) , 'USER_2_1', 'DOMAIN_B', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' , 'DOCTYPE_DEFAULT' , '' , '' , 'custom1', '' , 'custom3', '' , 'some Details');
|
|
@ -1,17 +1,17 @@
|
||||||
INSERT INTO TASK_HISTORY_EVENT (ID,BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, TASK_ID, EVENT_TYPE, CREATED, USER_ID, DOMAIN, WORKBASKET_KEY, POR_COMPANY, POR_SYSTEM, POR_INSTANCE, POR_TYPE, POR_VALUE, TASK_CLASSIFICATION_KEY,
|
INSERT INTO TASK_HISTORY_EVENT (ID,BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, TASK_ID, EVENT_TYPE, CREATED, USER_ID, DOMAIN, WORKBASKET_KEY, POR_COMPANY, POR_SYSTEM, POR_INSTANCE, POR_TYPE, POR_VALUE, TASK_CLASSIFICATION_KEY,
|
||||||
TASK_CLASSIFICATION_CATEGORY, ATTACHMENT_CLASSIFICATION_KEY, OLD_VALUE, NEW_VALUE, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4, DETAILS) VALUES
|
TASK_CLASSIFICATION_CATEGORY, ATTACHMENT_CLASSIFICATION_KEY, OLD_VALUE, NEW_VALUE, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4, DETAILS) VALUES
|
||||||
-- BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, TASK_ID, EVENT_TYPE, CREATED, USER_ID, DOMAIN, WORKBASKET_KEY, POR_COMPANY , POR_SYSTEM, POR_INSTANCE , POR_TYPE , POR_VALUE , TASK_CLASSIFICATION_KEY, TASK_CLASSIFICATION_CATEGORY , ATTACHMENT_CLASSIFICATION_KEY , OLD_VALUE , NEW_VALUE , CUSTOM_1 , CUSTOM_2 , CUSTOM_3 , CUSTOM_4, details
|
-- BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, TASK_ID, EVENT_TYPE, CREATED, USER_ID, DOMAIN, WORKBASKET_KEY, POR_COMPANY , POR_SYSTEM, POR_INSTANCE , POR_TYPE , POR_VALUE , TASK_CLASSIFICATION_KEY, TASK_CLASSIFICATION_CATEGORY , ATTACHMENT_CLASSIFICATION_KEY , OLD_VALUE , NEW_VALUE , CUSTOM_1 , CUSTOM_2 , CUSTOM_3 , CUSTOM_4, details
|
||||||
('HEI:000000000000000000000000000000000000','BPI:01' ,'' ,'TKI:000000000000000000000000000000000000', 'UPDATED', '2018-01-29 15:55:00' , 'admin', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', 'L140101' , 'TASK' ,'' ,'old_val' ,'new_val' ,'custom1' ,'custom2' , 'custom3' ,'custom4', '{"changes":[{"newValue":"BPI:01","fieldName":"businessProcessId","oldValue":"BPI:02"},{"newValue":"admin","fieldName":"owner","oldValue":"owner1"}]}' ),
|
('THI:000000000000000000000000000000000000','BPI:01' ,'' ,'TKI:000000000000000000000000000000000000', 'UPDATED', '2018-01-29 15:55:00' , 'admin', 'DOMAIN_B', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', 'L140101' , 'TASK' ,'' ,'old_val' ,'new_val' ,'custom1' ,'custom2' , 'custom3' ,'custom4', '{"changes":[{"newValue":"BPI:01","fieldName":"businessProcessId","oldValue":"BPI:02"},{"newValue":"admin","fieldName":"owner","oldValue":"owner1"}]}' ),
|
||||||
('HEI:000000000000000000000000000000000001','BPI:02' ,'' ,'TKI:000000000000000000000000000000000000', 'CREATED', '2018-01-29 15:55:01','peter', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' ,'' ,'2old_val' ,'new_val2' ,'custom1' ,'' , 'custom2' ,'' ,'someDetails' ),
|
('THI:000000000000000000000000000000000001','BPI:02' ,'' ,'TKI:000000000000000000000000000000000000', 'CREATED', '2018-01-29 15:55:01','peter', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' ,'' ,'2old_val' ,'new_val2' ,'custom1' ,'' , 'custom2' ,'' ,'someDetails' ),
|
||||||
('HEI:000000000000000000000000000000000002','BPI:03' ,'BPI:01','TKI:000000000000000000000000000000000036','CREATED', '2018-01-29 15:55:02' , 'admin', 'DOMAIN_A', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' ,'DOCTYPE_DEFAULT' ,'' ,'' ,'custom1' ,'' , 'custom3' ,'' ,'someDetails' ),
|
('THI:000000000000000000000000000000000002','BPI:03' ,'BPI:01','TKI:000000000000000000000000000000000036','CREATED', '2018-01-29 15:55:02' , 'admin', 'DOMAIN_A', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' ,'DOCTYPE_DEFAULT' ,'' ,'' ,'custom1' ,'' , 'custom3' ,'' ,'someDetails' ),
|
||||||
('HEI:000000000000000000000000000000000003','BPI:02' ,'' ,'TKI:000000000000000000000000000000000036', 'CREATED', '2018-01-29 15:55:03','peter', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' ,'' ,'2old_val' ,'new_val2' ,'custom1' ,'' , 'custom2' ,'' ,'someDetails' ),
|
('THI:000000000000000000000000000000000003','BPI:02' ,'' ,'TKI:000000000000000000000000000000000036', 'CREATED', '2018-01-29 15:55:03','peter', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' ,'' ,'2old_val' ,'new_val2' ,'custom1' ,'' , 'custom2' ,'' ,'someDetails' ),
|
||||||
('HEI:000000000000000000000000000000000004','BPI:03' ,'BPI:01','TKI:000000000000000000000000000000000037','CREATED', '2018-01-29 15:55:04' , 'admin', 'DOMAIN_A', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' ,'DOCTYPE_DEFAULT' ,'' ,'' ,'custom1' ,'' , 'custom3' ,'' ,'someDetails' ),
|
('THI:000000000000000000000000000000000004','BPI:03' ,'BPI:01','TKI:000000000000000000000000000000000037','CREATED', '2018-01-29 15:55:04' , 'admin', 'DOMAIN_A', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' ,'DOCTYPE_DEFAULT' ,'' ,'' ,'custom1' ,'' , 'custom3' ,'' ,'someDetails' ),
|
||||||
('HEI:000000000000000000000000000000000005','BPI:02' ,'' ,'TKI:000000000000000000000000000000000038', 'CREATED', '2018-01-29 15:55:05','peter', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' ,'' ,'2old_val' ,'new_val2' ,'custom1' ,'' , 'custom2' ,'' ,'someDetails' ),
|
('THI:000000000000000000000000000000000005','BPI:02' ,'' ,'TKI:000000000000000000000000000000000038', 'CREATED', '2018-01-29 15:55:05','peter', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' ,'' ,'2old_val' ,'new_val2' ,'custom1' ,'' , 'custom2' ,'' ,'someDetails' ),
|
||||||
('HEI:000000000000000000000000000000000006','BPI:03' ,'BPI:01','TKI:000000000000000000000000000000000038','CREATED', '2018-01-29 15:55:06' , 'admin', 'DOMAIN_A', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' ,'DOCTYPE_DEFAULT' ,'' ,'' ,'custom1' ,'' , 'custom3' ,'' ,'someDetails' ),
|
('THI:000000000000000000000000000000000006','BPI:03' ,'BPI:01','TKI:000000000000000000000000000000000038','CREATED', '2018-01-29 15:55:06' , 'admin', 'DOMAIN_A', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' ,'DOCTYPE_DEFAULT' ,'' ,'' ,'custom1' ,'' , 'custom3' ,'' ,'someDetails' ),
|
||||||
('HEI:000000000000000000000000000000000007','BPI:02' ,'' ,'TKI:000000000000000000000000000000000039', 'CREATED', '2018-01-29 15:55:07','peter', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' ,'' ,'2old_val' ,'new_val2' ,'custom1' ,'' , 'custom2' ,'' ,'someDetails' ),
|
('THI:000000000000000000000000000000000007','BPI:02' ,'' ,'TKI:000000000000000000000000000000000039', 'CREATED', '2018-01-29 15:55:07','peter', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' ,'' ,'2old_val' ,'new_val2' ,'custom1' ,'' , 'custom2' ,'' ,'someDetails' ),
|
||||||
('HEI:000000000000000000000000000000000008','BPI:03' ,'BPI:01','TKI:000000000000000000000000000000000039','CREATED', '2018-01-29 15:55:08' , 'admin', 'DOMAIN_A', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' ,'DOCTYPE_DEFAULT' ,'' ,'' ,'custom1' ,'' , 'custom3' ,'' ,'someDetails' ),
|
('THI:000000000000000000000000000000000008','BPI:03' ,'BPI:01','TKI:000000000000000000000000000000000039','CREATED', '2018-01-29 15:55:08' , 'admin', 'DOMAIN_A', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' ,'DOCTYPE_DEFAULT' ,'' ,'' ,'custom1' ,'' , 'custom3' ,'' ,'someDetails' ),
|
||||||
('HEI:000000000000000000000000000000000009','BPI:02' ,'' ,'TKI:000000000000000000000000000000000040', 'CREATED', '2018-01-29 15:55:09','peter', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' ,'' ,'2old_val' ,'new_val2' ,'custom1' ,'' , 'custom2' ,'' ,'someDetails' ),
|
('THI:000000000000000000000000000000000009','BPI:02' ,'' ,'TKI:000000000000000000000000000000000040', 'CREATED', '2018-01-29 15:55:09','peter', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' ,'' ,'2old_val' ,'new_val2' ,'custom1' ,'' , 'custom2' ,'' ,'someDetails' ),
|
||||||
('HEI:000000000000000000000000000000000010','BPI:03' ,'BPI:01','TKI:000000000000000000000000000000000040','CREATED', '2018-01-29 15:55:10' , 'admin', 'DOMAIN_A', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' ,'DOCTYPE_DEFAULT' ,'' ,'' ,'custom1' ,'' , 'custom3' ,'' ,'someDetails' ),
|
('THI:000000000000000000000000000000000010','BPI:03' ,'BPI:01','TKI:000000000000000000000000000000000040','CREATED', '2018-01-29 15:55:10' , 'admin', 'DOMAIN_A', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' ,'DOCTYPE_DEFAULT' ,'' ,'' ,'custom1' ,'' , 'custom3' ,'' ,'someDetails' ),
|
||||||
('HEI:000000000000000000000000000000000011','BPI:02' ,'' ,'TKI:000000000000000000000000000000000066', 'CREATED', '2018-01-29 15:55:11','peter', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' ,'' ,'2old_val' ,'new_val2' ,'custom1' ,'' , 'custom2' ,'' ,'someDetails' ),
|
('THI:000000000000000000000000000000000011','BPI:02' ,'' ,'TKI:000000000000000000000000000000000066', 'CREATED', '2018-01-29 15:55:11','peter', 'DOMAIN_A', 'WBI:100000000000000000000000000000000001', '00' , 'PASystem', '00' , 'VNR' , '11223344', '' , '' ,'' ,'2old_val' ,'new_val2' ,'custom1' ,'' , 'custom2' ,'' ,'someDetails' ),
|
||||||
('HEI:000000000000000000000000000000000012','BPI:03' ,'BPI:01','TKI:000000000000000000000000000000000066','CREATED', '2018-01-29 15:55:12' , 'admin', 'DOMAIN_A', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' ,'DOCTYPE_DEFAULT' ,'' ,'' ,'custom1' ,'' , 'custom3' ,'' ,'someDetails' )
|
('THI:000000000000000000000000000000000012','BPI:03' ,'BPI:01','TKI:000000000000000000000000000000000066','CREATED', '2018-01-29 15:55:12' , 'admin', 'DOMAIN_A', 'WBI:100000000000000000000000000000000002', '11' , '' , '22' , '' , '' , 'L140101' , 'TASK' ,'DOCTYPE_DEFAULT' ,'' ,'' ,'custom1' ,'' , 'custom3' ,'' ,'someDetails' )
|
||||||
;
|
;
|
||||||
|
|
|
@ -5,6 +5,22 @@ import java.util.UUID;
|
||||||
/** This class contains util methods for generating ids. */
|
/** This class contains util methods for generating ids. */
|
||||||
public final class IdGenerator {
|
public final class IdGenerator {
|
||||||
|
|
||||||
|
public static final String ID_PREFIX_CLASSIFICATION = "CLI";
|
||||||
|
|
||||||
|
public static final String ID_PREFIX_WORKBASKET = "WBI";
|
||||||
|
public static final String ID_PREFIX_WORKBASKET_AUTHORIZATION = "WAI";
|
||||||
|
|
||||||
|
public static final String ID_PREFIX_TASK = "TKI";
|
||||||
|
public static final String ID_PREFIX_EXT_TASK = "ETI";
|
||||||
|
public static final String ID_PREFIX_BUSINESS_PROCESS = "BPI";
|
||||||
|
public static final String ID_PREFIX_ATTACHMENT = "TAI";
|
||||||
|
|
||||||
|
public static final String ID_PREFIX_TASK_COMMENT = "TCI";
|
||||||
|
|
||||||
|
public static final String ID_PREFIX_CLASSIFICATION_HISTORY_EVENT = "CHI";
|
||||||
|
public static final String ID_PREFIX_WORKBASKET_HISTORY_EVENT = "WHI";
|
||||||
|
public static final String ID_PREFIX_TASK_HISTORY_EVENT = "THI";
|
||||||
|
|
||||||
private static final String SEPARATOR = ":";
|
private static final String SEPARATOR = ":";
|
||||||
|
|
||||||
// disable initialization
|
// disable initialization
|
||||||
|
|
|
@ -33,7 +33,6 @@ import pro.taskana.task.api.models.ObjectReference;
|
||||||
public abstract class AbstractAccTest {
|
public abstract class AbstractAccTest {
|
||||||
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(AbstractAccTest.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(AbstractAccTest.class);
|
||||||
private static final String ID_PREFIX_HISTORY_EVENT = "HEI";
|
|
||||||
private static final String USER_HOME_DIRECTORY = System.getProperty("user.home");
|
private static final String USER_HOME_DIRECTORY = System.getProperty("user.home");
|
||||||
private static final int POOL_TIME_TO_WAIT = 50;
|
private static final int POOL_TIME_TO_WAIT = 50;
|
||||||
private static final DataSource DATA_SOURCE;
|
private static final DataSource DATA_SOURCE;
|
||||||
|
@ -76,7 +75,7 @@ public abstract class AbstractAccTest {
|
||||||
String userid,
|
String userid,
|
||||||
String details) {
|
String details) {
|
||||||
TaskHistoryEvent historyEvent = new TaskHistoryEvent();
|
TaskHistoryEvent historyEvent = new TaskHistoryEvent();
|
||||||
historyEvent.setId(IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT));
|
historyEvent.setId(IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_HISTORY_EVENT));
|
||||||
historyEvent.setUserId(userid);
|
historyEvent.setUserId(userid);
|
||||||
historyEvent.setDetails(details);
|
historyEvent.setDetails(details);
|
||||||
historyEvent.setWorkbasketKey(workbasketKey);
|
historyEvent.setWorkbasketKey(workbasketKey);
|
||||||
|
@ -98,7 +97,7 @@ public abstract class AbstractAccTest {
|
||||||
public static WorkbasketHistoryEvent createWorkbasketHistoryEvent(
|
public static WorkbasketHistoryEvent createWorkbasketHistoryEvent(
|
||||||
String workbasketKey, String type, String userid, String details) {
|
String workbasketKey, String type, String userid, String details) {
|
||||||
WorkbasketHistoryEvent historyEvent = new WorkbasketHistoryEvent();
|
WorkbasketHistoryEvent historyEvent = new WorkbasketHistoryEvent();
|
||||||
historyEvent.setId(IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT));
|
historyEvent.setId(IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_HISTORY_EVENT));
|
||||||
historyEvent.setUserId(userid);
|
historyEvent.setUserId(userid);
|
||||||
historyEvent.setDetails(details);
|
historyEvent.setDetails(details);
|
||||||
historyEvent.setKey(workbasketKey);
|
historyEvent.setKey(workbasketKey);
|
||||||
|
|
|
@ -24,7 +24,7 @@ class GetTaskHistoryEventAccTest extends AbstractAccTest {
|
||||||
+ "\"oldValue\":\"owner1\"}]}";
|
+ "\"oldValue\":\"owner1\"}]}";
|
||||||
|
|
||||||
TaskHistoryEvent taskHistoryEvent =
|
TaskHistoryEvent taskHistoryEvent =
|
||||||
getHistoryService().getTaskHistoryEvent("HEI:000000000000000000000000000000000000");
|
getHistoryService().getTaskHistoryEvent("THI:000000000000000000000000000000000000");
|
||||||
assertThat(taskHistoryEvent.getBusinessProcessId()).isEqualTo("BPI:01");
|
assertThat(taskHistoryEvent.getBusinessProcessId()).isEqualTo("BPI:01");
|
||||||
assertThat(taskHistoryEvent.getUserId()).isEqualTo("admin");
|
assertThat(taskHistoryEvent.getUserId()).isEqualTo("admin");
|
||||||
assertThat(taskHistoryEvent.getEventType()).isEqualTo(TaskHistoryEventType.UPDATED.getName());
|
assertThat(taskHistoryEvent.getEventType()).isEqualTo(TaskHistoryEventType.UPDATED.getName());
|
||||||
|
|
|
@ -23,8 +23,6 @@ import pro.taskana.spi.history.api.events.classification.ClassificationHistoryEv
|
||||||
@ExtendWith(MockitoExtension.class)
|
@ExtendWith(MockitoExtension.class)
|
||||||
class ClassificationHistoryQueryImplTest {
|
class ClassificationHistoryQueryImplTest {
|
||||||
|
|
||||||
private static final String ID_PREFIX_HISTORY_EVENT = "CHI";
|
|
||||||
|
|
||||||
private ClassificationHistoryQueryImpl historyQueryImpl;
|
private ClassificationHistoryQueryImpl historyQueryImpl;
|
||||||
|
|
||||||
@Mock private TaskanaHistoryEngineImpl taskanaHistoryEngineMock;
|
@Mock private TaskanaHistoryEngineImpl taskanaHistoryEngineMock;
|
||||||
|
@ -61,7 +59,7 @@ class ClassificationHistoryQueryImplTest {
|
||||||
private ClassificationHistoryEvent createHistoryEvent(
|
private ClassificationHistoryEvent createHistoryEvent(
|
||||||
String type, String userId, String details) {
|
String type, String userId, String details) {
|
||||||
ClassificationHistoryEvent he = new ClassificationHistoryEvent();
|
ClassificationHistoryEvent he = new ClassificationHistoryEvent();
|
||||||
he.setId(IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT));
|
he.setId(IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_CLASSIFICATION_HISTORY_EVENT));
|
||||||
he.setUserId(userId);
|
he.setUserId(userId);
|
||||||
he.setDetails(details);
|
he.setDetails(details);
|
||||||
he.setEventType(type);
|
he.setEventType(type);
|
||||||
|
|
|
@ -24,8 +24,6 @@ import pro.taskana.spi.history.api.events.task.TaskHistoryEvent;
|
||||||
@ExtendWith(MockitoExtension.class)
|
@ExtendWith(MockitoExtension.class)
|
||||||
class TaskHistoryQueryImplTest {
|
class TaskHistoryQueryImplTest {
|
||||||
|
|
||||||
private static final String ID_PREFIX_HISTORY_EVENT = "HEI";
|
|
||||||
|
|
||||||
private TaskHistoryQueryImpl historyQueryImpl;
|
private TaskHistoryQueryImpl historyQueryImpl;
|
||||||
|
|
||||||
@Mock private TaskanaHistoryEngineImpl taskanaHistoryEngineMock;
|
@Mock private TaskanaHistoryEngineImpl taskanaHistoryEngineMock;
|
||||||
|
@ -69,7 +67,7 @@ class TaskHistoryQueryImplTest {
|
||||||
String details,
|
String details,
|
||||||
Instant created) {
|
Instant created) {
|
||||||
TaskHistoryEvent he = new TaskHistoryEvent();
|
TaskHistoryEvent he = new TaskHistoryEvent();
|
||||||
he.setId(IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT));
|
he.setId(IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_HISTORY_EVENT));
|
||||||
he.setUserId(userId);
|
he.setUserId(userId);
|
||||||
he.setDetails(details);
|
he.setDetails(details);
|
||||||
he.setTaskId(taskId);
|
he.setTaskId(taskId);
|
||||||
|
|
|
@ -25,8 +25,6 @@ import pro.taskana.spi.history.api.events.workbasket.WorkbasketHistoryEventType;
|
||||||
@ExtendWith(MockitoExtension.class)
|
@ExtendWith(MockitoExtension.class)
|
||||||
class WorkbasketHistoryQueryImplTest {
|
class WorkbasketHistoryQueryImplTest {
|
||||||
|
|
||||||
private static final String ID_PREFIX_HISTORY_EVENT = "WHI";
|
|
||||||
|
|
||||||
@Mock private TaskanaHistoryEngineImpl taskanaHistoryEngineMock;
|
@Mock private TaskanaHistoryEngineImpl taskanaHistoryEngineMock;
|
||||||
|
|
||||||
private WorkbasketHistoryQueryImpl historyQueryImpl;
|
private WorkbasketHistoryQueryImpl historyQueryImpl;
|
||||||
|
@ -70,7 +68,7 @@ class WorkbasketHistoryQueryImplTest {
|
||||||
private WorkbasketHistoryEvent createHistoryEvent(
|
private WorkbasketHistoryEvent createHistoryEvent(
|
||||||
String workbasketKey, String type, String userId, String details, Instant created) {
|
String workbasketKey, String type, String userId, String details, Instant created) {
|
||||||
WorkbasketHistoryEvent he = new WorkbasketHistoryEvent();
|
WorkbasketHistoryEvent he = new WorkbasketHistoryEvent();
|
||||||
he.setId(IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT));
|
he.setId(IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT));
|
||||||
he.setUserId(userId);
|
he.setUserId(userId);
|
||||||
he.setDetails(details);
|
he.setDetails(details);
|
||||||
he.setKey(workbasketKey);
|
he.setKey(workbasketKey);
|
||||||
|
|
|
@ -140,7 +140,7 @@ public class TaskHistoryEventControllerRestDocumentation extends BaseRestDocumen
|
||||||
RestDocumentationRequestBuilders.get(
|
RestDocumentationRequestBuilders.get(
|
||||||
"http://127.0.0.1:"
|
"http://127.0.0.1:"
|
||||||
+ port
|
+ port
|
||||||
+ "/api/v1/task-history-event/HEI:000000000000000000000000000000000000")
|
+ "/api/v1/task-history-event/THI:000000000000000000000000000000000000")
|
||||||
.accept("application/hal+json")
|
.accept("application/hal+json")
|
||||||
.header("Authorization", TEAMLEAD_1_CREDENTIALS))
|
.header("Authorization", TEAMLEAD_1_CREDENTIALS))
|
||||||
.andExpect(MockMvcResultMatchers.status().isOk())
|
.andExpect(MockMvcResultMatchers.status().isOk())
|
||||||
|
|
|
@ -89,7 +89,7 @@ class TaskHistoryEventControllerIntTest {
|
||||||
void should_ReturnSpecificTaskHistoryEventWithDetails_When_SingleEventIsQueried() {
|
void should_ReturnSpecificTaskHistoryEventWithDetails_When_SingleEventIsQueried() {
|
||||||
ResponseEntity<TaskHistoryEventRepresentationModel> response =
|
ResponseEntity<TaskHistoryEventRepresentationModel> response =
|
||||||
TEMPLATE.exchange(
|
TEMPLATE.exchange(
|
||||||
restHelper.toUrl("/api/v1/task-history-event/HEI:000000000000000000000000000000000000"),
|
restHelper.toUrl("/api/v1/task-history-event/THI:000000000000000000000000000000000000"),
|
||||||
HttpMethod.GET,
|
HttpMethod.GET,
|
||||||
restHelper.defaultRequest(),
|
restHelper.defaultRequest(),
|
||||||
ParameterizedTypeReference.forType(TaskHistoryEventRepresentationModel.class));
|
ParameterizedTypeReference.forType(TaskHistoryEventRepresentationModel.class));
|
||||||
|
|
|
@ -42,13 +42,11 @@ import pro.taskana.task.internal.TaskMapper;
|
||||||
/** This is the implementation of ClassificationService. */
|
/** This is the implementation of ClassificationService. */
|
||||||
public class ClassificationServiceImpl implements ClassificationService {
|
public class ClassificationServiceImpl implements ClassificationService {
|
||||||
|
|
||||||
private static final String ID_PREFIX_CLASSIFICATION = "CLI";
|
|
||||||
private static final String ID_PREFIX_CLASSIFICATION_HISTORY_EVENT = "CHI";
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(ClassificationServiceImpl.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(ClassificationServiceImpl.class);
|
||||||
private final HistoryEventManager historyEventManager;
|
private final HistoryEventManager historyEventManager;
|
||||||
private ClassificationMapper classificationMapper;
|
private final ClassificationMapper classificationMapper;
|
||||||
private TaskMapper taskMapper;
|
private final TaskMapper taskMapper;
|
||||||
private InternalTaskanaEngine taskanaEngine;
|
private final InternalTaskanaEngine taskanaEngine;
|
||||||
|
|
||||||
public ClassificationServiceImpl(
|
public ClassificationServiceImpl(
|
||||||
InternalTaskanaEngine taskanaEngine,
|
InternalTaskanaEngine taskanaEngine,
|
||||||
|
@ -148,7 +146,8 @@ public class ClassificationServiceImpl implements ClassificationService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new ClassificationDeletedEvent(
|
new ClassificationDeletedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_CLASSIFICATION_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(
|
||||||
|
IdGenerator.ID_PREFIX_CLASSIFICATION_HISTORY_EVENT),
|
||||||
classification,
|
classification,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -234,7 +233,7 @@ public class ClassificationServiceImpl implements ClassificationService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new ClassificationCreatedEvent(
|
new ClassificationCreatedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_CLASSIFICATION_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_CLASSIFICATION_HISTORY_EVENT),
|
||||||
classificationImpl,
|
classificationImpl,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -287,7 +286,7 @@ public class ClassificationServiceImpl implements ClassificationService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new ClassificationUpdatedEvent(
|
new ClassificationUpdatedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_CLASSIFICATION_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_CLASSIFICATION_HISTORY_EVENT),
|
||||||
classificationImpl,
|
classificationImpl,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -383,7 +382,8 @@ public class ClassificationServiceImpl implements ClassificationService {
|
||||||
if (!Objects.equals(classification.getDomain(), "")) {
|
if (!Objects.equals(classification.getDomain(), "")) {
|
||||||
boolean doesExist = true;
|
boolean doesExist = true;
|
||||||
ClassificationImpl masterClassification = classification.copy(classification.getKey());
|
ClassificationImpl masterClassification = classification.copy(classification.getKey());
|
||||||
masterClassification.setId(IdGenerator.generateWithPrefix(ID_PREFIX_CLASSIFICATION));
|
masterClassification.setId(
|
||||||
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_CLASSIFICATION));
|
||||||
masterClassification.setParentKey(classification.getParentKey());
|
masterClassification.setParentKey(classification.getParentKey());
|
||||||
masterClassification.setDomain("");
|
masterClassification.setDomain("");
|
||||||
masterClassification.setIsValidInDomain(false);
|
masterClassification.setIsValidInDomain(false);
|
||||||
|
@ -427,7 +427,7 @@ public class ClassificationServiceImpl implements ClassificationService {
|
||||||
throws InvalidArgumentException {
|
throws InvalidArgumentException {
|
||||||
Instant now = Instant.now();
|
Instant now = Instant.now();
|
||||||
if (classification.getId() == null || "".equals(classification.getId())) {
|
if (classification.getId() == null || "".equals(classification.getId())) {
|
||||||
classification.setId(IdGenerator.generateWithPrefix(ID_PREFIX_CLASSIFICATION));
|
classification.setId(IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_CLASSIFICATION));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (classification.getCreated() == null) {
|
if (classification.getCreated() == null) {
|
||||||
|
|
|
@ -26,7 +26,6 @@ import pro.taskana.task.internal.models.TaskImpl;
|
||||||
|
|
||||||
public class AttachmentHandler {
|
public class AttachmentHandler {
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(AttachmentHandler.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(AttachmentHandler.class);
|
||||||
private static final String ID_PREFIX_ATTACHMENT = "TAI";
|
|
||||||
private final AttachmentMapper attachmentMapper;
|
private final AttachmentMapper attachmentMapper;
|
||||||
private final ClassificationService classificationService;
|
private final ClassificationService classificationService;
|
||||||
|
|
||||||
|
@ -213,7 +212,7 @@ public class AttachmentHandler {
|
||||||
void initAttachment(AttachmentImpl attachment, Task newTask) {
|
void initAttachment(AttachmentImpl attachment, Task newTask) {
|
||||||
LOGGER.debug("entry to initAttachment()");
|
LOGGER.debug("entry to initAttachment()");
|
||||||
if (attachment.getId() == null) {
|
if (attachment.getId() == null) {
|
||||||
attachment.setId(IdGenerator.generateWithPrefix(ID_PREFIX_ATTACHMENT));
|
attachment.setId(IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_ATTACHMENT));
|
||||||
}
|
}
|
||||||
if (attachment.getCreated() == null) {
|
if (attachment.getCreated() == null) {
|
||||||
attachment.setCreated(newTask.getModified());
|
attachment.setCreated(newTask.getModified());
|
||||||
|
|
|
@ -22,19 +22,14 @@ class TaskCommentServiceImpl {
|
||||||
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(TaskCommentServiceImpl.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(TaskCommentServiceImpl.class);
|
||||||
|
|
||||||
private static final String NOT_AUTHORIZED =
|
private final InternalTaskanaEngine taskanaEngine;
|
||||||
" Not authorized, TaskComment creator and current user must match. TaskComment creator is ";
|
private final TaskServiceImpl taskService;
|
||||||
private static final String BUT_CURRENT_USER_IS = " but current user is ";
|
private final TaskCommentMapper taskCommentMapper;
|
||||||
private static final String ID_PREFIX_TASK_COMMENT = "TCI";
|
|
||||||
private InternalTaskanaEngine taskanaEngine;
|
|
||||||
private TaskServiceImpl taskService;
|
|
||||||
private TaskCommentMapper taskCommentMapper;
|
|
||||||
|
|
||||||
TaskCommentServiceImpl(
|
TaskCommentServiceImpl(
|
||||||
InternalTaskanaEngine taskanaEngine,
|
InternalTaskanaEngine taskanaEngine,
|
||||||
TaskCommentMapper taskCommentMapper,
|
TaskCommentMapper taskCommentMapper,
|
||||||
TaskServiceImpl taskService) {
|
TaskServiceImpl taskService) {
|
||||||
super();
|
|
||||||
this.taskanaEngine = taskanaEngine;
|
this.taskanaEngine = taskanaEngine;
|
||||||
this.taskService = taskService;
|
this.taskService = taskService;
|
||||||
this.taskCommentMapper = taskCommentMapper;
|
this.taskCommentMapper = taskCommentMapper;
|
||||||
|
@ -85,7 +80,10 @@ class TaskCommentServiceImpl {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
throw new NotAuthorizedException(
|
throw new NotAuthorizedException(
|
||||||
NOT_AUTHORIZED + taskCommentImplToUpdate.getCreator() + BUT_CURRENT_USER_IS + userId,
|
String.format(
|
||||||
|
"Not authorized, TaskComment creator and current user must match. "
|
||||||
|
+ "TaskComment creator is %s but current user is %s",
|
||||||
|
taskCommentImplToUpdate.getCreator(), userId),
|
||||||
userId);
|
userId);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -149,7 +147,10 @@ class TaskCommentServiceImpl {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
throw new NotAuthorizedException(
|
throw new NotAuthorizedException(
|
||||||
NOT_AUTHORIZED + taskCommentToDelete.getCreator() + BUT_CURRENT_USER_IS + userId,
|
String.format(
|
||||||
|
"Not authorized, TaskComment creator and current user must match. "
|
||||||
|
+ "TaskComment creator is %s but current user is %s",
|
||||||
|
taskCommentToDelete.getCreator(), userId),
|
||||||
userId);
|
userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -236,7 +237,8 @@ class TaskCommentServiceImpl {
|
||||||
|
|
||||||
Instant now = Instant.now();
|
Instant now = Instant.now();
|
||||||
|
|
||||||
taskCommentImplToCreate.setId(IdGenerator.generateWithPrefix(ID_PREFIX_TASK_COMMENT));
|
taskCommentImplToCreate.setId(
|
||||||
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_COMMENT));
|
||||||
taskCommentImplToCreate.setModified(now);
|
taskCommentImplToCreate.setModified(now);
|
||||||
taskCommentImplToCreate.setCreated(now);
|
taskCommentImplToCreate.setCreated(now);
|
||||||
|
|
||||||
|
|
|
@ -77,27 +77,8 @@ import pro.taskana.workbasket.internal.models.WorkbasketSummaryImpl;
|
||||||
@SuppressWarnings("checkstyle:OverloadMethodsDeclarationOrder")
|
@SuppressWarnings("checkstyle:OverloadMethodsDeclarationOrder")
|
||||||
public class TaskServiceImpl implements TaskService {
|
public class TaskServiceImpl implements TaskService {
|
||||||
|
|
||||||
public static final String IDS_WITH_EMPTY_OR_NULL_VALUE_ARE_NOT_ALLOWED =
|
|
||||||
"IDs with EMPTY or NULL value are not allowed.";
|
|
||||||
private static final String TASK_WITH_ID_IS_NOT_READY =
|
|
||||||
"Task with id %s is in state %s and not in state ready.";
|
|
||||||
private static final String TASK_WITH_ID_WAS_NOT_FOUND = "Task with id %s was not found.";
|
|
||||||
private static final String TASK_WITH_ID_HAS_TO_BE_CLAIMED_BEFORE =
|
|
||||||
"Task with Id %s has to be claimed before.";
|
|
||||||
private static final String TASK_WITH_ID_CALLBACK_NOT_PROCESSED =
|
|
||||||
"Task wit Id %s cannot be deleted because its callback is not yet processed";
|
|
||||||
private static final String TASK_WITH_ID_IS_ALREADY_CLAIMED_BY =
|
|
||||||
"Task with id %s is already claimed by %s.";
|
|
||||||
private static final String TASK_WITH_ID_IS_ALREADY_IN_END_STATE =
|
|
||||||
"Task with Id %s is already in an end state.";
|
|
||||||
private static final String WAS_MARKED_FOR_DELETION = " was marked for deletion";
|
|
||||||
private static final String THE_WORKBASKET = "The workbasket ";
|
|
||||||
private static final String TASK = "Task";
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(TaskServiceImpl.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(TaskServiceImpl.class);
|
||||||
private static final String ID_PREFIX_TASK = "TKI";
|
|
||||||
private static final String ID_PREFIX_EXT_TASK_ID = "ETI";
|
|
||||||
private static final String ID_PREFIX_BUSINESS_PROCESS = "BPI";
|
|
||||||
private static final String ID_PREFIX_HISTORY_EVENT = "HEI";
|
|
||||||
private final InternalTaskanaEngine taskanaEngine;
|
private final InternalTaskanaEngine taskanaEngine;
|
||||||
private final WorkbasketService workbasketService;
|
private final WorkbasketService workbasketService;
|
||||||
private final ClassificationService classificationService;
|
private final ClassificationService classificationService;
|
||||||
|
@ -208,7 +189,8 @@ public class TaskServiceImpl implements TaskService {
|
||||||
|
|
||||||
if (workbasket.isMarkedForDeletion()) {
|
if (workbasket.isMarkedForDeletion()) {
|
||||||
throw new WorkbasketNotFoundException(
|
throw new WorkbasketNotFoundException(
|
||||||
workbasket.getId(), THE_WORKBASKET + workbasket.getId() + WAS_MARKED_FOR_DELETION);
|
workbasket.getId(),
|
||||||
|
"The workbasket " + workbasket.getId() + " was marked for deletion");
|
||||||
}
|
}
|
||||||
|
|
||||||
task.setWorkbasketSummary(workbasket.asSummary());
|
task.setWorkbasketSummary(workbasket.asSummary());
|
||||||
|
@ -228,7 +210,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
Classification classification =
|
Classification classification =
|
||||||
this.classificationService.getClassification(classificationKey, workbasket.getDomain());
|
this.classificationService.getClassification(classificationKey, workbasket.getDomain());
|
||||||
task.setClassificationSummary(classification.asSummary());
|
task.setClassificationSummary(classification.asSummary());
|
||||||
ObjectReference.validate(task.getPrimaryObjRef(), "primary ObjectReference", TASK);
|
ObjectReference.validate(task.getPrimaryObjRef(), "primary ObjectReference", "Task");
|
||||||
standardSettings(task, classification);
|
standardSettings(task, classification);
|
||||||
setCallbackStateOnTaskCreation(task);
|
setCallbackStateOnTaskCreation(task);
|
||||||
try {
|
try {
|
||||||
|
@ -240,7 +222,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
ObjectAttributeChangeDetector.determineChangesInAttributes(newTask(), task);
|
ObjectAttributeChangeDetector.determineChangesInAttributes(newTask(), task);
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new TaskCreatedEvent(
|
new TaskCreatedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_HISTORY_EVENT),
|
||||||
task,
|
task,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -335,7 +317,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
resultTask.setClassificationSummary(classification);
|
resultTask.setClassificationSummary(classification);
|
||||||
return resultTask;
|
return resultTask;
|
||||||
} else {
|
} else {
|
||||||
throw new TaskNotFoundException(id, String.format(TASK_WITH_ID_WAS_NOT_FOUND, id));
|
throw new TaskNotFoundException(id, String.format("Task with id %s was not found.", id));
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
taskanaEngine.returnConnection();
|
taskanaEngine.returnConnection();
|
||||||
|
@ -434,7 +416,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
checkConcurrencyAndSetModified(newTaskImpl, oldTaskImpl);
|
checkConcurrencyAndSetModified(newTaskImpl, oldTaskImpl);
|
||||||
|
|
||||||
attachmentHandler.insertAndDeleteAttachmentsOnTaskUpdate(newTaskImpl, oldTaskImpl);
|
attachmentHandler.insertAndDeleteAttachmentsOnTaskUpdate(newTaskImpl, oldTaskImpl);
|
||||||
ObjectReference.validate(newTaskImpl.getPrimaryObjRef(), "primary ObjectReference", TASK);
|
ObjectReference.validate(newTaskImpl.getPrimaryObjRef(), "primary ObjectReference", "Task");
|
||||||
|
|
||||||
standardUpdateActions(oldTaskImpl, newTaskImpl);
|
standardUpdateActions(oldTaskImpl, newTaskImpl);
|
||||||
|
|
||||||
|
@ -449,7 +431,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new TaskUpdatedEvent(
|
new TaskUpdatedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_HISTORY_EVENT),
|
||||||
task,
|
task,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
changeDetails));
|
changeDetails));
|
||||||
|
@ -813,7 +795,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
if (HistoryEventManager.isHistoryEnabled()) {
|
if (HistoryEventManager.isHistoryEnabled()) {
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new TaskCancelledEvent(
|
new TaskCancelledEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_HISTORY_EVENT),
|
||||||
cancelledTask,
|
cancelledTask,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid()));
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid()));
|
||||||
}
|
}
|
||||||
|
@ -841,7 +823,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
if (HistoryEventManager.isHistoryEnabled()) {
|
if (HistoryEventManager.isHistoryEnabled()) {
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new TaskTerminatedEvent(
|
new TaskTerminatedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_HISTORY_EVENT),
|
||||||
terminatedTask,
|
terminatedTask,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid()));
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid()));
|
||||||
}
|
}
|
||||||
|
@ -996,7 +978,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
String currentTaskId = taskIdIterator.next();
|
String currentTaskId = taskIdIterator.next();
|
||||||
if (currentTaskId == null || currentTaskId.equals("")) {
|
if (currentTaskId == null || currentTaskId.equals("")) {
|
||||||
bulkLog.addError(
|
bulkLog.addError(
|
||||||
"", new InvalidArgumentException(IDS_WITH_EMPTY_OR_NULL_VALUE_ARE_NOT_ALLOWED));
|
"", new InvalidArgumentException("IDs with EMPTY or NULL value are not allowed."));
|
||||||
taskIdIterator.remove();
|
taskIdIterator.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1094,7 +1076,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
bulkLog.addError(
|
bulkLog.addError(
|
||||||
taskId,
|
taskId,
|
||||||
new TaskNotFoundException(
|
new TaskNotFoundException(
|
||||||
taskId, String.format(TASK_WITH_ID_WAS_NOT_FOUND, taskId)));
|
taskId, String.format("Task with id %s was not found.", taskId)));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -1134,12 +1116,14 @@ public class TaskServiceImpl implements TaskService {
|
||||||
private TaskImpl terminateCancelCommonActions(String taskId, TaskState targetState)
|
private TaskImpl terminateCancelCommonActions(String taskId, TaskState targetState)
|
||||||
throws NotAuthorizedException, TaskNotFoundException, InvalidStateException {
|
throws NotAuthorizedException, TaskNotFoundException, InvalidStateException {
|
||||||
if (taskId == null || taskId.isEmpty()) {
|
if (taskId == null || taskId.isEmpty()) {
|
||||||
throw new TaskNotFoundException(taskId, String.format(TASK_WITH_ID_WAS_NOT_FOUND, taskId));
|
throw new TaskNotFoundException(
|
||||||
|
taskId, String.format("Task with id %s was not found.", taskId));
|
||||||
}
|
}
|
||||||
TaskImpl task = (TaskImpl) getTask(taskId);
|
TaskImpl task = (TaskImpl) getTask(taskId);
|
||||||
TaskState state = task.getState();
|
TaskState state = task.getState();
|
||||||
if (state.isEndState()) {
|
if (state.isEndState()) {
|
||||||
throw new InvalidStateException(String.format(TASK_WITH_ID_IS_ALREADY_IN_END_STATE, taskId));
|
throw new InvalidStateException(
|
||||||
|
String.format("Task with Id %s is already in an end state.", taskId));
|
||||||
}
|
}
|
||||||
|
|
||||||
Instant now = Instant.now();
|
Instant now = Instant.now();
|
||||||
|
@ -1165,9 +1149,8 @@ public class TaskServiceImpl implements TaskService {
|
||||||
taskSummary.getTaskId(),
|
taskSummary.getTaskId(),
|
||||||
new InvalidStateException(
|
new InvalidStateException(
|
||||||
String.format(
|
String.format(
|
||||||
TASK_WITH_ID_IS_NOT_READY,
|
"Task with id %s is in state %s and not in state ready.",
|
||||||
taskSummary.getTaskId(),
|
taskSummary.getTaskId(), taskSummary.getTaskState())));
|
||||||
taskSummary.getTaskState())));
|
|
||||||
} else { // due to unknown reason
|
} else { // due to unknown reason
|
||||||
bulkLog.addError(
|
bulkLog.addError(
|
||||||
taskSummary.getTaskId(),
|
taskSummary.getTaskId(),
|
||||||
|
@ -1198,7 +1181,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
if (HistoryEventManager.isHistoryEnabled()) {
|
if (HistoryEventManager.isHistoryEnabled()) {
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new TaskClaimedEvent(
|
new TaskClaimedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_HISTORY_EVENT),
|
||||||
task,
|
task,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid()));
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid()));
|
||||||
}
|
}
|
||||||
|
@ -1229,13 +1212,14 @@ public class TaskServiceImpl implements TaskService {
|
||||||
TaskState state = task.getState();
|
TaskState state = task.getState();
|
||||||
if (!state.in(TaskState.READY, TaskState.CLAIMED)) {
|
if (!state.in(TaskState.READY, TaskState.CLAIMED)) {
|
||||||
throw new InvalidStateException(
|
throw new InvalidStateException(
|
||||||
String.format(TASK_WITH_ID_IS_ALREADY_IN_END_STATE, task.getId()));
|
String.format("Task with Id %s is already in an end state.", task.getId()));
|
||||||
}
|
}
|
||||||
if (!forced
|
if (!forced
|
||||||
&& state == TaskState.CLAIMED
|
&& state == TaskState.CLAIMED
|
||||||
&& !task.getOwner().equals(taskanaEngine.getEngine().getCurrentUserContext().getUserid())) {
|
&& !task.getOwner().equals(taskanaEngine.getEngine().getCurrentUserContext().getUserid())) {
|
||||||
throw new InvalidOwnerException(
|
throw new InvalidOwnerException(
|
||||||
String.format(TASK_WITH_ID_IS_ALREADY_CLAIMED_BY, task.getId(), task.getOwner()));
|
String.format(
|
||||||
|
"Task with id %s is already claimed by %s.", task.getId(), task.getOwner()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1256,7 +1240,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
throws InvalidStateException, InvalidOwnerException {
|
throws InvalidStateException, InvalidOwnerException {
|
||||||
if (taskIsNotClaimed(task)) {
|
if (taskIsNotClaimed(task)) {
|
||||||
throw new InvalidStateException(
|
throw new InvalidStateException(
|
||||||
String.format(TASK_WITH_ID_HAS_TO_BE_CLAIMED_BEFORE, task.getId()));
|
String.format("Task with Id %s has to be claimed before.", task.getId()));
|
||||||
} else if (!taskanaEngine
|
} else if (!taskanaEngine
|
||||||
.getEngine()
|
.getEngine()
|
||||||
.getCurrentUserContext()
|
.getCurrentUserContext()
|
||||||
|
@ -1287,11 +1271,11 @@ public class TaskServiceImpl implements TaskService {
|
||||||
TaskState state = task.getState();
|
TaskState state = task.getState();
|
||||||
if (state.isEndState()) {
|
if (state.isEndState()) {
|
||||||
throw new InvalidStateException(
|
throw new InvalidStateException(
|
||||||
String.format(TASK_WITH_ID_IS_ALREADY_IN_END_STATE, taskId));
|
String.format("Task with Id %s is already in an end state.", taskId));
|
||||||
}
|
}
|
||||||
if (state == TaskState.CLAIMED && !forceUnclaim && !userId.equals(task.getOwner())) {
|
if (state == TaskState.CLAIMED && !forceUnclaim && !userId.equals(task.getOwner())) {
|
||||||
throw new InvalidOwnerException(
|
throw new InvalidOwnerException(
|
||||||
String.format(TASK_WITH_ID_IS_ALREADY_CLAIMED_BY, taskId, task.getOwner()));
|
String.format("Task with id %s is already claimed by %s.", taskId, task.getOwner()));
|
||||||
}
|
}
|
||||||
Instant now = Instant.now();
|
Instant now = Instant.now();
|
||||||
task.setOwner(null);
|
task.setOwner(null);
|
||||||
|
@ -1304,7 +1288,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
if (HistoryEventManager.isHistoryEnabled()) {
|
if (HistoryEventManager.isHistoryEnabled()) {
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new TaskClaimCancelledEvent(
|
new TaskClaimCancelledEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_HISTORY_EVENT),
|
||||||
task,
|
task,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid()));
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid()));
|
||||||
}
|
}
|
||||||
|
@ -1345,7 +1329,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
if (HistoryEventManager.isHistoryEnabled()) {
|
if (HistoryEventManager.isHistoryEnabled()) {
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new TaskCompletedEvent(
|
new TaskCompletedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_HISTORY_EVENT),
|
||||||
task,
|
task,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid()));
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid()));
|
||||||
}
|
}
|
||||||
|
@ -1371,7 +1355,10 @@ public class TaskServiceImpl implements TaskService {
|
||||||
}
|
}
|
||||||
if ((!task.getState().in(TaskState.TERMINATED, TaskState.CANCELLED))
|
if ((!task.getState().in(TaskState.TERMINATED, TaskState.CANCELLED))
|
||||||
&& CallbackState.CALLBACK_PROCESSING_REQUIRED.equals(task.getCallbackState())) {
|
&& CallbackState.CALLBACK_PROCESSING_REQUIRED.equals(task.getCallbackState())) {
|
||||||
throw new InvalidStateException(String.format(TASK_WITH_ID_CALLBACK_NOT_PROCESSED, taskId));
|
throw new InvalidStateException(
|
||||||
|
String.format(
|
||||||
|
"Task wit Id %s cannot be deleted because its callback is not yet processed",
|
||||||
|
taskId));
|
||||||
}
|
}
|
||||||
|
|
||||||
attachmentMapper.deleteMultipleByTaskIds(Collections.singletonList(taskId));
|
attachmentMapper.deleteMultipleByTaskIds(Collections.singletonList(taskId));
|
||||||
|
@ -1397,7 +1384,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
String currentTaskId = taskIdIterator.next();
|
String currentTaskId = taskIdIterator.next();
|
||||||
if (currentTaskId == null || currentTaskId.equals("")) {
|
if (currentTaskId == null || currentTaskId.equals("")) {
|
||||||
bulkLog.addError(
|
bulkLog.addError(
|
||||||
"", new InvalidArgumentException(IDS_WITH_EMPTY_OR_NULL_VALUE_ARE_NOT_ALLOWED));
|
"", new InvalidArgumentException("IDs with EMPTY or NULL value are not allowed."));
|
||||||
taskIdIterator.remove();
|
taskIdIterator.remove();
|
||||||
} else {
|
} else {
|
||||||
MinimalTaskSummary foundSummary =
|
MinimalTaskSummary foundSummary =
|
||||||
|
@ -1409,7 +1396,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
bulkLog.addError(
|
bulkLog.addError(
|
||||||
currentTaskId,
|
currentTaskId,
|
||||||
new TaskNotFoundException(
|
new TaskNotFoundException(
|
||||||
currentTaskId, String.format(TASK_WITH_ID_WAS_NOT_FOUND, currentTaskId)));
|
currentTaskId, String.format("Task with id %s was not found.", currentTaskId)));
|
||||||
taskIdIterator.remove();
|
taskIdIterator.remove();
|
||||||
} else if (!(foundSummary.getTaskState().isEndState())) {
|
} else if (!(foundSummary.getTaskState().isEndState())) {
|
||||||
bulkLog.addError(currentTaskId, new InvalidStateException(currentTaskId));
|
bulkLog.addError(currentTaskId, new InvalidStateException(currentTaskId));
|
||||||
|
@ -1420,7 +1407,9 @@ public class TaskServiceImpl implements TaskService {
|
||||||
bulkLog.addError(
|
bulkLog.addError(
|
||||||
currentTaskId,
|
currentTaskId,
|
||||||
new InvalidStateException(
|
new InvalidStateException(
|
||||||
String.format(TASK_WITH_ID_CALLBACK_NOT_PROCESSED, currentTaskId)));
|
String.format(
|
||||||
|
"Task wit Id %s cannot be deleted because its callback is not yet processed",
|
||||||
|
currentTaskId)));
|
||||||
taskIdIterator.remove();
|
taskIdIterator.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1437,7 +1426,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
String currentExternalId = externalIdIterator.next();
|
String currentExternalId = externalIdIterator.next();
|
||||||
if (currentExternalId == null || currentExternalId.equals("")) {
|
if (currentExternalId == null || currentExternalId.equals("")) {
|
||||||
bulkLog.addError(
|
bulkLog.addError(
|
||||||
"", new InvalidArgumentException(IDS_WITH_EMPTY_OR_NULL_VALUE_ARE_NOT_ALLOWED));
|
"", new InvalidArgumentException("IDs with EMPTY or NULL value are not allowed."));
|
||||||
externalIdIterator.remove();
|
externalIdIterator.remove();
|
||||||
} else {
|
} else {
|
||||||
MinimalTaskSummary foundSummary =
|
MinimalTaskSummary foundSummary =
|
||||||
|
@ -1449,7 +1438,8 @@ public class TaskServiceImpl implements TaskService {
|
||||||
bulkLog.addError(
|
bulkLog.addError(
|
||||||
currentExternalId,
|
currentExternalId,
|
||||||
new TaskNotFoundException(
|
new TaskNotFoundException(
|
||||||
currentExternalId, String.format(TASK_WITH_ID_WAS_NOT_FOUND, currentExternalId)));
|
currentExternalId,
|
||||||
|
String.format("Task with id %s was not found.", currentExternalId)));
|
||||||
externalIdIterator.remove();
|
externalIdIterator.remove();
|
||||||
} else if (!desiredCallbackStateCanBeSetForFoundSummary(foundSummary, desiredCallbackState)) {
|
} else if (!desiredCallbackStateCanBeSetForFoundSummary(foundSummary, desiredCallbackState)) {
|
||||||
bulkLog.addError(currentExternalId, new InvalidStateException(currentExternalId));
|
bulkLog.addError(currentExternalId, new InvalidStateException(currentExternalId));
|
||||||
|
@ -1489,9 +1479,9 @@ public class TaskServiceImpl implements TaskService {
|
||||||
TaskImpl task1 = task;
|
TaskImpl task1 = task;
|
||||||
LOGGER.debug("entry to standardSettings()");
|
LOGGER.debug("entry to standardSettings()");
|
||||||
final Instant now = Instant.now();
|
final Instant now = Instant.now();
|
||||||
task1.setId(IdGenerator.generateWithPrefix(ID_PREFIX_TASK));
|
task1.setId(IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK));
|
||||||
if (task1.getExternalId() == null) {
|
if (task1.getExternalId() == null) {
|
||||||
task1.setExternalId(IdGenerator.generateWithPrefix(ID_PREFIX_EXT_TASK_ID));
|
task1.setExternalId(IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_EXT_TASK));
|
||||||
}
|
}
|
||||||
task1.setState(TaskState.READY);
|
task1.setState(TaskState.READY);
|
||||||
task1.setCreated(now);
|
task1.setCreated(now);
|
||||||
|
@ -1508,7 +1498,8 @@ public class TaskServiceImpl implements TaskService {
|
||||||
|
|
||||||
// if no business process id is provided, a unique id is created.
|
// if no business process id is provided, a unique id is created.
|
||||||
if (task1.getBusinessProcessId() == null) {
|
if (task1.getBusinessProcessId() == null) {
|
||||||
task1.setBusinessProcessId(IdGenerator.generateWithPrefix(ID_PREFIX_BUSINESS_PROCESS));
|
task1.setBusinessProcessId(
|
||||||
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_BUSINESS_PROCESS));
|
||||||
}
|
}
|
||||||
|
|
||||||
// null in case of manual tasks
|
// null in case of manual tasks
|
||||||
|
@ -1899,7 +1890,9 @@ public class TaskServiceImpl implements TaskService {
|
||||||
boolean isOwnerChanged = !Objects.equals(newTaskImpl1.getOwner(), oldTaskImpl.getOwner());
|
boolean isOwnerChanged = !Objects.equals(newTaskImpl1.getOwner(), oldTaskImpl.getOwner());
|
||||||
if (isOwnerChanged && oldTaskImpl.getState() != TaskState.READY) {
|
if (isOwnerChanged && oldTaskImpl.getState() != TaskState.READY) {
|
||||||
throw new InvalidStateException(
|
throw new InvalidStateException(
|
||||||
String.format(TASK_WITH_ID_IS_NOT_READY, oldTaskImpl.getId(), oldTaskImpl.getState()));
|
String.format(
|
||||||
|
"Task with id %s is in state %s and not in state ready.",
|
||||||
|
oldTaskImpl.getId(), oldTaskImpl.getState()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1925,7 +1918,7 @@ public class TaskServiceImpl implements TaskService {
|
||||||
task ->
|
task ->
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new TaskCompletedEvent(
|
new TaskCompletedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_HISTORY_EVENT),
|
||||||
task,
|
task,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid())));
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid())));
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,6 @@ class TaskTransferrer {
|
||||||
private static final String TASK_WITH_ID = "Task with id ";
|
private static final String TASK_WITH_ID = "Task with id ";
|
||||||
private static final String WAS_MARKED_FOR_DELETION = " was marked for deletion";
|
private static final String WAS_MARKED_FOR_DELETION = " was marked for deletion";
|
||||||
private static final String THE_WORKBASKET = "The workbasket ";
|
private static final String THE_WORKBASKET = "The workbasket ";
|
||||||
private static final String ID_PREFIX_HISTORY_EVENT = "HEI";
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(TaskTransferrer.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(TaskTransferrer.class);
|
||||||
private final InternalTaskanaEngine taskanaEngine;
|
private final InternalTaskanaEngine taskanaEngine;
|
||||||
private final WorkbasketService workbasketService;
|
private final WorkbasketService workbasketService;
|
||||||
|
@ -362,7 +361,7 @@ class TaskTransferrer {
|
||||||
Task task, WorkbasketSummary oldWorkbasketSummary, WorkbasketSummary newWorkbasketSummary) {
|
Task task, WorkbasketSummary oldWorkbasketSummary, WorkbasketSummary newWorkbasketSummary) {
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new TaskTransferredEvent(
|
new TaskTransferredEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_TASK_HISTORY_EVENT),
|
||||||
task,
|
task,
|
||||||
oldWorkbasketSummary,
|
oldWorkbasketSummary,
|
||||||
newWorkbasketSummary,
|
newWorkbasketSummary,
|
||||||
|
|
|
@ -56,9 +56,7 @@ import pro.taskana.workbasket.internal.models.WorkbasketSummaryImpl;
|
||||||
public class WorkbasketServiceImpl implements WorkbasketService {
|
public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(WorkbasketServiceImpl.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(WorkbasketServiceImpl.class);
|
||||||
private static final String ID_PREFIX_WORKBASKET = "WBI";
|
|
||||||
private static final String ID_PREFIX_WORKBASKET_AUTHORIZATION = "WAI";
|
|
||||||
private static final String ID_PREFIX_WORKBASKET_HISTORY_EVENT = "WHI";
|
|
||||||
private final InternalTaskanaEngine taskanaEngine;
|
private final InternalTaskanaEngine taskanaEngine;
|
||||||
private final WorkbasketMapper workbasketMapper;
|
private final WorkbasketMapper workbasketMapper;
|
||||||
private final DistributionTargetMapper distributionTargetMapper;
|
private final DistributionTargetMapper distributionTargetMapper;
|
||||||
|
@ -147,7 +145,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (workbasket.getId() == null || workbasket.getId().isEmpty()) {
|
if (workbasket.getId() == null || workbasket.getId().isEmpty()) {
|
||||||
workbasket.setId(IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET));
|
workbasket.setId(IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET));
|
||||||
}
|
}
|
||||||
validateWorkbasket(workbasket);
|
validateWorkbasket(workbasket);
|
||||||
|
|
||||||
|
@ -160,7 +158,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new WorkbasketCreatedEvent(
|
new WorkbasketCreatedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
||||||
newWorkbasket,
|
newWorkbasket,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -213,7 +211,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new WorkbasketUpdatedEvent(
|
new WorkbasketUpdatedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
||||||
workbasketToUpdate,
|
workbasketToUpdate,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -253,7 +251,8 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
WorkbasketAccessItemImpl accessItem = (WorkbasketAccessItemImpl) workbasketAccessItem;
|
WorkbasketAccessItemImpl accessItem = (WorkbasketAccessItemImpl) workbasketAccessItem;
|
||||||
try {
|
try {
|
||||||
taskanaEngine.openConnection();
|
taskanaEngine.openConnection();
|
||||||
accessItem.setId(IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_AUTHORIZATION));
|
accessItem.setId(
|
||||||
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_AUTHORIZATION));
|
||||||
if (workbasketAccessItem.getId() == null
|
if (workbasketAccessItem.getId() == null
|
||||||
|| workbasketAccessItem.getAccessId() == null
|
|| workbasketAccessItem.getAccessId() == null
|
||||||
|| workbasketAccessItem.getWorkbasketId() == null) {
|
|| workbasketAccessItem.getWorkbasketId() == null) {
|
||||||
|
@ -282,7 +281,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new WorkbasketAccessItemCreatedEvent(
|
new WorkbasketAccessItemCreatedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
||||||
wb,
|
wb,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -342,7 +341,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new WorkbasketAccessItemUpdatedEvent(
|
new WorkbasketAccessItemUpdatedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
||||||
workbasket,
|
workbasket,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -381,7 +380,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
Workbasket workbasket = workbasketMapper.findById(accessItem.getWorkbasketId());
|
Workbasket workbasket = workbasketMapper.findById(accessItem.getWorkbasketId());
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new WorkbasketAccessItemDeletedEvent(
|
new WorkbasketAccessItemDeletedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
||||||
workbasket,
|
workbasket,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -529,8 +528,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
String workbasketId, List<WorkbasketAccessItem> wbAccessItems)
|
String workbasketId, List<WorkbasketAccessItem> wbAccessItems)
|
||||||
throws NotAuthorizedException, WorkbasketAccessItemAlreadyExistException,
|
throws NotAuthorizedException, WorkbasketAccessItemAlreadyExistException,
|
||||||
InvalidArgumentException {
|
InvalidArgumentException {
|
||||||
LOGGER.debug(
|
LOGGER.debug("entry to setWorkbasketAccessItems(workbasketAccessItems = {})", wbAccessItems);
|
||||||
"entry to setWorkbasketAccessItems(workbasketAccessItems = {})", wbAccessItems);
|
|
||||||
taskanaEngine.getEngine().checkRoleMembership(TaskanaRole.BUSINESS_ADMIN, TaskanaRole.ADMIN);
|
taskanaEngine.getEngine().checkRoleMembership(TaskanaRole.BUSINESS_ADMIN, TaskanaRole.ADMIN);
|
||||||
|
|
||||||
Set<String> ids = new HashSet<>();
|
Set<String> ids = new HashSet<>();
|
||||||
|
@ -559,7 +557,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new WorkbasketAccessItemsUpdatedEvent(
|
new WorkbasketAccessItemsUpdatedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
||||||
workbasket,
|
workbasket,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -704,7 +702,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new WorkbasketDistributionTargetsUpdatedEvent(
|
new WorkbasketDistributionTargetsUpdatedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
||||||
sourceWorkbasket,
|
sourceWorkbasket,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -754,7 +752,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new WorkbasketDistributionTargetAddedEvent(
|
new WorkbasketDistributionTargetAddedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
||||||
sourceWorkbasket,
|
sourceWorkbasket,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -803,7 +801,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new WorkbasketDistributionTargetRemovedEvent(
|
new WorkbasketDistributionTargetRemovedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
||||||
workbasket,
|
workbasket,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -884,7 +882,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new WorkbasketDeletedEvent(
|
new WorkbasketDeletedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
||||||
workbasketToDelete,
|
workbasketToDelete,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -1037,7 +1035,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new WorkbasketAccessItemDeletedEvent(
|
new WorkbasketAccessItemDeletedEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
||||||
workbasket,
|
workbasket,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
details));
|
details));
|
||||||
|
@ -1094,7 +1092,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
}
|
}
|
||||||
if (wbAccessItemImpl.getId() == null || wbAccessItemImpl.getId().isEmpty()) {
|
if (wbAccessItemImpl.getId() == null || wbAccessItemImpl.getId().isEmpty()) {
|
||||||
wbAccessItemImpl.setId(
|
wbAccessItemImpl.setId(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_AUTHORIZATION));
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_AUTHORIZATION));
|
||||||
}
|
}
|
||||||
if (ids.contains(wbAccessItemImpl.getAccessId())) {
|
if (ids.contains(wbAccessItemImpl.getAccessId())) {
|
||||||
throw new WorkbasketAccessItemAlreadyExistException(wbAccessItemImpl);
|
throw new WorkbasketAccessItemAlreadyExistException(wbAccessItemImpl);
|
||||||
|
@ -1209,7 +1207,7 @@ public class WorkbasketServiceImpl implements WorkbasketService {
|
||||||
|
|
||||||
historyEventManager.createEvent(
|
historyEventManager.createEvent(
|
||||||
new WorkbasketMarkedForDeletionEvent(
|
new WorkbasketMarkedForDeletionEvent(
|
||||||
IdGenerator.generateWithPrefix(ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
IdGenerator.generateWithPrefix(IdGenerator.ID_PREFIX_WORKBASKET_HISTORY_EVENT),
|
||||||
workbasket,
|
workbasket,
|
||||||
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
taskanaEngine.getEngine().getCurrentUserContext().getUserid(),
|
||||||
null));
|
null));
|
||||||
|
|
|
@ -16,6 +16,7 @@ import pro.taskana.classification.internal.models.ClassificationImpl;
|
||||||
import pro.taskana.common.api.exceptions.DomainNotFoundException;
|
import pro.taskana.common.api.exceptions.DomainNotFoundException;
|
||||||
import pro.taskana.common.api.exceptions.InvalidArgumentException;
|
import pro.taskana.common.api.exceptions.InvalidArgumentException;
|
||||||
import pro.taskana.common.api.exceptions.NotAuthorizedException;
|
import pro.taskana.common.api.exceptions.NotAuthorizedException;
|
||||||
|
import pro.taskana.common.internal.util.IdGenerator;
|
||||||
import pro.taskana.common.test.security.JaasExtension;
|
import pro.taskana.common.test.security.JaasExtension;
|
||||||
import pro.taskana.common.test.security.WithAccessId;
|
import pro.taskana.common.test.security.WithAccessId;
|
||||||
|
|
||||||
|
@ -23,8 +24,6 @@ import pro.taskana.common.test.security.WithAccessId;
|
||||||
@ExtendWith(JaasExtension.class)
|
@ExtendWith(JaasExtension.class)
|
||||||
class CreateClassificationAccTest extends AbstractAccTest {
|
class CreateClassificationAccTest extends AbstractAccTest {
|
||||||
|
|
||||||
private static final String ID_PREFIX_CLASSIFICATION = "CLI";
|
|
||||||
|
|
||||||
private static final ClassificationService CLASSIFICATION_SERVICE =
|
private static final ClassificationService CLASSIFICATION_SERVICE =
|
||||||
taskanaEngine.getClassificationService();
|
taskanaEngine.getClassificationService();
|
||||||
|
|
||||||
|
@ -47,7 +46,7 @@ class CreateClassificationAccTest extends AbstractAccTest {
|
||||||
assertThat(classification.getModified()).isNotNull();
|
assertThat(classification.getModified()).isNotNull();
|
||||||
assertThat(classification.getId()).isNotNull();
|
assertThat(classification.getId()).isNotNull();
|
||||||
assertThat(classification.getIsValidInDomain()).isFalse();
|
assertThat(classification.getIsValidInDomain()).isFalse();
|
||||||
assertThat(classification.getId()).startsWith(ID_PREFIX_CLASSIFICATION);
|
assertThat(classification.getId()).startsWith(IdGenerator.ID_PREFIX_CLASSIFICATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
@WithAccessId(user = "businessadmin")
|
@WithAccessId(user = "businessadmin")
|
||||||
|
@ -68,7 +67,7 @@ class CreateClassificationAccTest extends AbstractAccTest {
|
||||||
assertThat(classification.getModified()).isNotNull();
|
assertThat(classification.getModified()).isNotNull();
|
||||||
assertThat(classification.getId()).isNotNull();
|
assertThat(classification.getId()).isNotNull();
|
||||||
assertThat(classification.getIsValidInDomain()).isTrue();
|
assertThat(classification.getIsValidInDomain()).isTrue();
|
||||||
assertThat(classification.getId()).startsWith(ID_PREFIX_CLASSIFICATION);
|
assertThat(classification.getId()).startsWith(IdGenerator.ID_PREFIX_CLASSIFICATION);
|
||||||
assertThat(createdClassification.getDomain()).isEqualTo("DOMAIN_A");
|
assertThat(createdClassification.getDomain()).isEqualTo("DOMAIN_A");
|
||||||
assertThat(createdClassification.getKey()).isEqualTo("Key1");
|
assertThat(createdClassification.getKey()).isEqualTo("Key1");
|
||||||
|
|
||||||
|
@ -83,7 +82,7 @@ class CreateClassificationAccTest extends AbstractAccTest {
|
||||||
assertThat(classification.getModified()).isNotNull();
|
assertThat(classification.getModified()).isNotNull();
|
||||||
assertThat(classification.getId()).isNotNull();
|
assertThat(classification.getId()).isNotNull();
|
||||||
assertThat(classification.getIsValidInDomain()).isTrue();
|
assertThat(classification.getIsValidInDomain()).isTrue();
|
||||||
assertThat(classification.getId()).startsWith(ID_PREFIX_CLASSIFICATION);
|
assertThat(classification.getId()).startsWith(IdGenerator.ID_PREFIX_CLASSIFICATION);
|
||||||
|
|
||||||
// Check master-copy
|
// Check master-copy
|
||||||
classification = CLASSIFICATION_SERVICE.getClassification(classification.getKey(), "");
|
classification = CLASSIFICATION_SERVICE.getClassification(classification.getKey(), "");
|
||||||
|
@ -92,7 +91,7 @@ class CreateClassificationAccTest extends AbstractAccTest {
|
||||||
assertThat(classification.getModified()).isNotNull();
|
assertThat(classification.getModified()).isNotNull();
|
||||||
assertThat(classification.getId()).isNotNull();
|
assertThat(classification.getId()).isNotNull();
|
||||||
assertThat(classification.getIsValidInDomain()).isFalse();
|
assertThat(classification.getIsValidInDomain()).isFalse();
|
||||||
assertThat(classification.getId()).startsWith(ID_PREFIX_CLASSIFICATION);
|
assertThat(classification.getId()).startsWith(IdGenerator.ID_PREFIX_CLASSIFICATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
@WithAccessId(user = "businessadmin")
|
@WithAccessId(user = "businessadmin")
|
||||||
|
|
|
@ -26,6 +26,7 @@ import pro.taskana.common.api.TimeInterval;
|
||||||
import pro.taskana.common.api.exceptions.InvalidArgumentException;
|
import pro.taskana.common.api.exceptions.InvalidArgumentException;
|
||||||
import pro.taskana.common.internal.TaskanaEngineImpl;
|
import pro.taskana.common.internal.TaskanaEngineImpl;
|
||||||
import pro.taskana.common.internal.TaskanaEngineTestConfiguration;
|
import pro.taskana.common.internal.TaskanaEngineTestConfiguration;
|
||||||
|
import pro.taskana.common.internal.util.IdGenerator;
|
||||||
import pro.taskana.sampledata.SampleDataGenerator;
|
import pro.taskana.sampledata.SampleDataGenerator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -35,21 +36,19 @@ import pro.taskana.sampledata.SampleDataGenerator;
|
||||||
*/
|
*/
|
||||||
class ClassificationServiceImplIntExplicitTest {
|
class ClassificationServiceImplIntExplicitTest {
|
||||||
|
|
||||||
private static final String ID_PREFIX_CLASSIFICATION = "CLI";
|
|
||||||
|
|
||||||
static int counter = 0;
|
static int counter = 0;
|
||||||
|
|
||||||
private DataSource dataSource;
|
private DataSource dataSource;
|
||||||
private ClassificationService classificationService;
|
private ClassificationService classificationService;
|
||||||
private TaskanaEngineConfiguration taskanaEngineConfiguration;
|
|
||||||
private TaskanaEngineImpl taskanaEngine;
|
private TaskanaEngineImpl taskanaEngine;
|
||||||
|
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
void setup() throws Exception {
|
void setup() throws Exception {
|
||||||
dataSource = TaskanaEngineTestConfiguration.getDataSource();
|
dataSource = TaskanaEngineTestConfiguration.getDataSource();
|
||||||
String schemaName = TaskanaEngineTestConfiguration.getSchemaName();
|
String schemaName = TaskanaEngineTestConfiguration.getSchemaName();
|
||||||
taskanaEngineConfiguration =
|
TaskanaEngineConfiguration taskanaEngineConfiguration = new TaskanaEngineConfiguration(
|
||||||
new TaskanaEngineConfiguration(dataSource, false, false, schemaName);
|
dataSource, false, false, schemaName);
|
||||||
taskanaEngine = (TaskanaEngineImpl) taskanaEngineConfiguration.buildTaskanaEngine();
|
taskanaEngine = (TaskanaEngineImpl) taskanaEngineConfiguration.buildTaskanaEngine();
|
||||||
taskanaEngine.setConnectionManagementMode(ConnectionManagementMode.EXPLICIT);
|
taskanaEngine.setConnectionManagementMode(ConnectionManagementMode.EXPLICIT);
|
||||||
classificationService = taskanaEngine.getClassificationService();
|
classificationService = taskanaEngine.getClassificationService();
|
||||||
|
@ -85,7 +84,7 @@ class ClassificationServiceImplIntExplicitTest {
|
||||||
assertThat(actualClassification.getId()).isNotNull();
|
assertThat(actualClassification.getId()).isNotNull();
|
||||||
assertThat(actualClassification.getKey()).isEqualTo(key);
|
assertThat(actualClassification.getKey()).isEqualTo(key);
|
||||||
assertThat(actualClassification.getDomain()).isEqualTo("DOMAIN_B");
|
assertThat(actualClassification.getDomain()).isEqualTo("DOMAIN_B");
|
||||||
assertThat(actualClassification.getId()).startsWith(ID_PREFIX_CLASSIFICATION);
|
assertThat(actualClassification.getId()).startsWith(IdGenerator.ID_PREFIX_CLASSIFICATION);
|
||||||
Classification masterResult = classificationService.getClassification(key, "");
|
Classification masterResult = classificationService.getClassification(key, "");
|
||||||
assertThat(masterResult).isNotNull();
|
assertThat(masterResult).isNotNull();
|
||||||
|
|
||||||
|
@ -97,9 +96,7 @@ class ClassificationServiceImplIntExplicitTest {
|
||||||
expectedClassificationCreated.setServiceLevel("ASAP");
|
expectedClassificationCreated.setServiceLevel("ASAP");
|
||||||
|
|
||||||
ThrowingCallable call =
|
ThrowingCallable call =
|
||||||
() -> {
|
() -> classificationService.createClassification(expectedClassificationCreated);
|
||||||
classificationService.createClassification(expectedClassificationCreated);
|
|
||||||
};
|
|
||||||
assertThatThrownBy(call)
|
assertThatThrownBy(call)
|
||||||
.describedAs(
|
.describedAs(
|
||||||
"Should have thrown IllegalArgumentException, because ServiceLevel is invalid.")
|
"Should have thrown IllegalArgumentException, because ServiceLevel is invalid.")
|
||||||
|
@ -182,7 +179,7 @@ class ClassificationServiceImplIntExplicitTest {
|
||||||
classification.getKey(), classification.getDomain());
|
classification.getKey(), classification.getDomain());
|
||||||
assertThat(classification.getDescription()).isEqualTo("description");
|
assertThat(classification.getDescription()).isEqualTo("description");
|
||||||
|
|
||||||
classification = classificationService.updateClassification(classification);
|
classificationService.updateClassification(classification);
|
||||||
list = classificationService.createClassificationQuery().list();
|
list = classificationService.createClassificationQuery().list();
|
||||||
assertThat(list).hasSize(2);
|
assertThat(list).hasSize(2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue