cancel
Showing results for 
Search instead for 
Did you mean: 

Check Running Mode programmatically in scripting languages console HAC

0 Kudos

Hello All, I need to check commit mode programmatically in a groovy script before run main part of a groovy script. How is that possible?

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

If you want the results to be persisted always you can use Transaction.current().commit() in the end of your script. It works with rollback and commit mode the same

former_member620692
Active Contributor
0 Kudos

You do not need to check the commit mode. As long as ROLLBACK button is displayed, results will not be persisted. If you want the results to be persisted, you need to change the button from ROLLBACK to COMMIT by clicking it.