Simon Prinsloo
13 posts
Registered:
20 Feb 2019
27 Nov 2020
in reply to
Mike Fechner
Link to this post
The difference in the handling is on the caller's (ServiceAdapter) side.
proSIinvokeTaskAsync.p is the entry point on the AppServer, thus it can catch the error and/or throw an error, which will have the effect of setting the ERROR and ERROR-OBJECT attributes on the Asynchronous request object handle (SELF in the response procedure) in the caller's session.
Personally I see no purpose in having proSIinvokeTaskAsync.p, as proSIinvokeTask.p would work just as well for asynchronous calls too, as long as the response procedure defines corresponding INUT parameters of every OUTPUT or INPUT-OUTPUT parameter defined by proSIinvokeTask.p.