08-31-2021 01:33 AM
Hi,
I wanted to filter the tasks using setTaskName which is the method of WorkflowTaskQuery class. I've tried it by using the below code as it requires QName as its parameter, but it didn't provide me with any of the result. I got an empty response.
String c1 = "aclrqreparePo";
QName fk;
fk = QName.createQName(c1, namespaceService);
WorkflowTaskQuery taskQuery = new WorkflowTaskQuery();
taskQuery.setActive(null);
taskQuery.setWorkflowDefinitionName(workflowName);
taskQuery.setTaskState(state);
taskQuery.setTaskName(fk);
allTasks = workflowService.queryTasks(taskQuery);
Please do provide me a solution. Any help would be appreciated
Thank you!
Explore our Alfresco products with the links below. Use labels to filter content by product module.