- the problem originally was that never is derivation handling correctly to conditional forks and normal forks
- code was improed and handled for both forks at derivation types
In fact this issue is happening, this is happening when you use "selection" as the routing rule in your task. There were some fields that weren't well defined, I have fixed it and now it works fine.
When creating a subprocess, a new row is added to the APP_DELEGATION table,
which triggers the insert triggers and updates APP_CACHE_VIEW. However, after
derivating, new data is added to the new case and then the APP_DELEGATION was
not being updated. This fix it by adding one second to the init date so that
an update is forced in APP_DELEGATION which executes the triggers and updates
APP_CACHE_VIEW with the right data.