How to transmit parameters to Rules Component upon using Rules Scheduler programmatically? Now I'm trying to create a Rules Scheduler task programmatically.

I've created a Rules Action with parameters and callback, also I've created a Rules Component with this Rules Action.

But upon trying to create the Rules Scheduler task programmatically I can't transmit it parameters for the Rules Component.

I'm using code, found here.

$now = new DateTime();
    $component = 'yrv_invitation_coupon_test_rule';
    $task_id = $now-&gt;getTimestamp();

    rules_action('schedule', ['component' =&gt; $component])
        -&gt;executeByArgs([
            'date' =&gt; $now-&gt;getTimestamp()+10,
            'identifier' =&gt; $task_id,
            'param_uid' =&gt; 10,
            'param_rid' =&gt; 5,
        ]);


It works, but with default parameters.That is, executed Action in the Component can't get param "uid" with value = 10 and param "rid" with value = 5. 

Could ou clarify me, how can I assign parameters ?

Here's my Action

$actions['yrv_invitation_coupon_user_remove_role'] = [
        'label' =&gt; t('Remove a role assigned upon activation an invitation coupon'),
        'group' =&gt; t('System'),
        'base' =&gt; 'yrv_invitation_coupon_remove_role_callback',
        'parameter' =&gt; [
            'uid' =&gt; [
                'type' =&gt; 'integer',
                'label' =&gt; t('User ID'),
                'default value' =&gt; 1,
            ],
            'rid' =&gt; [
                'type' =&gt; 'integer',
                'label' =&gt; t('Role ID'),
                'default value' =&gt; 1,
            ]
        ],
    ];


And here's my Rule Component

$rule = rule();
    $rule-&gt;label = 'YRV Invitation coupon test Rule';
    $rule-&gt;class = 'Rule';
    $rule-&gt;action('yrv_invitation_coupon_user_remove_role', ['uid' =&gt; 1, 'rid' =&gt; 1]);
    $rule-&gt;active = TRUE;

    $configs['yrv_invitation_coupon_test_rule'] = $rule;
Fortunately, I managed to find the solution.

Namely, a Rule component should be created such way.

function yrv_invitation_coupon_default_rules_configuration()
{
    $configs = [];

    $rule = rule([
        'uid' =&gt; [
            'type' =&gt; 'integer',
            'label' =&gt; t('User ID'),
        ],
        'rid' =&gt; [
            'type' =&gt; 'integer',
            'label' =&gt; t('Role ID'),
        ],
    ]);
    $rule-&gt;label = 'YRV Invitation coupon test Rule';
    $rule-&gt;class = 'Rule';
    $rule-&gt;action('yrv_invitation_coupon_user_remove_role', []);
    $rule-&gt;active = TRUE;

    $configs['yrv_invitation_coupon_test_rule'] = $rule;

    return $configs;
}