You can create a new scheduled task or to import an existing scheduled task from the file system using WSO2 EI tooling.
You need to have WSO2 EI tooling installed to create a new task or to import an existing task via tooling. For instructions on installing WSO2 EI tooling, see Installing Enterprise Integrator Tooling.
Creating a new scheduled task
Follow these steps to create a new scheduled task. Alternatively, you can import an existing scheduled task.
- In Eclipse, click the Developer Studio menu and then click Open Dashboard. This opens the Developer Studio Dashboard.
- Click Scheduled Task on the Developer Studio Dashboard.
- Leave the first option selected and click Next.
- Type a unique name for this scheduled task and specify the group, implementation class, and other options. For more information, see Adding and Scheduling Tasks.
- Do one of the following:
- To save the task in an existing ESB Config project in your workspace, click Browse and select that project.
- To save the task in a new ESB Config project, click Create new ESB Project and create the new project.
- Click Finish. The scheduled task is created in the
src/main/synapse-config/tasks
folder under the ESB Config project you specified. When prompted, you can open the file in the editor, or you can right-click the task in the project explorer and click Open With > ESB Editor. Click its icon in the editor to view its properties.
Importing a scheduled task
Follow these steps to import an existing scheduled task into an ESB Config project. Alternatively, you can create a new scheduled task.
- In Eclipse, click the Developer Studio menu and then click Open Dashboard. This opens the Developer Studio Dashboard.
- Click Scheduled Task on the Developer Studio Dashboard.
- Select Import Scheduled Task Artifact and click Next.
- Specify the XML file that defines the scheduled task by typing its full pathname or clicking Browse and navigating to the file.
- In the Save Task In field, specify an existing ESB Config project in your workspace where you want to save the task, or click Create new ESB Project to create a new ESB Config project and save the task configuration there.
- If there are multiple tasks definitions in the file, click Create ESB Artifacts, and then select the tasks you want to import.
- Click Finish. The tasks you selected are created in the subfolders of the
src/main/synapse-config/tasks
folder under the ESB Config project you specified, and the first task appears in the editor.