Hi there,
I have this code, which is doing it’s work right after the start form is ‘Complete’ in the model.
FilterService filterService = delegateExecution.getProcessEngineServices().getFilterService();
TaskQuery myTasksQuery = delegateExecution
.getProcessEngineServices()
.getTaskService()
.createTaskQuery()
.executionId(delegateExecution.getId());
Filter myTasksFilter = filterService.newTaskFilter("Case Nr");
myTasksFilter.setOwner(userId);
myTasksFilter.setQuery(myTasksQuery);
Filter filter = filterService.saveFilter(myTasksFilter);
List<Task> tasks = filterService.listPage(filter.getId(), 0, 20);
Filter is visible in the Task List but is only visible after I do refresh in the Task List. Is it possible to somehow make it appear as soon as the form is submitted?
Maybe an alternative solution would be to do it in the frontend?
Thanks and kind regards,
Deniss