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 Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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)
      java.util.Optional<E> evaluateInput​(T toEvaluate, K context)
      Produce one EfestoOutput from the given EfestoInput
      org.kie.efesto.common.api.cache.EfestoClassKey getEfestoClassKeyIdentifier()  
      java.lang.String getModelType()
      Return the model type that the RuntimeService handles
    • 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

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

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