This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Working with Templates via Tooling
You can create a new template or import an existing template from the file system using WSO2 EI tooling.Â
You need to have WSO2 EI tooling installed to create a new template or to import an existing template via tooling. For instructions on installing WSO2 EI tooling, see Installing Enterprise Integrator Tooling.
Creating a template
Follow these steps to create a new scheduled task. Alternatively, you can import an existing template.
- In Eclipse, click the Developer Studio menu and then click Open Dashboard. This opens the Developer Studio Dashboard.
- Click Template on the Developer Studio Dashboard.
- Leave the first option selected and click Next.
- Type a unique name for the template and specify the type of template you are creating.
- Do one of the following:
- To save the template in an existing ESB Config project in your workspace, click Browse and select that project.
- To save the template in a new ESB Config project, click Create new Project and create the new project.
- If you specified an address or WSDL endpoint as the template type, enter the URL for the address or the WSDL URI and connection information in the Advanced Configuration fields.
- Click Finish. The template is created in theÂ
src/main/synapse-config/templates
 folder under the ESB Config project you specified. When prompted, you can open the file in the editor, or you can right-click the template in the project explorer and click Open With > ESB Editor. Click its icon in the editor to view its properties.
Importing a template
Follow these steps to import an existing template into an ESB Config project. Alternatively, you can create a new template.
- In Eclipse, click the Developer Studio menu and then click Open Dashboard. This opens the Developer Studio Dashboard.
- Click Template on the Developer Studio Dashboard.
- Select Import a Template and click Next.
- Specify the XML file that defines the template by typing its full path name or clicking Browse and navigating to the file.
- In the Save Template In field, specify an existing ESB Config project in your workspace where you want to save the template, or click Create new Project to create a new ESB Config project and save the template configuration there.
- If there are multiple template definitions in the file, click Create ESB Artifacts, and then select the templates you want to import.
- Click Finish. The templates you selected are created in the subfolders of theÂ
src/main/synapse-config/templates
 folder under the ESB Config project you specified, and the first template appears in the editor.