I have the following Data Flow Implementation in the action completeTask() of an “Item” task:
#{activePageBean.getByNo.refresh}
#{activePageBean.mytask.taskData.Item}=#{activePageBean.getByNo.result.producto}
#{activePageBean.mytask.applyChanges}
#{activePageBean.taskValidate.refresh}
#{activePageBean.mytask.completeTask}
#{activePageBean.cancelView}
The taskValidate webservice returns an exception when the validation is not Ok.
(This webservice checks data in various systems to validate the Item data and others auxiliar data is filled properly)
When the user presses the button “Complete” and the validation fails, the task is not completed and the user remains on the page (it is what I want), but my problem is that the exception is shown in the “Formatted Message” control for a few milliseconds and disappears (the user might not even view it and review the reason).
How can I keep this exception in the portlet?
Is there any other way to do this validation to avoid user complete the task until the systems stores the Item correctly?
#MWS-CAF-Task-Engine#webMethods#webMethods-BPMS