{"id":37,"date":"2008-10-27T12:53:34","date_gmt":"2008-10-27T02:53:34","guid":{"rendered":"http:\/\/supportingelement.wordpress.com\/?p=37"},"modified":"2008-10-27T12:53:34","modified_gmt":"2008-10-27T02:53:34","slug":"setting-up-mass-triggers","status":"publish","type":"post","link":"https:\/\/supportingelement.com\/index.php\/2008\/10\/27\/setting-up-mass-triggers\/","title":{"rendered":"Setting up Mass Triggers"},"content":{"rendered":"<p>Mass Triggers are new to version 8.9 and are useful in triggering retrospective calculation when setup tables are changed.  For example, if an allowance rate is changed retrospectively Mass Triggers can be used create Iterative and Retro triggers for Employees who have the Earning assigned via EDAP.<\/p>\n<p>Unfortunately, the process of creating Mass Triggers is poorly documented in PeopleBooks.  This example should help fill the gaps.<\/p>\n<p>To setup Mass Triggers:<\/p>\n<h5>Create SQL Object<\/h5>\n<p>The SQL object must return Employee ID, Employee Record Number and the Effective Date of the Trigger.  In the following example the SQL Object uses parameters of the Earning Pin Number and Effective Date of the changes to the Earning to select Employees who have EDAP entries impacted by the changes.  The SQL then returns the Employee ID, Employee Record and the greater of Effective Date of the Changes or EDAP Begin Date.<\/p>\n<p style=\"text-align:center;\"><a href=\"http:\/\/www.temp.supportingelement.com\/wp-content\/uploads\/2008\/10\/01_sql_object1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-28 aligncenter\" title=\"01_sql_object1\" src=\"http:\/\/www.temp.supportingelement.com\/wp-content\/uploads\/2008\/10\/01_sql_object1.jpg?w=300\" alt=\"\" width=\"300\" height=\"96\" srcset=\"https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/01_sql_object1.jpg 680w, https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/01_sql_object1-300x96.jpg 300w, https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/01_sql_object1-660x212.jpg 660w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h5>Create Trigger Event Definition<\/h5>\n<p>A Retro Event Definition is required for the configuration of Mass Triggers.  An existing Event Definition can be used for this purpose, however in this scenario a new Definition has been configured.<\/p>\n<p style=\"text-align:center;\"><a href=\"http:\/\/www.temp.supportingelement.com\/wp-content\/uploads\/2008\/10\/02_event_def2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-30 aligncenter\" title=\"02_event_def2\" src=\"http:\/\/www.temp.supportingelement.com\/wp-content\/uploads\/2008\/10\/02_event_def2.jpg?w=300\" alt=\"\" width=\"300\" height=\"86\" srcset=\"https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/02_event_def2.jpg 717w, https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/02_event_def2-300x87.jpg 300w, https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/02_event_def2-660x191.jpg 660w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align:center;\">Product Related &gt; Global Payroll &amp; Absence Mgmt<br \/>\n&gt; Triggers &gt; Retro Event Definitions<\/p>\n<h5>Create Mass Trigger Definition<\/h5>\n<p>The Component, Record Name, Retro Event Definition and selected Fields are used to define the Mass Trigger Definition.<\/p>\n<p style=\"text-align:center;\"><a href=\"http:\/\/www.temp.supportingelement.com\/wp-content\/uploads\/2008\/10\/03_mass_trig_def1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-31 aligncenter\" title=\"03_mass_trig_def1\" src=\"http:\/\/www.temp.supportingelement.com\/wp-content\/uploads\/2008\/10\/03_mass_trig_def1.jpg?w=300\" alt=\"\" width=\"300\" height=\"185\" srcset=\"https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/03_mass_trig_def1.jpg 621w, https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/03_mass_trig_def1-300x186.jpg 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align:center;\">Product Related &gt; Global Payroll &amp; Absence Mgmt<br \/>\n&gt; Triggers &gt; Mass Trigger Definitions<\/p>\n<p>The SQL Object is bound to the Mass Trigger Tables using the parameters defined in the SQL Object.  In this case the Pin Number and Effective Date of the config changes is passed.<\/p>\n<p style=\"text-align:center;\"><a href=\"http:\/\/www.temp.supportingelement.com\/wp-content\/uploads\/2008\/10\/04_mass_trig_def_sql1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-32 aligncenter\" title=\"04_mass_trig_def_sql1\" src=\"http:\/\/www.temp.supportingelement.com\/wp-content\/uploads\/2008\/10\/04_mass_trig_def_sql1.jpg?w=300\" alt=\"\" width=\"300\" height=\"139\" srcset=\"https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/04_mass_trig_def_sql1.jpg 671w, https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/04_mass_trig_def_sql1-300x139.jpg 300w, https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/04_mass_trig_def_sql1-660x307.jpg 660w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align:center;\">Product Related &gt; Global Payroll &amp; Absence Mgmt<br \/>\n&gt; Triggers &gt; Mass Trigger Definitions<\/p>\n<h5>Create Mass Trigger Generation Logic<\/h5>\n<p>Finally, PeopleCode is required on the Mass Trigger record (in this scenario the &#8220;GP_ERN_DED&#8221; record).  This step is not mentioned in PeopleBooks, but is nicely documented in the code comments of the &#8220;GP_MT_TRG_DFN&#8221; record (where else would you expect it ;-).<\/p>\n<p style=\"text-align:center;\"><a href=\"http:\/\/www.temp.supportingelement.com\/wp-content\/uploads\/2008\/10\/05_mass_trig_peoplecode1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-33 aligncenter\" title=\"05_mass_trig_peoplecode1\" src=\"http:\/\/www.temp.supportingelement.com\/wp-content\/uploads\/2008\/10\/05_mass_trig_peoplecode1.jpg?w=300\" alt=\"\" width=\"300\" height=\"73\" srcset=\"https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/05_mass_trig_peoplecode1.jpg 688w, https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/05_mass_trig_peoplecode1-300x74.jpg 300w, https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/05_mass_trig_peoplecode1-660x162.jpg 660w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align:left;\">The follow screen shows the PeopleCode used to generate Mass Triggers.  The GenerateMassTriggers function takes Component and Record names as parameters.<br \/>\n<a href=\"http:\/\/www.temp.supportingelement.com\/wp-content\/uploads\/2008\/10\/06_mass_trig_doco1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-34 aligncenter\" title=\"06_mass_trig_doco1\" src=\"http:\/\/www.temp.supportingelement.com\/wp-content\/uploads\/2008\/10\/06_mass_trig_doco1.jpg?w=300\" alt=\"\" width=\"300\" height=\"140\" srcset=\"https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/06_mass_trig_doco1.jpg 688w, https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/06_mass_trig_doco1-300x140.jpg 300w, https:\/\/supportingelement.com\/wp-content\/uploads\/2008\/10\/06_mass_trig_doco1-660x309.jpg 660w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mass Triggers are new to version 8.9 and are useful in triggering retrospective calculation when setup tables are changed. For example, if an allowance rate is changed retrospectively Mass Triggers can be used create Iterative and Retro triggers for Employees who have the Earning assigned via EDAP. Unfortunately, the process of creating Mass Triggers is\u2026 <span class=\"read-more\"><a href=\"https:\/\/supportingelement.com\/index.php\/2008\/10\/27\/setting-up-mass-triggers\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,8,9,21],"tags":[],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-all-posts","category-configuration","category-global-payroll","category-hrms","category-peoplesoft"],"_links":{"self":[{"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":0,"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"wp:attachment":[{"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/supportingelement.com\/index.php\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}