Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 7.06 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <action-sequence>
  3.   <title>Run report for yesterday</title>
  4.   <version>1</version>
  5.   <logging-level>DEBUG</logging-level>
  6.   <documentation>
  7.     <author>Brandon Jackson</author>  
  8.     <description>This action simply executes the prpt file for one facility_sk for yesterday.</description>  
  9.     <help/>  
  10.     <result-type>report</result-type>  
  11.     <icon/>
  12.   </documentation>
  13.  
  14.   <inputs/>
  15.  
  16.   <outputs>
  17.     <finishedReport type="content">
  18.       <destinations>
  19.         <contentrepo>finishedReport</contentrepo>
  20.       </destinations>
  21.     </finishedReport>
  22.   </outputs>
  23.  
  24.   <resources>
  25.     <report-definition>
  26.       <solution-file>
  27.         <location>Daily_Labor_Control_v1.7.prpt</location>  
  28.         <mime-type>application/zip</mime-type>
  29.       </solution-file>
  30.     </report-definition>
  31.   </resources>
  32.  
  33.   <actions>
  34.     <action-definition>
  35.       <component-name>JavascriptRule</component-name>
  36.       <action-type>JavaScript</action-type>
  37.       <action-inputs/>
  38.       <action-outputs>
  39.         <date_init type="string"/>
  40.       </action-outputs>
  41.       <component-definition>
  42.         <script><![CDATA[var yesterday = java.util.Calendar.getInstance();
  43. yesterday.add(java.util.Calendar.DAY_OF_MONTH, -1);
  44. yesterday.set(java.util.Calendar.HOUR_OF_DAY , 0);
  45. yesterday.set(java.util.Calendar.MINUTE, 0);
  46. yesterday.set(java.util.Calendar.SECOND , 0);
  47. yesterday.set(java.util.Calendar.MILLISECOND , 0);
  48. p_report_period = yesterday.getTimeInMillis();
  49.  
  50. var formatter = new java.text.SimpleDateFormat("yyyy-MM-dd");
  51. date_init = formatter.format(yesterday.getTime());]]></script>
  52.       </component-definition>
  53.     </action-definition>
  54.  
  55.     <action-definition>
  56.       <component-name>SQLLookupRule</component-name>
  57.       <action-type>Get active facilities and email addresses</action-type>
  58.       <action-outputs>
  59.         <query-result type="result-set" mapping="query_result"/>  
  60.         <facility_list type="long"/>  
  61.         <Facility type="string"/>  
  62.         <adminemail type="string"/>  
  63.         <RDOemail type="string"/>  
  64.         <execemail type="string"/>
  65.       </action-outputs>
  66.       <component-definition>
  67.         <jndi><![CDATA[production]]></jndi>  
  68.         <query><![CDATA[SELECT facility_sk as "facility_list", Facility, adminemail, execemail, RDOemail FROM dim_facility WHERE Facility IS NOT NULL AND facility_sk NOT IN (15,18,19,20,21,22,23,25,28,38,34,36,42,32)
  69. ORDER BY Facility]]></query>  
  70.         <live><![CDATA[false]]></live>
  71.       </component-definition>
  72.     </action-definition>
  73.  
  74.     <actions loop-on="query_result">
  75.       <action-definition>
  76.         <component-name>TemplateComponent</component-name>
  77.         <action-type>Message Template</action-type>
  78.         <action-inputs>
  79.           <date_init type="string"/>  
  80.           <Facility type="string"/>
  81.         </action-inputs>
  82.         <action-resources/>
  83.         <action-outputs>
  84.           <output-message type="string" mapping="messagebodytext"/>
  85.         </action-outputs>
  86.         <component-definition>
  87.           <template><![CDATA[Greetings {Facility},
  88.  
  89. Attached is your Daily Labor Control Report for {date_init}.
  90. Please review it with Adobe Acrobat and add comments as requested by your Regional Director.  
  91.  
  92. Latest news from the analysis front:
  93.  
  94. We are close to our next release of the Labor Control Report.  We are making an effort to improve the understandabilty of the PPD calculations along with other enhancements.
  95.  
  96. To make feedback extra easy, if you reply to this email, the response will go immediately to both David and Brandon.  We thank you again for helping us make this a wonderful tool for you.  Thank you for your feedback.  We are always listening and contemplating how to improve our service.
  97.  
  98. Have a great day,
  99.  
  100. The Stonegate Business Analysis Team
  101.  
  102.  
  103. ---------------------------------------------------------
  104. Change log:
  105.  
  106. Current version April 20, 2010
  107. * AHT Census pulls are now fully automated.
  108.  
  109. Version April 6, 2010
  110. * Budgeted census numbers restored
  111.    - now shows budget for the day & ADC for the year
  112. * Average daily census for the current period is shown.
  113. * Formatting / answers presented in a unified fashion from top to bottom
  114.  
  115. Version Wednesday March 31, 2010
  116. * Budgeted census removed for revision
  117.    - Through review and feedback we learned that it would be more helpful
  118.       to show the budgeted census for the day and period, as opposed to just
  119.       showing the average daily census for the year
  120.       (ie: Total annual census days/365).  We will bring this feature back soon.
  121.  
  122. Version released Monday March 29, 2010:
  123. * Budgeted census days shown at the top of the page.
  124.    = Total Annual Days / 365
  125. * Facility totals shown on last page.]]></template>
  126.         </component-definition>
  127.       </action-definition>
  128.  
  129.       <action-definition>
  130.         <component-name>TemplateComponent</component-name>
  131.         <action-type>Send To: Admin + Executive Dir</action-type>
  132.         <action-inputs>
  133.           <adminemail type="string"/>  
  134.           <execemail type="string"/>
  135.         </action-inputs>
  136.         <action-outputs>
  137.           <output-message type="string" mapping="adminandexec"/>
  138.         </action-outputs>
  139.         <component-definition>
  140.           <template><![CDATA[{adminemail}, {execemail}]]></template>
  141.         </component-definition>
  142.       </action-definition>
  143.  
  144.       <action-definition>
  145.         <component-name>SimpleReportingComponent</component-name>
  146.         <action-type>Run the daily labor control with paramters</action-type>
  147.         <action-inputs>
  148.           <facility_list type="long"/>  
  149.           <date_init type="string"/>
  150.         </action-inputs>
  151.         <action-resources>
  152.           <report-definition type="resource"/>
  153.         </action-resources>
  154.         <action-outputs>
  155.           <outputstream type="content" mapping="finishedReport"/>
  156.         </action-outputs>
  157.         <component-definition>
  158.           <useContentRepository><![CDATA[true]]></useContentRepository>  
  159.           <outputType><![CDATA[application/pdf]]></outputType>
  160.         </component-definition>
  161.       </action-definition>
  162.  
  163.       <action-definition>
  164.         <component-name>EmailComponent</component-name>
  165.         <action-type>E-Mail reports to administrators</action-type>
  166.         <action-inputs>
  167.           <finishedReport type="content"/>  
  168.           <message-plain type="string" mapping="messagebodytext"/>  
  169.           <cc type="string" mapping="RDOemail"/>  
  170.           <to type="string" mapping="adminandexec"/>  
  171.           <subject type="string" mapping="Facility"/>
  172.         </action-inputs>
  173.         <component-definition>
  174.           <from><![CDATA[biserver@stonegateseniorcare.com]]></from>  
  175.           <attachment-ref name-param="attach_name_1" input-param="finishedReport"/>  
  176.           <attach_name_1><![CDATA[DLC.pdf]]></attach_name_1>  
  177.           <bcc><![CDATA[bjackson@stonegateseniorcare.com, dtruty@stonegateseniorcare.com]]></bcc>
  178.         </component-definition>
  179.       </action-definition>
  180.  
  181.     </actions>
  182.  
  183.   </actions>
  184. </action-sequence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement