/* ======================================================================================= "This sample program is provided AS IS and may be used, executed, copied and modified without royalty payment by customer (a) for its own instruction and study, (b) in order to develop applications designed to run with an IBM WebSphere product, either for customer's own internal use or for redistribution by customer, as part of such an application, in customer's own products." Product 5655-FLW, (C) COPYRIGHT International Business Machines Corp., 2006, 2010 All Rights Reserved * Licensed Materials - Property of IBM ======================================================================================= */ package bpc.samples.command; import java.util.Iterator; import java.util.List; import java.util.logging.Logger; import bpc.samples.CustomException; import bpc.samples.ServiceFactory; import bpc.samples.bean.CustomTaskInstanceBean; import bpc.samples.handler.CustomTaskMessageHandler; import com.ibm.bpc.clientcore.ClientException; import com.ibm.bpc.clientcore.Command; import com.ibm.bpc.clientcore.MessageWrapper; import com.ibm.task.api.ClientObjectWrapper; import com.ibm.task.api.HumanTaskManagerService; /** * SaveTaskCommand will complete task instances provided in the execute method * through the HumanTaskManagerService.save(..) method. Please refer to the * Human Task Manager API for more details. * *
Any output message must be provided by the containing object referenced in the * context attribute of the command tag, e.g a handler.
* *Any error during the execution will be wrapped in a CustomException. Add more * error handling here if wanted.
*/ public class SaveTaskCommand implements Command { static Logger logger = Logger.getLogger( "CustomClient" ) ; CustomTaskMessageHandler messageHandler = null; /**Executes the command on the selected objects.
*Usually the selected items are provided by an ItemProvider