Ejemplo n.º 1
0
 CompilerContextState GetContextState(PanelDatasetCompilerContext context)
 {
     if (context.Panel == null)
     {
         log.LogError("No panel found Leaf database for PanelDatasetCompilerContext.");
         return(CompilerContextState.ConceptNotFound);
     }
     if (!context.QueryContext.Found)
     {
         log.LogWarning("Incomplete PanelDatasetCompilerContext. Context:{@Context}", context);
         return(CompilerContextState.QueryNotFound);
     }
     return(CompilerContextState.Ok);
 }
Ejemplo n.º 2
0
 CompilerContextState GetContextState(PanelDatasetCompilerContext context)
 {
     if (context.Panel.SubPanels.First().PanelItems.First().Concept == null)
     {
         log.LogError("No concept found Leaf database for ConceptDatasetCompilerContext.");
         return(CompilerContextState.ConceptNotFound);
     }
     if (!context.QueryContext.Found)
     {
         log.LogWarning("Incomplete ConceptDatasetCompilerContext. Context:{@Context}", context);
         return(CompilerContextState.QueryNotFound);
     }
     return(CompilerContextState.Ok);
 }