def do_transition(self, comment, transition, user):
        try:
            if transition in self.get_current_state().origin_transitions.all():
                self.log_entries.create(
                    comment=comment, transition=transition, user=user
                )
        except __HOLE__:
            # No initial state has been set for this workflow
            pass
dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/document_states/models.py/WorkflowInstance.do_transition