/
var
/
www
/
html
/
sugardemo
/
modules
/
WorkFlowTriggerShells
/
Upload File
HOME
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then do not * install or use this SugarCRM file. * * Copyright (C) SugarCRM Inc. All rights reserved. */ $process_dictionary['TriggersCreateStep1'] = ['action' => 'CreateStep1', 'elements' => [ 'compare_specific' => [ 'trigger_type' => 'all', 'filter_type' => ['Normal' => 'Normal', 'Time' => 'Time'], 'top' => [ 'type' => 'radio', 'name' => 'type', 'value' => 'compare_specific', 'options' => [ '1' => ['vname' => 'LBL_COMPARE_SPECIFIC_TITLE', 'mutual_exclusion' => ['trigger_record_change']], //end top options ], //end top ], 'bottom' => [ 'type' => 'text', 'value' => 'compare_specific', 'options' => [ '1' => ['vname' => 'LBL_TRIGGER', 'text_type' => 'static', 'display_function' => 'get_list_display_text_compare_specific'], '2' => [ 'vname' => 'LBL_FIELD', 'default' => 'on', 'text_type' => 'dynamic', 'type' => 'href', 'value' => 'field', 'value_type' => 'normal_field', 'jscript_function' => 'get_single_selector', 'jscript_content' => ['self', 'field'], ], '3' => ['vname' => 'LBL_COMPARE_SPECIFIC_PART', 'text_type' => 'static', 'vname_time' => 'LBL_COMPARE_SPECIFIC_PART_TIME'], //end bottom options ], //end bottom ], //end compare_specific array ], 'trigger_record_change' => [ 'trigger_type' => 'non_time', 'filter_type' => ['Normal' => 'Normal'], 'top' => [ 'type' => 'radio', 'name' => 'type', 'value' => 'trigger_record_change', 'options' => [ '1' => ['vname' => 'LBL_TRIGGER_RECORD_CHANGE_TITLE', 'display_function' => 'get_trigger_list_display_text_generic', 'mutual_exclusion' => ['compare_specific']], //end top options ], //end top ], 'bottom' => [ 'type' => 'text', 'value' => 'trigger_record_change', 'options' => [ '1' => ['vname' => 'LBL_TRIGGER_RECORD_CHANGE_TITLE', 'text_type' => 'static'], //end bottom options ], //end bottom ], //end trigger_record_change array ], 'compare_change' => [ 'trigger_type' => 'non_time', 'filter_type' => ['Normal' => 'Normal'], 'trigger_type_override' => 'normal_date_trigger', 'top' => [ 'type' => 'radio', 'name' => 'type', 'value' => 'compare_change', 'options' => [ '1' => ['vname' => 'LBL_COMPARE_CHANGE_TITLE'], //end top options ], //end top ], 'bottom' => [ 'type' => 'text', 'value' => 'compare_change', 'options' => [ '1' => ['vname' => 'LBL_TRIGGER', 'text_type' => 'static'], '2' => [ 'vname' => 'LBL_FIELD', 'default' => 'on', 'text_type' => 'dynamic', 'type' => 'href', 'value' => 'field', 'value_type' => 'normal_field', 'jscript_function' => 'get_single_selector', 'jscript_content' => ['self', 'field'], ], '3' => ['vname' => 'LBL_COMPARE_CHANGE_PART', 'text_type' => 'static'], //end bottom options ], //end bottom ], //end compare_specific array ], /*'compare_count' => Array( 'trigger_type' => 'non_time', 'filter_type' => Array(), 'top' => Array( 'type' => 'radio', 'name' => 'type', 'value' => 'compare_count', 'options' => Array( '1' => Array('vname' => 'LBL_COMPARE_COUNT_TITLE'), //end top options ), //end top ), 'bottom' => Array( 'type' => 'text', 'value' => 'compare_count', 'options' => Array( '1' => Array('vname' => 'LBL_COMPARE_COUNT_TITLE', 'text_type' => 'static'), //end bottom options ), //end bottom ), //end compare_count array ),*/ 'compare_any_time' => [ 'trigger_type' => 'time_only', 'filter_type' => ['Time' => 'Time'], 'top' => [ 'type' => 'radio', 'name' => 'type', 'value' => 'compare_any_time', 'options' => [ '1' => ['vname' => 'LBL_COMPARE_ANY_TIME_TITLE'], //end top options ], //end top ], 'bottom' => [ 'type' => 'text', 'value' => 'compare_any_time', 'options' => [ '1' => [ 'vname' => 'LBL_FIELD', 'default' => 'on', 'text_type' => 'dynamic', 'type' => 'href', 'value' => 'field', 'value_type' => 'normal_field', 'jscript_function' => 'get_single_selector', 'jscript_content' => ['self', 'field'], ], '2' => ['vname' => 'LBL_COMPARE_ANY_TIME_PART2', 'text_type' => 'static'], '3' => [ 'vname' => 'LBL_COMPARE_ANY_TIME_PART3', 'default' => 'on', 'text_type' => 'dynamic', 'type' => 'dropdown', 'value' => 'parameters', 'value_type' => 'special_exp', 'value_exp_type' => 'dom_array', 'dom_name' => 'tselect_type_dom', ], //end bottom options ], //end bottom ], //end compare_any_time array ], 'filter_field' => [ 'trigger_type' => 'non_time', 'filter_type' => ['Normal' => 'Normal', 'Time' => 'Time'], 'top' => [ 'type' => 'radio', 'name' => 'type', 'value' => 'filter_field', 'options' => [ '1' => ['vname' => 'LBL_FILTER_FIELD_TITLE'], //end top options ], //end top ], 'bottom' => [ 'type' => 'text', 'value' => 'filter_field', 'options' => [ '1' => ['vname' => 'LBL_FILTER_FIELD_TITLE', 'text_type' => 'static'], //end bottom options ], //end bottom ], //end filter_field array ], 'filter_rel_field' => [ 'trigger_type' => 'non_time', 'filter_type' => ['Normal' => 'Normal', 'Time' => 'Time'], 'top' => [ 'type' => 'radio', 'name' => 'type', 'value' => 'filter_rel_field', 'options' => [ '1' => ['vname' => 'LBL_FILTER_REL_FIELD_TITLE'], //end top options ], //end top ], 'bottom' => [ 'type' => 'text', 'value' => 'filter_rel_field', 'related' => ['count' => '1', 'rel1_field' => 'rel_module'], 'options' => [ '1' => ['vname' => 'LBL_FILTER_REL_FIELD_PART1', 'text_type' => 'static'], '2' => [ 'vname' => 'LBL_RECORD', 'default' => 'on', 'text_type' => 'dynamic', 'type' => 'href', 'value' => 'rel_module', 'value_type' => 'relrel_module', 'possess_next' => 'Yes', 'jscript_function' => 'get_single_selector2', 'jscript_content' => ['self', 'rel_module', 'field', 'trigger_rel_filter'], ], '3' => ['vname' => 'LBL_FIELD', 'text_type' => 'static'], //end bottom options ], //end bottom ], //end filter_rel_field array ], ], 'hide_others' => [ 'target_field' => 'type', 'target_element' => [ 'compare_change' => ['compare_change'], 'compare_specific' => ['compare_specific'], 'compare_count' => ['compare_count'], 'compare_any_time' => ['compare_any_time'], 'trigger_record_change' => ['trigger_record_change'], ], ], //End process dictionary CreateStep1 ]; $process_dictionary['CreateStepSpecific'] = ['action' => 'CreateStepSpecific', 'elements' => [ 'future_trigger' => [ 'trigger_type' => 'all', 'top' => [ 'type' => 'checkbox', 'present' => 'always', 'name' => '', 'value' => 'compare_specific', 'options' => [ '1' => ['vname' => 'LBL_FUTURE_TRIGGER', 'text_type' => 'static'], '2' => [ 'vname' => 'LBL_FIELD', 'default' => 'on', 'text_type' => 'dynamic', 'type' => 'text', 'value' => 'field', 'value_type' => 'normal_field', ], '3' => ['vname' => 'LBL_VALUE', 'text_type' => 'static'], //end top options ], //end top ], 'bottom' => [ 'type' => 'text', 'value' => 'compare_specific', 'options' => [ '1' => ['vname' => 'LBL_FUTURE_TRIGGER', 'text_type' => 'static'], '2' => [ 'vname' => 'LBL_FIELD', 'default' => 'on', 'text_type' => 'dynamic', 'type' => 'text', 'value' => 'field', 'value_type' => 'normal_field', ], '3' => [ 'vname' => 'LBL_VALUE', 'default' => 'on', 'text_type' => 'dynamic', 'type' => 'href', 'value' => 'field', 'value_type' => 'normal_field', ], //end bottom options ], //end bottom ], //end future_trigger array ], ], 'hide_others' => [ 'target_field' => 'type', 'target_element' => [ 'compare_change' => ['compare_change'], 'compare_specific' => ['compare_specific'], 'compare_count' => ['compare_count'], ], ], //End process dictionary CreateStepSpecific ];