Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
Issue 1, 2015
Welcome to another Hidden Gem, where we will highlight a lesser-known but valuable feature of the webMethods suite. There are many such hidden gems that you might not have stumbled upon in training or documentation. These gems could make your life easier or your implementation even better. This edition’s hidden gem is automating scheduled task creation in webMethods Integration Server.
To set up the service as shown in Figure 4, first invoke pub.scheduler:getTaskIDs to get the list of task IDs. Then create a loop step that has taskIDs as its input array. Within the loop, invoke pub.scheduler:getTaskInfo, mapping taskIDs to taskID (see Figure 4). Next, still within the loop, add a branch statement and set service as the switch variable. Within the branch, invoke pub.scheduler:cancelTask, with the service that was scheduled as the Label property (in this example it was myPackage.services:workService).