Search the FirstSpirit Knowledge Base
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.
You should use the QueryAgent:
http://www.e-spirit.com/odfs50/dev/de/espirit/firstspirit/agency/QueryAgent.html
You should use the QueryAgent:
http://www.e-spirit.com/odfs50/dev/de/espirit/firstspirit/agency/QueryAgent.html
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.