Automatic Conditions

WorkWithPlus provides the possibility to insert parametric Conditions in Selection or Prompt templates, which will be added to the respective objects (Selection or Prompt) whether they accomplish certain regular expression or some condition property.

The main purpose of Automatic Conditions is to allow user inserting a Condition in some template object within WorkWithPlus Configuration that will apply for most of objects of that type and all Selection/Prompt objects that are based on that template will inherit these Conditions by default when applying the pattern the first time or when executing Update Instances action.

In order to define an Automatic Condition it is necessary to specify the regular expression or the properties that will define to which attributes the Condition will be added, and the condition itself which will be able to contain tags like <TRN_NAME>, <TRN_DESCRIPTION>, <ATT_NAME> and <ATT_DESCRIPTION>.

For example, let's suppose we have a multitenant application, and user logges in to some Person. So in all the Selection and Prompt objects we want to filter by that Person. So, we can insert automatic conditions in Selection and Prompt generic tree:

AutomaticConditionsImg01

Then we make 'Update Instances' in order to impact these changes in the instances of the KB (Person and PersonContact)

AutomaticConditionsImg02

Then we open Person transaction and visualize that the Automatic condition nodes have been added:

AutomaticConditionsImg03

Finally, we apply pattern and visualize the conditions of PersonWW:

AutomaticConditionsImg04