This method cancels a transaction within the function, reverting the database to its earlier state.
When using a transactional database, which are retrieved using the methods
orient.getDatabase() and not
orient.getGraphNoTx(), you can manage transactions within your functions. You may find this useful in situations where you want the function to rollback operations when it encounters conflicts or similar problems.