public function execute(Campaign $campaign, array $contactIdList, $batchLimit = 100)
    {
        $limiter = new ContactLimiter($batchLimit, null, null, null, $contactIdList);

        // Make sure these events show up as system triggered for summary counts to be accurate.
        defined('MAUTIC_CAMPAIGN_SYSTEM_TRIGGERED') or define('MAUTIC_CAMPAIGN_SYSTEM_TRIGGERED', 1);

        /** @var Counter $counter */
        $counter = $this->kickoffExecutioner->execute($campaign, $limiter);

        // All events not included in the kickoff are scheduled or decisions waiting on input.

        return $counter;
    }
public function execute(Campaign $campaign, array $contactIdList, $batchLimit = 100)
    {
        $limiter = new ContactLimiter($batchLimit, null, null, null, $contactIdList);

        // Make sure these events show up as system triggered for summary counts to be accurate.
        defined('MAUTIC_CAMPAIGN_SYSTEM_TRIGGERED') or define('MAUTIC_CAMPAIGN_SYSTEM_TRIGGERED', 1);

        /** @var Counter $counter */
        $counter = $this->kickoffExecutioner->execute($campaign, $limiter);

        // All events not included in the kickoff are scheduled or decisions waiting on input.

        return $counter;
    }
public function execute ( Campaign $ campaign , array $ contactIdList , $ batchLimit = 100 ) { $ limiter = new ContactLimiter ( $ batchLimit , null , null , null , $ contactIdList ) ; // Make sure these events show up as system triggered for summary counts to be accurate. defined ( 'MAUTIC_CAMPAIGN_SYSTEM_TRIGGERED' ) or define ( 'MAUTIC_CAMPAIGN_SYSTEM_TRIGGERED' , 1 ) ; /** @var Counter $counter */ $ counter = $ this -> kickoffExecutioner -> execute ( $ campaign , $ limiter ) ; // All events not included in the kickoff are scheduled or decisions waiting on input. return $ counter ; }
Kicks off real-time campaign events for a single contact.

@param Campaign $campaign
@param array    $contactIdList
@param int      $batchLimit

@return Counter

@throws \Mautic\CampaignBundle\Executioner\Dispatcher\Exception\LogNotProcessedException
@throws \Mautic\CampaignBundle\Executioner\Dispatcher\Exception\LogPassedAndFailedException
@throws \Mautic\CampaignBundle\Executioner\Exception\CannotProcessEventException
@throws \Mautic\CampaignBundle\Executioner\Scheduler\Exception\NotSchedulableException
Kicks off real - time campaign events for a single contact .