Cleaned navigator modules

Implemented 3 types of triggers. Each having their own business rules
Implemented FAProperty script for re-usable properties like tables
Created UI Macro to create new Fulfillment Plan from trigger
This commit is contained in:
admin
2023-02-04 09:02:25 -08:00
parent dc8bc52dae
commit a2ccc083fd
27 changed files with 960 additions and 121 deletions

View File

@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?><database>
<element attributes="update_synch=true" db_object_id="5c23333f97e461105838bfb3f153affa" extends="sys_metadata" label="Trigger" max_length="40" name="x_355681_fa_trigger" type="collection">
<element default="true" label="Active" max_length="40" name="active" type="boolean"/>
<element default="/* &#13;&#10; * Trigger only populated if trigger record is different as current.&#13;&#10; * Example: Record Producers&#13;&#10; */&#13;&#10;(function(current){&#13;&#10;&#9;var answer = true;&#13;&#10;&#13;&#10;&#9;//Type your custom logic below. Make answer false to not run this Fulfillment Plan.&#13;&#10;&#13;&#10;&#9;return false;&#13;&#10;})(current);" label="Condition Script" max_length="8000" name="condition_script" type="script"/>
<element attributes="allow_public=true,base_table=task" label="Condition Table" max_length="80" name="condition_table" type="table_name"/>
<element attributes="ref_contributions=x_355681_fa_create_new_fp" label="Fulfillment Plan" max_length="32" name="fulfillment_plan" reference="x_355681_fa_fulfillment_plan" reference_qual="javascript:&quot;run_on_table=&quot; + current.getValue(&quot;condition_table&quot;)" type="reference" use_reference_qualifier="advanced"/>
<element dependent="condition_table" dependent_on_field="condition_table" label="Run if" max_length="4000" name="run_if" type="conditions" use_dependent_field="true"/>
<element attributes="show_condition_count=true,readable=true,condition_builder=v2,allow_related_list_query=true" dependent="condition_table" dependent_on_field="condition_table" label="Run if" max_length="4000" name="run_if" type="conditions" use_dependent_field="true"/>
<element label="Script Condition" max_length="40" name="script_condition" type="boolean"/>
<index name="index">
<element name="fulfillment_plan"/>