Interface KieRuntimeService<S,​U,​T extends EfestoInput<S>,​E extends EfestoOutput<U>,​K extends EfestoRuntimeContext>


  • public interface KieRuntimeService<S,​U,​T extends EfestoInput<S>,​E extends EfestoOutput<U>,​K extends EfestoRuntimeContext>
    The compilation-related interface to be implemented by engine-plugin. It will be looked for with SPI, so each engine should declare that implementation inside src/main/resources/META-INF/services/org.kie.efesto.runtimemanager.api.service.KieRuntimeService file
    • Method Detail

      • getEfestoClassKeyIdentifier

        org.kie.efesto.common.api.cache.EfestoClassKey getEfestoClassKeyIdentifier()
      • canManageInput

        boolean canManageInput​(EfestoInput toEvaluate,
                               K context)
        Every engine is responsible to verify if it can evaluate a result with the resource of the given T (that contains a specific LocalUri)
        Parameters:
        toEvaluate -
        context -
        Returns:
      • evaluateInput

        Optional<E> evaluateInput​(T toEvaluate,
                                  K context)
        Produce one EfestoOutput from the given EfestoInput
        Parameters:
        toEvaluate -
        context -
        Returns:
      • getModelType

        String getModelType()
        Return the model type that the RuntimeService handles
        Returns:
        model type