// Create the task, specifying the name of the server
// operation to invoke:
final TimerTask task = new TimerTask();
task.methodName =
"curam.core.facade.intf.ProductDelivery.close";
// This operation takes one struct parameter,
// so instantiate the struct and add it to the task:
final curam.core.facade.struct.CloseCaseDetails caseDetails
= new curam.core.facade.struct.CloseCaseDetails();
caseDetails.caseID = 12345;
task.argument = caseDetails;
// Start off the timer, specifying that it invokes the
// method in 10 seconds time:
final long timerID = TimerInfo.startTask(10000, task);
// Every timer is assigned a unique ID which can be used
// to manipulate it and also to help track the timer
// in any diagnostic logs.
System.out.println("Created a timer with ID " + timerID);