The terminal closes by it owns when an exception were thrown. If no exception throw, the terminal doesn’t close. Looks like it is a bug. Any idea on this?
Could you please share the Studio version and what terminal are you using?
I have exactly the same problem, i use AS400 Terminal Connection through IBM Personal Communication, with Studio version 2018.2.4.
It’s really annoying, because I had to throw a lot of Business Rule Exceptions to indicate transactions that need manual modification, and as soon as I throw new BusinessRuleException in a workflow (that is invoked inside a try-catch block), the terminal closes itself and the terminal connection is suddenly lost, despite I have to use the terminal connection during the rest of the process.
Could you please give me a solution for this problem?