public function resolveOperation($operationName, $context)
    {
        if (!isset($this->operations[$operationName])) {
            throw new FlowQueryException('Operation "' . $operationName . '" not found.', 1332491837);
        }

        foreach ($this->operations[$operationName] as $operationClassName) {
            /** @var OperationInterface $operation */
            $operation = $this->objectManager->get($operationClassName);
            if ($operation->canEvaluate($context)) {
                return $operation;
            }
        }
        throw new FlowQueryException('No operation which satisfies the runtime constraints found for "' . $operationName . '".', 1332491864);
    }
public function resolveOperation($operationName, $context)
    {
        if (!isset($this->operations[$operationName])) {
            throw new FlowQueryException('Operation "' . $operationName . '" not found.', 1332491837);
        }

        foreach ($this->operations[$operationName] as $operationClassName) {
            /** @var OperationInterface $operation */
            $operation = $this->objectManager->get($operationClassName);
            if ($operation->canEvaluate($context)) {
                return $operation;
            }
        }
        throw new FlowQueryException('No operation which satisfies the runtime constraints found for "' . $operationName . '".', 1332491864);
    }
public function resolveOperation ( $ operationName , $ context ) { if ( ! isset ( $ this -> operations [ $ operationName ] ) ) { throw new FlowQueryException ( 'Operation "' . $ operationName . '" not found.' , 1332491837 ) ; } foreach ( $ this -> operations [ $ operationName ] as $ operationClassName ) { /** @var OperationInterface $operation */ $ operation = $ this -> objectManager -> get ( $ operationClassName ) ; if ( $ operation -> canEvaluate ( $ context ) ) { return $ operation ; } } throw new FlowQueryException ( 'No operation which satisfies the runtime constraints found for "' . $ operationName . '".' , 1332491864 ) ; }
Resolve an operation, taking runtime constraints into account.

@param string      $operationName
@param array|mixed $context
@throws FlowQueryException
@return OperationInterface the resolved operation
Resolve an operation taking runtime constraints into account .