src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java
public <TArg0, TArg1> StateConfiguration<S, T> permitDynamic(
            TriggerWithParameters2<TArg0, TArg1, T> trigger,
            Func3<TArg0, TArg1, S> destinationStateSelector, Action2<TArg0, TArg1> action) {
        return permitDynamicIf(trigger, destinationStateSelector, NO_GUARD, action);
    }
public <TArg0, TArg1> StateConfiguration<S, T> permitDynamic(
            TriggerWithParameters2<TArg0, TArg1, T> trigger,
            Func3<TArg0, TArg1, S> destinationStateSelector, Action2<TArg0, TArg1> action) {
        return permitDynamicIf(trigger, destinationStateSelector, NO_GUARD, action);
    }
Accept the specified trigger and transition to the destination state, calculated dynamically by the supplied
function
<p>
Additionally a given action is performed when transitioning. This action will be called after
the onExit action and before the onEntry action (of the re-entered state). The parameters of the
trigger will be given to this action.

@param trigger                  The accepted trigger
@param destinationStateSelector Function to calculate the state that the trigger will cause a transition to
@param action                   The action to be performed "during" transition
@param <TArg0>                  Type of the first trigger argument
@param <TArg1>                  Type of the second trigger argument
@return The receiver