Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Importance of End activity in a workflow

Avatar

Level 5

Hi Team,

We often come across scenarios wherein workflows are getting in error state with the log 'no free disk space available'. After checking the database usage of the workflows we came to know that the workflows were not cleaned up (i.e their temp tables were not dropped and which was occupying unnecessary database space).

After looking into the workflows we came to know that, scheduled workflows terminated with end activity didn't appeared in the database usage list while others with no end activity had used the database space.

Please let me know whether adding end activity to the workflows will solve the 'no free disk space issue', or do we need to optimize the workflow design as well.

Currently the ACM v6.1 documentation does not give much in depth detail on end activity, it will be very helpful if you can give more insights on the same.

with regards,

Richa Chaubey

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Richa,

Thanks for your question. The storage of temp tables in a workflow is one of the biggest reasons for slow performance of Campaign and as a best practice you should use end activity to plug the loop in your workflow and let them finish.

By design , if you do not put an end activity in the workflow the workflow status remains == paused and for a paused workflow the last executed activity still stores the temporary tables on the DB. So it is always better to use a end activity in a workflow.

Also, you need to check for the option "keep the result of interim population between two executions" under workflow properties>General tab and make sure this is unchecked unless you are doing a test to see the interim data in the workflow. This option stores the temp tables generated all through the workflow and can easily overload the DB.

For best practices guide , please follow this link

BR,

Adhiyan

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

Hi Richa,

Thanks for your question. The storage of temp tables in a workflow is one of the biggest reasons for slow performance of Campaign and as a best practice you should use end activity to plug the loop in your workflow and let them finish.

By design , if you do not put an end activity in the workflow the workflow status remains == paused and for a paused workflow the last executed activity still stores the temporary tables on the DB. So it is always better to use a end activity in a workflow.

Also, you need to check for the option "keep the result of interim population between two executions" under workflow properties>General tab and make sure this is unchecked unless you are doing a test to see the interim data in the workflow. This option stores the temp tables generated all through the workflow and can easily overload the DB.

For best practices guide , please follow this link

BR,

Adhiyan

Avatar

Level 5

Hi Adhiyan,

Thanks for your reply,

Will the end activity drop the temp tables even when the workflows are in scheduled/signalled phase.

Because, in one of the workflow (in started mode) we had terminated with end activity but the database usage list still shows the temp tables with 0 MB space occupied.

with regards,

Richa Chaubey

Avatar

Level 3

Hi Richa,

Adhiyan has explained it well and it should resolve DB space issue. Can you please check "keep the result of interim population between two executions" is not checked for these scheduled/ Signal workflows. Also, all paths in your workflow has an end activity.