(self, model, *args, **kwargs)
return self.machine._process(func)
Executes all transitions that match the current state,
        halting as soon as one successfully completes. More precisely, it prepares a partial
        of the internal ``_trigger`` function, passes this to ``Machine._process``.
        It is up to the machine's configuration of the Event whether processing happens queued (sequentially) or
        whether further Events are processed as they occur.
        Args:
            model (object): The currently processed model
            args and kwargs: Optional positional or named arguments that will
                be passed onto the EventData object, enabling arbitrary state
                information to be passed on to downstream triggered functions.
        Returns: boolean indicating whether or not a transition was
            successfully executed (True if successful, False if not).
Executes all transitions that match the current state,
        halting as soon as one successfully completes. More precisely, it prepares a partial
        of the internal ``_trigger`` function, passes this to ``Machine._process``.
        It is up to the machine's configuration of the Event whether processing happens queued (sequentially) or
        whether further Events are processed as they occur.
        Args:
            model (object): The currently processed model
            args and kwargs: Optional positional or named arguments that will
                be passed onto the EventData object, enabling arbitrary state
                information to be passed on to downstream triggered functions.
        Returns: boolean indicating whether or not a transition was
            successfully executed (True if successful, False if not).
Executes all transitions that match the current state halting as soon as one successfully completes . More precisely it prepares a partial of the internal _trigger function passes this to Machine . _process . It is up to the machine s configuration of the Event whether processing happens queued ( sequentially ) or whether further Events are processed as they occur . Args : model ( object ) : The currently processed model args and kwargs : Optional positional or named arguments that will be passed onto the EventData object enabling arbitrary state information to be passed on to downstream triggered functions . Returns : boolean indicating whether or not a transition was successfully executed ( True if successful False if not ) .
def trigger(self, model, *args, **kwargs):
        """ Executes all transitions that match the current state,
        halting as soon as one successfully completes. More precisely, it prepares a partial
        of the internal ``_trigger`` function, passes this to ``Machine._process``.
        It is up to the machine's configuration of the Event whether processing happens queued (sequentially) or
        whether further Events are processed as they occur.
        Args:
            model (object): The currently processed model
            args and kwargs: Optional positional or named arguments that will
                be passed onto the EventData object, enabling arbitrary state
                information to be passed on to downstream triggered functions.
        Returns: boolean indicating whether or not a transition was
            successfully executed (True if successful, False if not).
        """
        func = partial(self._trigger, model, *args, **kwargs)
        # pylint: disable=protected-access
        # noinspection PyProtectedMember
        # Machine._process should not be called somewhere else. That's why it should not be exposed
        # to Machine users.
        return self.machine._process(func)
def trigger ( self , model , * args , * * kwargs ) : func = partial ( self . _trigger , model , * args , * * kwargs ) # pylint: disable=protected-access # noinspection PyProtectedMember # Machine._process should not be called somewhere else. That's why it should not be exposed # to Machine users. return self . machine . _process ( func )