Interface DMNClientServicesProxy


  • public interface DMNClientServicesProxy
    This is a proxy for the single provider of (external) services required by the Editor. An external service is one that may require an RPC in some environments (e.g. Business Central) however may be substituted for client-side implementations in other environments.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void getTimeZones​(org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.editors.types.DMNSimpleTimeZone>> callback)  
      void isValidVariableName​(String source, org.kie.workbench.common.stunner.core.client.service.ServiceCallback<Boolean> callback)  
      void loadDataObjects​(org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.editors.types.DataObject>> callback)
      This method loads all Data Objects from .java classes from the current project.
      void loadItemDefinitionsByNamespace​(String modelName, String namespace, org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.definition.model.ItemDefinition>> callback)
      This method finds the list of ItemDefinitions for a given namespace.
      void loadModels​(org.uberfire.backend.vfs.Path path, org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.editors.included.IncludedModel>> callback)
      This method loads all models (DMN and PMML) from a given project.
      void loadNodesFromImports​(List<org.kie.workbench.common.dmn.api.editors.included.DMNIncludedModel> includedModels, org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.editors.included.DMNIncludedNode>> callback)
      This method loads all nodes for the included DMN models.
      void loadPMMLDocumentsFromImports​(org.uberfire.backend.vfs.Path path, List<org.kie.workbench.common.dmn.api.editors.included.PMMLIncludedModel> includedModels, org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.editors.included.PMMLDocumentMetadata>> callback)
      Returns metadata defining the PMMLDocuments for the included PMML models.
      default void logWarning​(org.kie.workbench.common.stunner.core.client.service.ClientRuntimeError error)  
      void parseFEELList​(String source, org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<String>> callback)  
      void parseRangeValue​(String source, org.kie.workbench.common.stunner.core.client.service.ServiceCallback<org.kie.workbench.common.dmn.api.editors.types.RangeValue> callback)  
      default void warn​(String message)  
    • Method Detail

      • logWarning

        default void logWarning​(org.kie.workbench.common.stunner.core.client.service.ClientRuntimeError error)
      • warn

        default void warn​(String message)
      • loadModels

        void loadModels​(org.uberfire.backend.vfs.Path path,
                        org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.editors.included.IncludedModel>> callback)
        This method loads all models (DMN and PMML) from a given project.
        Parameters:
        path - Path of the DMN file being edited.
        callback - Invoked with all IncludedModels from a given project.
      • loadNodesFromImports

        void loadNodesFromImports​(List<org.kie.workbench.common.dmn.api.editors.included.DMNIncludedModel> includedModels,
                                  org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.editors.included.DMNIncludedNode>> callback)
        This method loads all nodes for the included DMN models.
        Parameters:
        includedModels - represents all DMN imports that provide the list of nodes.
        callback - Invoked with a list of DMNIncludedNodes.
      • loadPMMLDocumentsFromImports

        void loadPMMLDocumentsFromImports​(org.uberfire.backend.vfs.Path path,
                                          List<org.kie.workbench.common.dmn.api.editors.included.PMMLIncludedModel> includedModels,
                                          org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.editors.included.PMMLDocumentMetadata>> callback)
        Returns metadata defining the PMMLDocuments for the included PMML models.
        Parameters:
        path - Path of the DMN file being edited.
        includedModels - represents all PMML imports that provide the list of documents.
        callback - Invoked with a list of PMMLDocumentMetadatas.
      • loadItemDefinitionsByNamespace

        void loadItemDefinitionsByNamespace​(String modelName,
                                            String namespace,
                                            org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.definition.model.ItemDefinition>> callback)
        This method finds the list of ItemDefinitions for a given namespace.
        Parameters:
        modelName - is the value used as the prefix for imported ItemDefinitions.
        namespace - is the namespace of the model that provides the list of ItemDefinitions.
        callback - Invoked with a list of ItemDefinitions.
      • parseFEELList

        void parseFEELList​(String source,
                           org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<String>> callback)
      • parseRangeValue

        void parseRangeValue​(String source,
                             org.kie.workbench.common.stunner.core.client.service.ServiceCallback<org.kie.workbench.common.dmn.api.editors.types.RangeValue> callback)
      • isValidVariableName

        void isValidVariableName​(String source,
                                 org.kie.workbench.common.stunner.core.client.service.ServiceCallback<Boolean> callback)
      • getTimeZones

        void getTimeZones​(org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.editors.types.DMNSimpleTimeZone>> callback)
      • loadDataObjects

        void loadDataObjects​(org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.editors.types.DataObject>> callback)
        This method loads all Data Objects from .java classes from the current project.
        Parameters:
        callback - Invoked with all DataObjects from the current project.