ITasksCmd Interface

The ITasksCmd interface is used to initialize the data contained in the Tasks command component, which displays FileNet Workplace Tasks Java™Server Pages (JSP) page to present a Tasks queue to the user. Using this interface, the client application can specify the page title, the Tasks queue to open, and which tasks in the queue to display.

After the Tasks command has been executed by calling IAppIntCmd::Invoke, a Tasks response component is returned. Client applications may interact with the response component via the standard IAppIntRsp or custom ITasksRsp interfaces.

COM Class ID

coclass TasksCmd {
[default] interface ITasksCmd;
interface IAppIntCmd;
};

Reference

DLL FnAppIntTasksCmd.dll

Methods

The ITasksCmd interface defines one method:

Method Description
Initialize

Customizes the Tasks JSP page in preparation for use by the Tasks operation, including specifying the page title, queue type to open and which tasks in the queue to display.

Example

The following is a fragment from the complete example for the Tasks command.

   ...
   // Instantiate the custom Tasks command component
   ITasksCmdPtr spITasksCmd;
hResult = spITasksCmd.CreateInstance(__uuidof(TasksCmd));
if (FAILED(hResult)) {
std::cout << "Could not create the Tasks command component.\n"; _ASSERTE(0);
} // Initialize the custom Tasks command component with the // page title, queue name and queue type. _bstr_t bstrPageTitle = (_T("Customized Tasks Operation")); QueueNames enQueueName = eQueueNameInbox; QueueTypes enQueueType = eQueueTypeUser; std::cout << "Initializing the Tasks command component..." << std::endl; spITasksCmd->Initialize(bstrPageTitle, enQueueName, enQueueType);
// Execute the Tasks command and capture the response component std::cout << "Executing the Tasks command..." << std::endl; IAppIntCmdPtr spIAppIntCmd(spITasksCmd);
IAppIntRspPtr spIAppIntRsp = spIAppIntCmd->Invoke(spIAppIntSession); ...