BUG 12768 Trigger after InputDocument step executes before input document is saved SOLVED

- Trigger after InputDocument step executes before input document is saved
- Adjustment in the app_data of input documents.
Merge pull request #2005 from hector-cortez/BUG-12768

BUG 12768 Trigger after InputDocument step executes before input document is saved SOLVED