Interface KieRuntimeService<S,U,T extends EfestoInput<S>,E extends EfestoOutput<U>>
-
public interface KieRuntimeService<S,U,T extends EfestoInput<S>,E extends EfestoOutput<U>>The compilation-related interface to be implemented by engine-plugin. It will be looked for with SPI, so each engine should declare that implementation insidesrc/main/resources/META-INF/services/org.kie.efesto.runtimemanager.api.service.KieRuntimeServicefile
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanManageInput(EfestoInput toEvaluate, EfestoRuntimeContext context)Every engine is responsible to verify if it can evaluate a result with the resource of the givenT(that contains a specificFRI)Optional<E>evaluateInput(T toEvaluate, EfestoRuntimeContext context)Produce oneEfestoOutputfrom the givenEfestoInput
-
-
-
Method Detail
-
canManageInput
boolean canManageInput(EfestoInput toEvaluate, EfestoRuntimeContext context)
Every engine is responsible to verify if it can evaluate a result with the resource of the givenT(that contains a specificFRI)- Parameters:
toEvaluate-context-- Returns:
-
evaluateInput
Optional<E> evaluateInput(T toEvaluate, EfestoRuntimeContext context)
Produce oneEfestoOutputfrom the givenEfestoInput- Parameters:
toEvaluate-context-- Returns:
-
-