1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Action: rowTemplateAction

Allows a <row/> element from a StandardXML message to be used to populate the values of a template. Label substitution? is performed on the template prior to value replacement. Values in the template must be named {:element}, where "element" is the name of the <row/> sub-element from which the value will be taken.

Parameters

template
datetimeFormat Default is %Y-%m-%d.

Example

This example uses the <row/> from the element input message "current" to fill in the values of the template producing an output message labeled "template".

                <action name="actionActivity" id="00022"
                        extensionAttributes="DailyDamageNotice/00022">
                    <input property="template" formatter="StandardXML"/>                        
                    <output><source property="current"/></output>
                    <attributes xmlns="">
                        <extension name="activityName">rowTemplateAction</extension>    
                        <extension name="attachmentName"></extension>
                        <extension name="template">        Workorder: {:workorder} {:workorder_date}
        Customer:  {:customer_name}
        Billing Address:  Street: {:billing_street}
                          City:   {:billing_city}
                          State:  {:billing_state}
                          ZIP:    {:billing_zip}
                          Phone:  {:billing_phone}
        Equipment:  Make:  {:make}
                    Model: {:model}
                    S/N:   {:serial_number}
                    Unit#: {:unit_number}
        Segment: {:segment}  {:component}
                 Labor: {:labor_charges}
                 Parts: {:parts_charges}
                 Total: {:total_charges}

        To: $email1;,
            $email2;,
            $email3;

</extension>
                    </attributes>
                </action> 

References

The StandardXML format

Workflow Engine

Index