Skip to Content

Check Running Mode programmatically in scripting languages console HAC

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 04, 2018 at 07:15 PM

    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.

    alt text


    11525-groovy.png (26.2 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 13, 2018 at 07:01 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.