NF8.2 Suspend workflow until commit
Feature: Suspend workflow until commit
Developer: Martin Schönbeck
Feature Ticket: IDEMPIERE-4186
Sponsor : Martin Schönbeck Beratungen GmbH
This feature allows to suspend a workflow upto the actual transaction is committed. It does not initiate a commit itself. Effectively it works like the normal wait with a time greater than 0 where the workflow processor restarts the workflow later, but here the workflow is restarted immediately after commit. It is activated by using a value of -1 in the wait action. This also ensures the workflow will be restarted by the workflow processor if it by any reason couldn't be continued after the commit.
This is especially useful before a jasperreport is to be started by a workflow to ensure it sees all changes done. Or if you want to send an e-mail you'll probably make sure the e-mail doesn't tell anything which may be rolled back due to later errors.