Custom Business Rule Events and Event Creation Times

Prior to Dovetail Admin version 3.6 Clarify/Dovetail system administrators had to modify \pages\biz_rule\inc_lists.asp module in order to add custom events for business rules and custom event creation times for business rule actions. Clarify administrators can also customize Clarify form 472 to add custom events for business rules to the SEL_EVENT list. Starting with Dovetail Admin version 3.6 both custom events for business rules and custom event creation times for business rule actions can be stored in database tables and dynamically retrieved when a business rule is to be edited.

Custom Events for Business Rules

Dovetail Admin will continue to load all baseline events from the SEL_EVENT list of Clarify form 472. If you already added your custom events to this list they may remain there or you may migrate them to \files\custom_events.dat file for future import with ArchiveManager. Each custom event is stored in table_config_itm using the following columns:

Consider the following example:

OBJECT TYPE="config_itm", NAME="Run Task Set"

UNIQUE_FIELD = name

FIELDS

name ="Run Task Set";

description="Dovetail - Run Task Set";

value_type = 1001;

i_value = 1005;

str_value="CASE";

END_FIELDS

END_OBJECT NAME="Run Task Set"

Prior to Dovetail Admin version 3.6 Dovetail system administrator would modify \pages\biz_rule\inc_lists.asp module and add custom events to the code of DdlEvents function, in this fashion:

out += '<option ';

out += 'value="USER1005" ';

out += 'object="CASE"';

out += '>Run Task Set</option>';

The method of migration of the above to the new method should be self-evident.

Once all the custom events are moved to the \files\custom_events.dat file and imported, there will be no need to customize the \pages\biz_rule\inc_lists.asp module or Clarify form 472.

If a new custom event is needed, add it to the \files\custom_events.dat file and import with ArchiveManager. The new and/or updated custom events will be immediately available upon page refresh in the Event drop-down lists for Start On Events and Stop On Events sections of the Business Rule Events Tab

Custom Event Creation Times for Business Rule Actions

Dovetail Admin replicates the Clarify static list of baseline event creation times, in DdlActionFrom function of the \pages\biz_rule\inc_lists.asp module. Dovetail Admin does not retrieve custom event creation times from the MBT_37 list of Clarify form 474. Dovetail system administrator would modify DdlActionFrom function code to add a custom event creation time in the following fashion:

out += '<option value="150" object="CASE">Next Action Due Date</option>';

Beginning with Dovetail Admin version 3.6 this could be migrated to \files\custom_event_creation_times.dat file for future import with ArchiveManager. Each custom event creation time is stored in table_prop_name using the following columns:

Consider the following example:

OBJECT TYPE="prop_name", NAME=Next_Action_Due_Date

UNIQUE_FIELD=obj_type, prop_name

FIELDS

obj_type=0;

prop_name ="@USERTIME150";

path_name="x_next_action_due_date";

val_type=609;

max_len=30;

extra_info = "Next Action Due Date";

END_FIELDS

END_OBJECT NAME=Next_Action_Due_Date

The method of migration of the above to the new method should be self-evident.

Once all the custom event creation times are moved to the \files\custom_event_creation_times.dat file and imported, there will be no need to customize the \pages\biz_rule\inc_lists.asp module or Clarify form 474.

If a new custom event creation time is needed, add it to the \files\custom_event_creation_times.dat file and import with ArchiveManager. The new and/or updated custom event creation times will be immediately available upon page refresh in the From drop-down list on Frequency & Messages tab of the Manage Business Rules - Action window.

See Also

Dovetail Features

Colors

Queries Objects

Flash Tables

Stored Procedures

Strings

Next

Web Forms

Custom Business Rule Events and Event Creation Times