Interface DMNClientServicesProxy
-
public interface DMNClientServicesProxyThis 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 voidgetTimeZones(org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<org.kie.workbench.common.dmn.api.editors.types.DMNSimpleTimeZone>> callback)voidisValidVariableName(String source, org.kie.workbench.common.stunner.core.client.service.ServiceCallback<Boolean> callback)voidloadDataObjects(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.voidloadItemDefinitionsByNamespace(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 ofItemDefinitions for a givennamespace.voidloadModels(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.voidloadNodesFromImports(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.voidloadPMMLDocumentsFromImports(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 voidlogWarning(org.kie.workbench.common.stunner.core.client.service.ClientRuntimeError error)voidparseFEELList(String source, org.kie.workbench.common.stunner.core.client.service.ServiceCallback<List<String>> callback)voidparseRangeValue(String source, org.kie.workbench.common.stunner.core.client.service.ServiceCallback<org.kie.workbench.common.dmn.api.editors.types.RangeValue> callback)default voidwarn(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 allIncludedModels 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 ofDMNIncludedNodes.
-
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 ofPMMLDocumentMetadatas.
-
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 ofItemDefinitions for a givennamespace.- Parameters:
modelName- is the value used as the prefix for importedItemDefinitions.namespace- is the namespace of the model that provides the list ofItemDefinitions.callback- Invoked with a list ofItemDefinitions.
-
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 allDataObjects from the current project.
-
-