We are currently sending reports out via email to a variety of recipients and successfully passing parameters from a sql query (ie, email address, email attachment name, Subject Line etc). In the sql query we also maintain format based on the way a email recipient indicated they want to receive the report (pdf, xls, csv etc). However, I cannot find where in the action sequence to pass this parameter. The reports always use the default setting. How can I pass a parameter containing the output type and produce the report in the recipient’s desired format?

<inputs>
<output-type type="string">
<default-value>pdf</default-value>
</output-type>
</inputs>
<actions>
<action-definition>
<component-name>SQLLookupRule</component-name>
<action-type>Query For Subscribers</action-type>
<action-outputs>
<query-result type="result-set" mapping="burst-data"/>
<CO_NBR type="string"/>
<C_NAME type="string"/>
<EMAIL type="string"/>
</action-outputs>

</component-definition>
</action-definition>

<actions loop-on="burst-data">
<action-definition>
<component-name>UtilityComponent</component-name>
<action-type>Format The Email Attach Name</action-type>
<action-inputs>
<output-type type="string"/>
<CO_NBR type="string"/>
</action-inputs>

<action-outputs>
<formatted_msg type="string" mapping="attach-name"/>
</action-outputs>
<component-definition>
<format>
<format-string>%filename-msg</format-string>
<return>formatted_msg</return>
<arg>output-type</arg>
<arg>CO_NBR</arg>
</format>
</component-definition>
</action-definition>

<action-definition>
<component-name>UtilityComponent</component-name>
<action-type>Format The Email Subject</action-type>
<action-inputs>
<C_NAME type="string"/>
</action-inputs>
<action-outputs>
<formatted_msg type="string" mapping="subject"/>
</action-outputs>
<component-definition>
<format>
<format-string>%subject-msg</format-string>
<return>formatted_msg</return>
<arg>C_NAME</arg>
</format>
</component-definition>
</action-definition>

<action-definition>
<component-name>UtilityComponent</component-name>
<action-type>Format The Email Msg</action-type>
<action-inputs>
<subject type="string"/>
</action-inputs>
<action-outputs>
<formatted_msg type="string" mapping="message-html"/>
</action-outputs>
<component-definition>
<format>
<format-string>%message-msg</format-string>
<arg>subject</arg>
<return>formatted_msg</return>
</format>
</component-definition>
</action-definition>

<action-definition>
<component-name>UtilityComponent</component-name>
<action-type>Print Parameters</action-type>
<action-inputs>
<print-prefix type="string"/>
<subject type="string"/>
</action-inputs>
<component-definition>
<print>
<delimiter>" - "</delimiter>
<arg>print-prefix</arg>
<arg>subject</arg>
</print>

</component-definition>
</action-definition>

</component-definition>
</action-definition>

<action-definition>
<component-name>JFreeReportComponent</component-name>
<action-type>Create The Report</action-type>
<action-inputs>
<data type="result-set" mapping="reportData"/>
<output-type type="string"/>
</action-inputs>
<action-resources>
<report-definition type="resource"/>
</action-resources>
<action-outputs>
<report-output type="content" mapping="reportOutput"/>
</action-outputs>
<component-definition/>
</action-definition>

<action-definition>
<component-name>EmailComponent</component-name>
<action-type>Email</action-type>
<action-inputs>
<from type="string"/>
<subject type="string"/>
<message-html type="string"/>
<to type="string" mapping="EMAIL"/>
<attach-name type="string"/>
<reportOutput type="content"/>
</action-inputs>
<component-definition>
<attachment-ref name-param="attach-name" input-param="reportOutput"/>
</component-definition>
</action-definition>

</actions>
</actions>
</action-sequence>