Implemented trigger logic to create correct fulfillment plans

Implemented ui macro for trigger table field fulfillment plan
Implemented quick actions for Task table
Updated admin settings to introduce quick settings.
This commit is contained in:
admin
2023-02-03 12:49:13 -08:00
parent fa5fc665c1
commit dc8bc52dae
53 changed files with 2043 additions and 82 deletions

View File

@ -2,5 +2,12 @@
<element attributes="update_synch=true" db_object_id="5f15ebcb975021105838bfb3f153af66" extends="sys_metadata" label="Fulfillment Plan" max_length="40" name="x_355681_fa_fulfillment_plan" type="collection">
<element default="true" label="Active" max_length="40" name="active" type="boolean"/>
<element display="true" label="Name" mandatory="true" max_length="100" name="name" type="string"/>
<element attributes="allow_public=true,base_table=task" default="sc_req_item" label="Run On Table" max_length="80" name="run_on_table" type="table_name"/>
<element choice="3" default="service_catalog_item" label="Type" mandatory="true" max_length="40" name="type" type="choice">
<choice>
<element inactive_on_update="false" label="Service Catalog Item" sequence="100" value="service_catalog_item"/>
<element inactive_on_update="false" label="Task Table" sequence="200" value="task_table"/>
</choice>
</element>
</element>
</database>

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?><database>
<element attributes="update_synch=true" db_object_id="9de867bf97a461105838bfb3f153afb3" extends="sys_metadata" label="Fulfillment Step" max_length="40" name="x_355681_fa_fulfillment_step" type="collection">
<element default="true" label="Active" max_length="40" name="active" type="boolean"/>
<element attributes="allow_public=true" label="Condition Table" mandatory="true" max_length="80" name="condition_table" type="table_name"/>
<element display="true" label="Name" mandatory="true" max_length="100" name="name" type="string"/>
<element label="Order" mandatory="true" max_length="40" name="order" type="integer"/>
<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>
</database>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?><database>
<element attributes="update_synch=true" db_object_id="6a98b7f3972861105838bfb3f153af4e" extends="x_355681_fa_trigger" label="Service Catalog Trigger" max_length="40" name="x_355681_fa_service_catalog_trigger" type="collection">
<element label="Catalog Item" mandatory="true" max_length="32" name="catalog_item" reference="sc_cat_item" type="reference"/>
<element display="true" label="Catalog Item" mandatory="true" max_length="32" name="catalog_item" reference="sc_cat_item" type="reference"/>
<index name="index">
<element name="catalog_item"/>
</index>

View File

@ -1,8 +1,8 @@
<?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="/* &#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" label="Condition Table" max_length="80" name="condition_table" type="table_name"/>
<element label="Fulfillment Plan" mandatory="true" max_length="32" name="fulfillment_plan" reference="x_355681_fa_fulfillment_plan" type="reference"/>
<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 label="Script Condition" max_length="40" name="script_condition" type="boolean"/>
<index name="index">