Question
6
Replies
1610
Views

Knowledge Expert
FR
Posted: December 14, 2018
Last activity: January 4, 2019
Last activity: 4 Jan 2019 7:15 EST
Closed
Automatic commit doesn't happen on end of Utility or Flow
I have following setup:
Case Type with 3 Stages:
- On 1st I have an assignment with post activity where I do Obj-Save (without write now) on some Data Type
- On 2nd I'm checking that Data Type, using Data Page, and based on the check - skip or no few steps
- On 3rd - another assignment (doesn't matter what)
Problem that after post activity on 1st step instance of Data Type hasn't got committed to database. It got committed only before Assignment on 3rd step, so check on 2nd step failed. I can see it clearly from Tracer.
Why is it so? As far as I know Pega should commit everything automatically after every Utility shape, Assignment and end of flow.