The Initialize method customizes the Tasks Java™Server Pages (JSP) page in preparation for use by the Tasks operation, including identifying the Tasks queue to open and which tasks in the queue to display, and specifying a title for the page.
void spITasksCmd->Initialize(_bstr_t bstrPageTitle, QueueNames enQueueName, QueueTypes enQueueType);
eQueueNameInbox
, to list the contents of the Inbox Tasks
queue.eQueueTypeUser
, to only display tasks for the current user.... // 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);...