Interface MappingService

All Superinterfaces:
org.mule.dx.platform.api.component.ComponentLifecycle, LanguageServerLifecycle, WeaveService

public interface MappingService extends WeaveService
This service should be injected and provides the capability of generating graphical model for a mapping.
  • Method Details

    • open

      MappingEditor open(String uri, ArrayList<String> inputBindings) throws Exception
      Given a URI of a DataWeave mapping document it creates a mapping editor for it that enables retrieval and interaction with the Expression model. The mapping editor returned does not keep track of script changes, the model is generated once. Script changes need to be tracked from outside and a new open has to be called to generate an updated model.
      Parameters:
      uri - URI of the document that contains the DW mapping
      inputBindings - list of names of the inputs for the mapping
      Returns:
      returns a MappingEditor with methods for interacting with the Expression model of the mapping
      Throws:
      Exception - if document cannot be opened from URI