Task Engine 10.11 | Task Engine Webhelp | webMethods Task Engine User's Guide | Administering Tasks | Administering Task Types | Administering Indexed Task Business Data | Considerations When Publishing Task Types with Indexed Data
 
Considerations When Publishing Task Types with Indexed Data
Publishing a task type that is enabled for indexed searches has a distinct impact on the My webMethods Server run-time environment. You must take into account these considerations before you publish indexed search tasks to My webMethods Server.
Task Engine creates and maintains a database table for each task type with database-indexed business data that you publish to the runtime. At runtime, when a user executes a business data search from a task inbox with an indexed search provider, Task Engine searches these database entries.
For HPSTRA-indexed business data fields, Task Engine creates, maintains and searches a separate Elasticsearch index per task type.
When a task type with indexed business data is published for the first time, Task Engine creates the database table or Elasticsearch index for the type. You must take into account the following considerations when you republish the task type:
*If the task developer modifies the task type interface, assignments, events, and so on, but makes no changes to the indexed data fields, there is no impact in the run-time environment.
*If the task developer modifies the structure of the indexed business data, for example, adds or removes a field, or changes a field type or attribute, Task Engine detects the changes automatically, drops the existing index table or Elasticsearch index for the task type, and creates a new one. Dropping the table or index also deletes all stored data, and the newly created table or index is empty.
*If the task developer modifies the structure of the indexed business data, and the task publisher republishes the task type while a reindexing procedure is running, Task Engine stops the reindexing procedure and sets its status to “Failed.” Then Task Engine drops the existing index table or Elasticsearch index with all stored data, and creates a new empty table or index.
To populate a newly created table with data from existing task instances in your system, you must run the task reindexing procedure as described in Reindexing Task Business Data. However, for the time period between the republishing of the modified task type and the completion of the reindexing procedure, any searches from a task inbox of the type will return incomplete results or no results at all.
For production environments, you must publish updates to task types with modified indexed business data and reindex business data only during scheduled maintenance periods.
For more information about task business data reindexing, see Reindexing Task Business Data. For more information about creating and working with tasks with indexed business data, see webMethods BPM Task Development Help.