ADH2COB
I'm new here

UserService getAllTasks() deprecated

Jump to solution

Hello,

I am migrating from FS 4.2.488 to FS 5.1.106.In fs4.x version i get the task details from user service (userService.getAllTasks()) wherein i get the user service object from existing GuiScriptContext (userService = guiContext.getUserService()).Now in new FS5.x version I am asked use SearchService for searching the tasks.How can i get the searchservice object. Is it available already in the context once we open the java client.

1 Solution

Accepted Solutions
2 Replies
Peter_Jodeleit
Crownpeak employee
0 Kudos

Thanks a lot used query agaent  and is working below is the code snippet

QueryAgent agent = context.requireSpecialist(QueryAgent.TYPE);

Iterable<IDProvider> tasksIterable = agent.answer(fs.workflow = *);

This is will return all the elements in workflow as iterable element.