Looking up Tasks faster and more efficiently in webMethods

In case you want to locate tasks (that use standard business data) on the Task Engine to which the webMethods Integration Server is connected to, an invoke to built-in service “pub.task.taskclient:searchTasks” is used. On the other hand, when working with indexed business data fields service “pub.task.taskclient:searchTasksIndexed” is called.

From a past experience an invoke of service “pub.task.taskclient:searchTasks” resulted in a long running sql query on the related Database source. This eventually led to a “java.net.SocketTimeoutException: Read timed out” scenario between Integration Server and Task Engine. A result set of 140 active tasks took more than 90 seconds to get returned causing the Integration Server per default to disconnect the ongoing Task Engine query after 60 seconds.

One option is to put on the Integration Server extended setting “WSClientConfig.SocketTimeout” in place and increase the timeout value (in milliseconds).
A better, more elegant and formal solution is to replace invoke “pub.task.taskclient:searchTasks” by  “pub.task.taskclient:searchTasksIndexed” and put boolean businessData to false. The replacement service will take advantage of the built-in index capabilities whereas “pub.task.taskclient:searchTasks” doesn’t.

When using service “pub.task.taskclient:searchTasksIndexed” instead of “pub.task.taskclient:searchTasks” a similar result set was returned in a couple of seconds instead of causing an operational problem for the integration.

Author: Johan

blogger

blogger

Curious to know more about this topic?

Working at i8c

i8c is a system integrator that strives for an informal atmosphere between its employees, who have an average age of approx 30 years old. We invest a lot of effort in the professional development of each individual, through a direct connection between the consultants and the management (no multiple layers of middle management). We are based in Kontich, near Antwerp, but our customers are mainly located in the triangle Ghent-Antwerp-Brussels and belong to the top 500 companies in Belgium (Securex, Electrabel, UCB, etc…).

Quality Assurance

i8c is committed to delivering quality services and providing customer satisfaction. That’s why we invested in the introduction of a Quality Management System, which resulted in our ISO9001:2000 certification. This guarantees that we will meet your expectations, as a reliable, efficient and mature partner for your SOA & integration projects.

i8c - ISO9001-2015

Also worth reading

AWS AppFlow: Streamlining SaaS Integrations with AWS Services

In today’s digital world, organizations are constantly looking for ways to streamline their workflows and improve their data management processes. One of the key challenges that organizations face is integrating their various software as a service (SaaS) applications with their data management systems. This is

Read More »

Apigee Scope Validation using OpenAPI Specification

In API security and management, we often use a lot of different security mechanisms to protect the requested resource behind the API Gateway. One of these mechanisms is the validation of scopes to authorize a client on a specific sub-resource of the API. Most of

Read More »