protected function action($deliveryExecution, $executionId, $isEndDate = false)
    {
        $this->getDeliveryStateService()->terminateExecution($deliveryExecution, [
            'reasons' =>[
                'category' => 'Technical'
            ],
            'comment' => $isEndDate
                ? 'The assessment was automatically terminated because end time expired.'
                : 'The assessment was automatically terminated.'
        ]);
        $this->report->add(Report::createSuccess('Execution terminated with success:'. $executionId ));
    }
protected function action($deliveryExecution, $executionId, $isEndDate = false)
    {
        $this->getDeliveryStateService()->terminateExecution($deliveryExecution, [
            'reasons' =>[
                'category' => 'Technical'
            ],
            'comment' => $isEndDate
                ? 'The assessment was automatically terminated because end time expired.'
                : 'The assessment was automatically terminated.'
        ]);
        $this->report->add(Report::createSuccess('Execution terminated with success:'. $executionId ));
    }
protected function action ( $ deliveryExecution , $ executionId , $ isEndDate = false ) { $ this -> getDeliveryStateService ( ) -> terminateExecution ( $ deliveryExecution , [ 'reasons' => [ 'category' => 'Technical' ] , 'comment' => $ isEndDate ? 'The assessment was automatically terminated because end time expired.' : 'The assessment was automatically terminated.' ] ) ; $ this -> report -> add ( Report :: createSuccess ( 'Execution terminated with success:' . $ executionId ) ) ; }
Terminate delivery execution

@param $deliveryExecution
@param $executionId
@param bool $isEndDate
@return mixed|void
@throws \common_exception_Error
Terminate delivery execution