I have a task on a subject which cannot always be executing, depending on the input parameters. I want to inform the user as early as possible that the task cannot be executed, and cancel the task. What is the easiest way to achieve this?
The only thing I can imagine is having two tasks defined and connected via a process flow. In the process code for the first (dummy) task the cancel-check is done without showing the task dialog (all parameters hidden). If the task cannot be executed, the user will see a tsf_send_message and the proces flow ends. If the task can be executed, it can continue to the next task in the process flow which shows the task with input parameters. The users then confirms with "Execute".
But is there an easier way without using process flows? I was thinking of the default concept, but I don't know how to cancel the task (close the task window, or not even show it).
Best answer by René W
View original