OnStartTask in UIP v 2.0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I'm using UIPAB v 2.0 in a Windows application. Following the UIP
documentation I'm trying to "nest" two tasks. As I need to pass data between
those two tasks, I;m using the OnStartTask method. This is what the
documentation say about nesting tasks, using that method:
"When the Add New Shipping Address process is ready to return, retrieve the
TaskId for the Purchase Product process, which is stored in the current
task's state, and invoke the OnStartTask method, passing the name of the
navigator, the new address, and the original TaskId. If the task state for
the specified task is found, the current view for that task is displayed."

The problem is that the OnStartTask method requires an Itask implementation
as its third argument and not plainly the TaskId. Should I implement the
ITask just for the sake of resuming a suspended task?

Thanks,
Gwenda
 
Hi Gwenda,

We have reviewed this post, and will do some research on this issue. We
will reply to you ASAP. Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Gwenda,

Sorry for letting you wait for so long.

Based on my understanding, you want to pass the TaskID to the OnStartTask
method through the third parameter of this method with ITask type. You want
to know if we have to implement this interface ourselves.

Yes, we should implement a ITask ourselves to provide the ability, this is
document in the following "Note":

Note The task and taskId parameters are required only when you start a
previously suspended task. These parameters are relevant only if you have
implemented the ITask interface to provide the ability to suspend and
restart tasks. For more information about implementing the ITask interface,
see "Implementing the ITask Interface," in Appendix A, "Extending the UIP
Application Block."

Just as the document stated, you should refer to "Implementing the ITask
Interface," in Appendix A, "Extending the UIP Application Block." to get a
guide about how to implement ITask.

Hope this helps.
=======================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top