We have a certain situation where the current named user shall be logged out and be logged in as a different user. The problem is, that this results in an illegal task state. Code in the script step:
Exception:
Is there a way to avoid this behavoir? Xpert.ivy 4.3. - error occurs on Designer & Server level. asked 15.05.2014 at 11:30 Nikel Weis |
If you login a session user all tasks that were resumed by the session are reset. This also includes the current task that executes the script step with the login statements. To avoid this use the overloaded method that takes an additional third parameter an provide it the identifier of the current task. E.g.
In this case all tasks that were resumed by the session are reset except the one with the given id. answered 15.05.2014 at 17:41 Reto Weiss ♦♦ Thanks. The API was not quite clear on the effect of this parameter. Works like a charm.
(16.05.2014 at 08:58)
Nikel Weis
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 15.05.2014 at 11:30
Seen: 2,632 times
Last updated: 16.05.2014 at 08:58