Difference between revisions of "Action Based Data Policies"
From LongJump Support Wiki
imported>Aeric |
imported>Aeric |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
===Action Based Data Policies=== | ===Action Based Data Policies=== | ||
{{Tip| When you hear "action-based", think "event-based". This kind of data policy is initiated by a "triggering event". That event can be an Action-button in the GUI, or it can one of several other kinds of events.}} | {{Tip| When you hear "action-based", think "event-based". This kind of data policy is initiated by a "triggering event". That event can be an Action-button in the GUI, or it can be one of several other kinds of events.}} | ||
An action-based data policy: | An action-based data policy: | ||
Line 7: | Line 7: | ||
:*Can be conditioned to fire only when certain conditions are met. | :*Can be conditioned to fire only when certain conditions are met. | ||
:*Can be invoked before or after a record is applied to the database. | :*Can be invoked before or after a record is applied to the database. | ||
:*Can be invoked before or after | :*Can be invoked before or after batch updates. | ||
::[[File:DataPolicy-ActionBased.png]] | ::[[File:DataPolicy-ActionBased.png]] | ||
Line 14: | Line 14: | ||
::* '''Before adding or updating''' – Validate the incoming data, accept it or reject it by throwing an exception | ::* '''Before adding or updating''' – Validate the incoming data, accept it or reject it by throwing an exception | ||
::* '''After adding or updating''' – Update [[Related Objects]] | ::* '''After adding or updating''' – Update [[Related Objects]] | ||
:;Triggering Action:One or more events can be chosen to trigger a data policy. | :;Triggering Action:One or more events can be chosen to trigger a data policy. | ||
{{Note|<br>The '''Import Batch''' event occurs | {{Note|<br>The '''Import Batch''' event occurs before a data import starts, or after it ends.<br>The '''Import Record''' triggering event occurs before or after a record is imported.}} | ||
:'''Examples of Action Based Data Policies''' | :'''Examples of Action Based Data Policies''' | ||
Line 25: | Line 23: | ||
::*When adding new records, validate the address/phone/email fields before allowing the records to be added to the database | ::*When adding new records, validate the address/phone/email fields before allowing the records to be added to the database | ||
::*When importing records (leads file from a tradeshow, for example), verify that the record is not a duplicate of any already existing person/company | ::*When importing records (leads file from a tradeshow, for example), verify that the record is not a duplicate of any already existing person/company | ||
''Learn more:'' [[Create_a_Data_Policy#Build_an_Action_Based_Data_Policy|Build an Action Based Data Policy]] | ''Learn more:'' [[Create_a_Data_Policy#Build_an_Action_Based_Data_Policy|Build an Action Based Data Policy]] |
Latest revision as of 01:17, 30 May 2013
Action Based Data Policies
An action-based data policy:
- Can be triggered by one or more events.
- Can be conditioned to fire only when certain conditions are met.
- Can be invoked before or after a record is applied to the database.
- Can be invoked before or after batch updates.
- Activation Sequence
- An action-based data policy can be set to execute either before or after the triggering event. For example:
- Before adding or updating – Validate the incoming data, accept it or reject it by throwing an exception
- After adding or updating – Update Related Objects
- Triggering Action
- One or more events can be chosen to trigger a data policy.
- Examples of Action Based Data Policies
- In a sales department, the local sales representative automatically receives an email notification when a prospective client requests information from the organization's web site. The data policy is triggered by the addition of a new record (prospect), choosing the email recipient based on the territory.
- In a manufacturing operation, the parts department wants to know if the inventory on a popular part is low. The data policy is triggered by an update to the quantity of units in inventory.
- When adding new records, validate the address/phone/email fields before allowing the records to be added to the database
- When importing records (leads file from a tradeshow, for example), verify that the record is not a duplicate of any already existing person/company
Learn more: Build an Action Based Data Policy