Issue
If you are using Search Templates in Workspace ES2 to search for tasks between certain dates for a particular process, you may notice that the results return tasks outside of the specified dates.
This problem occurs when using a localized Workspace and adding the Task Start date in the search template criteria as seen below:
Then you specify a date range when executing the search template in Workspace ES2:
The results returned from the localized Workspace versions are not filtered at all on date, whereas in the English Workspace they are (i.e. it only returns the results between the given dates):
Reason
This is a bug in the localized versions of LiveCycle Workspace ES2 where the results are not filtered by the date criteria specified.
You can check this by using a database logging to track what SQL statements are being sent to the database when the search template is executed. In the localized Workspace the SQL is as follows:
SELECT DISTINCT T0.id, T0.status, T0.step_name, T0.route_list, T0.process_name, T0.process_instance_id, T0.action_instance_id, T0.update_time, T0.create_time, T1.id, T1.type, T2.id, T2.status, T2.complete_time, T3.id, T3.workflow_principal_id, T4.id, T4.commonname, T5.id FROM tb_task T0 INNER JOIN tb_assignment T1 ON (T0.current_assignment_id = T1.id) INNER JOIN tb_process_instance T2 ON (T0.process_instance_id = T2.id) INNER JOIN tb_queue T3 ON (T1.queue_id = T3.id) INNER JOIN EDCPRINCIPALENTITY T4 ON (T3.workflow_principal_id = T4.id) INNER JOIN tb_task_acl T5 ON (T0.id = T5.task_id) WHERE (T5.user_id = ’9B365DDD-C7D4-102C-8DFF-00000A24CEC9′ AND T0.process_name = ‘Task_Forwarding/Task_Forwarding_Test’ )
whereas in the English Workspace the SQL contains the date criteria at the end:
SELECT DISTINCT T0.id, T0.status, T0.step_name, T0.route_list, T0.process_name, T0.process_instance_id, T0.action_instance_id, T0.update_time, T0.create_time, T1.id, T1.type, T2.id, T2.status, T2.complete_time, T3.id, T3.workflow_principal_id, T4.id, T4.commonname, T5.id FROM tb_task T0 INNER JOIN tb_assignment T1 ON (T0.current_assignment_id = T1.id) INNER JOIN tb_process_instance T2 ON (T0.process_instance_id = T2.id) INNER JOIN tb_queue T3 ON (T1.queue_id = T3.id) INNER JOIN EDCPRINCIPALENTITY T4 ON (T3.workflow_principal_id = T4.id) INNER JOIN tb_task_acl T5 ON (T0.id = T5.task_id) WHERE (T5.user_id = ’9B365DDD-C7D4-102C-8DFF-00000A24CEC9′ AND T0.process_name = ‘Task_Forwarding/Task_Forwarding_Test’ AND T0.create_time >= ’2011-08-14 00:00:00′ AND T0.create_time <= ’2011-08-22 00:00:00′ )
Solution
There is a patch available for Workspace ES2 SP2 (9.0.0.2), so contact enterprise support if you require this patch. The issue will also be fixed in future versions of Workspace (Es2 SP3, and ADEP).
reference: (182579627/2951216)





