Class FieldActionsCacheService
- java.lang.Object
-
- com.netgrif.application.engine.workflow.service.FieldActionsCacheService
-
- All Implemented Interfaces:
IFieldActionsCacheService
@Service public class FieldActionsCacheService extends java.lang.Object implements IFieldActionsCacheService
-
-
Constructor Summary
Constructors Constructor Description FieldActionsCacheService(FieldActionsCacheProperties properties, IGroovyShellFactory shellFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcachePetriNetFunctions(PetriNet petriNet)voidclearActionCache()voidclearFunctionCache()voidclearNamespaceFunctionCache()voidevaluateFunctions(java.util.List<Function> functions)java.util.List<CachedFunction>getCachedFunctions(java.util.List<Function> functions)groovy.lang.ClosuregetCompiledAction(Action action, boolean shouldRewriteCachedActions)java.util.Map<java.lang.String,java.util.List<CachedFunction>>getNamespaceFunctionCache()voidreloadCachedFunctions(PetriNet petriNet)voidsetPetriNetService(IPetriNetService petriNetService)
-
-
-
Constructor Detail
-
FieldActionsCacheService
public FieldActionsCacheService(FieldActionsCacheProperties properties, IGroovyShellFactory shellFactory)
-
-
Method Detail
-
setPetriNetService
@Autowired @Lazy public void setPetriNetService(IPetriNetService petriNetService)
-
cachePetriNetFunctions
public void cachePetriNetFunctions(PetriNet petriNet)
- Specified by:
cachePetriNetFunctionsin interfaceIFieldActionsCacheService
-
reloadCachedFunctions
public void reloadCachedFunctions(PetriNet petriNet)
- Specified by:
reloadCachedFunctionsin interfaceIFieldActionsCacheService
-
getCompiledAction
public groovy.lang.Closure getCompiledAction(Action action, boolean shouldRewriteCachedActions)
- Specified by:
getCompiledActionin interfaceIFieldActionsCacheService
-
getCachedFunctions
public java.util.List<CachedFunction> getCachedFunctions(java.util.List<Function> functions)
- Specified by:
getCachedFunctionsin interfaceIFieldActionsCacheService
-
evaluateFunctions
public void evaluateFunctions(java.util.List<Function> functions)
- Specified by:
evaluateFunctionsin interfaceIFieldActionsCacheService
-
getNamespaceFunctionCache
public java.util.Map<java.lang.String,java.util.List<CachedFunction>> getNamespaceFunctionCache()
- Specified by:
getNamespaceFunctionCachein interfaceIFieldActionsCacheService
-
clearActionCache
public void clearActionCache()
- Specified by:
clearActionCachein interfaceIFieldActionsCacheService
-
clearNamespaceFunctionCache
public void clearNamespaceFunctionCache()
- Specified by:
clearNamespaceFunctionCachein interfaceIFieldActionsCacheService
-
clearFunctionCache
public void clearFunctionCache()
- Specified by:
clearFunctionCachein interfaceIFieldActionsCacheService
-
-