...
- Task Name - Name of a scheduled task.
- Task Group - The group name to grouping tasks. The group name
synapse.simple.quartz
belongs to ESB - Synapse. All available groups are displayed as a drop-down menu. If there are tasks belong to some other domains, for example WSO2 Mashups tasks, then those will be shown here as a separate group names. - Task Implementation - The implementation class of the task. To use the default task implementation that is available with the ESB (and therefore can be used without downloading any third-party libraries or custom JARs), specify
org.apache.synapse.startup.tasks.MessageInjector
. This class simply injects a specified message into the Synapse environment at ESB startup. For more information on writing custom task implementations, see Writing Tasks. - Trigger Type- Trigger type for the task. This can be selected as either "Simple" or "Cron."
- Simple Trigger - Defined by specifying a
count
and aninterval
, implying that the task will run acount
number of times at specified intervals.- Count - The number of times the task will be executed.
- Interval - The interval between consecutive executions of a task.
- Cron Trigger - Defined using a cron expression.
- Simple Trigger - Defined by specifying a
- Pinned Servers - This field allows you to pin a scheduled task to a subset of nodes in a cluster. Specify a list of ESB server names so that the task will get deployed only on the specified set of servers.
7. Click Load Task Properties to see the instance properties of the task implementation.
...
Code Block |
---|
<task class="string" name="string" [group="string"] [pinnedServers="(serverName)+"]>
<property name="string" value="String"/>
<property name="string"><somexml>config</somexml></property>
<trigger ([[count="int"]? interval="int"] | [cron="string"] | [once=(true | false)])/>
</task>
|
...