<?xml version="1.0" encoding="UTF-8"?>
<action-sequence> 
  <title>%title</title>
  <version>1</version>
  <logging-level>ERROR</logging-level>
  <documentation> 
    <author>Doug Moran</author>  
    <description>%description</description>  
    <help/>  
    <result-type>none</result-type>  
    <icon>BurstShark.png</icon> 
  </documentation>

  <inputs/>

  <outputs/>

  <resources/>
  
  <actions> 
    <action-definition> 
      <component-name>SQLLookupRule</component-name>
      <action-type>SQL Query</action-type>
      <action-outputs> 
        <query-result type="result-set" mapping="rule-result"/>  
        <REGION type="string"/>  
        <EMAIL type="string"/>  
        <MANAGER_NAME type="string"/> 
      </action-outputs>
      <component-definition> 
        <jndi>SampleData</jndi>  
        <query><![CDATA[select distinct REGION, MANAGER_NAME, EMAIL from DEPARTMENT_MANAGERS]]></query> 
      </component-definition> 
    </action-definition>
  
    <actions loop-on="rule-result"> 
      <action-definition> 
        <component-name>SharkWorkflowComponent</component-name>
        <action-type>Workflow Request</action-type>
        <action-inputs> 
          <REGION type="string"/>  
          <EMAIL type="string"/>  
          <MANAGER_NAME type="string"/> 
        </action-inputs>
        <component-definition> 
          <package-name>BurstingExamples</package-name>  
          <process-name>GenReportAndEmail</process-name>  
          <new-instance>true</new-instance> 
        </component-definition> 
      </action-definition>
 
    </actions>
 
  </actions> 
</action-sequence>