Perform workflow transition through a method

We want to perofrm workflow transitions through a method in backend.
Use case: need to close a resolved support ticket, if it is not verified by user for more than 2 days. We have a custom workflow for support tickets, that has states of Open, Resolved and Closed. How do we move the ticket from Resolved state to Closed state from scheudker hooks? Any api/methods available?

@kirthi, you only need use frappe.db.set_value('DocType', docname, 'workflow_state', value) to perform transitions

@max_morais_dmm Thanks a lot! It worked.