Home →
Using LincDoc 3.1+ →
DANG Rule Wizard →
About DANG
10.1. About DANG
DANG (short for Data And Number Generator) is the LincDoc business logic engine that is the driving force behind all the conditions, actions, events, and calculations contained within a LincDoc form.
Note: This feature is the replacement for the custom Javascript that was used in earlier releases of LincDoc.
To understand DANG, it is important to first know the following terminology:
- Conditions. An expression that evaluates to either be true or false (for example: total_cost > 1000 or day_of_week is "Tuesday"). Conditions can also be combined using and and or operators (for example: total_cost > 1000 AND day_of_week is "Tuesday").
- Actions. Actions are discrete units of work that are executed when a condition is true. Examples of actions include the following:
- displaying an alert message
- sending an email containing a link to a document
- displaying a document
- saving a document to the database
- Events. Events denote key moments in time when an eForm or Document Package is being executed. For example, if an eForm or Document Package contains a signature field, when the user signs the document it triggers the after signing event. When an event occurs, it may trigger one or more actions. Each action then executes (or doesn't execute) based on evaluating the condition assigned to it.
- Functions. Functions take zero or more input values (typically form fields) to produce a single output value. For example, to combine first_name with last_name, you would use the Concat (concatenation) function. An example of a function that takes zero input values is Username, which simply returns the username of the currently logged in user.
- Calculations. Calculations assign values to fields, often by combining one or more functions. Calculations can be mathematical, but not necessarily. For example, a form may have a calculation to derive a field called full_name by concatenating the first_name and last_name fields.