Package io.gorules.zen.loader
Class FilesystemDecisionLoader
java.lang.Object
io.gorules.zen.loader.FilesystemDecisionLoader
- All Implemented Interfaces:
DecisionLoader
Loads decision models from the filesystem.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<io.gorules.zen_engine.JsonBuffer> Load a decision by its key.
-
Constructor Details
-
FilesystemDecisionLoader
Create filesystem loader.- Parameters:
rootPath- Root directory path
-
-
Method Details
-
load
Description copied from interface:DecisionLoaderLoad a decision by its key.- Specified by:
loadin interfaceDecisionLoader- Parameters:
key- Decision key/filename- Returns:
- CompletableFuture with decision content as JsonBuffer
-