This documentation is for WSO2 Enterprise Integrator version 6.1.1 . View documentation for the latest release in the 6.x.x family and the latest release in the 7.x.x family.

All docs This doc

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

A Sequence Template is a parametrized sequence , providing an abstract or generic form of a sequence defined in the WSO2 Enterprise Integrator (WSO2 EI)the ESB profile. Parameters of a template are defined in the form of XPath statement/s. Callers can invoke the template by populating the parameters with static values/XPath expressions using the Call Template Mediator, which makes a sequence template into a concrete sequence.


The Call Template mediator points to the same template "HelloWorld_Logger" and passes different arguments to it. In this way, sequence templates make it easy to stereotype different workflows inside WSO2 EIthe ESB profile. 



Code Block
<template name="string">
   <!-- parameters this sequence template will be supporting -->
   <parameter name="string"/>
   ) *
   <!--this is the in-line sequence of the template     -->

The sequence template is a top-level element defined by the name attribute in WSO2 EI configurationthe ESB profile configuration. Both endpoint and sequence template starts with a template element.

The parameters available to configure the Sequence Template are as follows.

Parameter NameDescription
NameThe name of the Sequence Template
onErrorSelect the error sequence that needs to be invoked.
Trace EnabledWhether or not trace is to be enabled for the sequence.
Statistics EnabledWhether or not statistics is to be enabled for the sequence.
Template ParametersThe input parameter that are supported by this Sequence Template.

Sequence template parameters can be referenced using an XPath expression defined inside the in-line sequence. For example, the parameter named "foo" can be referenced by the Property mediator (defined inside the in-line sequence of the template) in the following ways:


Using function scope or "?func?" in the XPath expression allows us to refer to a particular parameter value passed externally by an invoker such as the Call Template mediator. 


Call Template Mediator

Include Page
Call Template Mediator
Call Template Mediator