Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The two repositories meant for storing funclets are:

  • Local Funclet Repository: The funclets that are created inside a mapper transformation in an Event Process, for example, in a component like Xslt or on a port or on a route, are stored in Local Funclet Repository.
  • Global Funclet Repository: The funclets that are created in Configuration Repository view of Offline or Online perspectives are stored in Global Funclet Repository of respective perspectives.

...

  • In the Offline perspective, funclets will be stored in the same machine as eStudio at
    %FIORANO_HOME%\runtimedata\eStudio\workspace\.repositories\Offline\Configurations\funclet\development
  • In the Online perspective, funclets will be stored in Enterprise Server at
    %FIORANO_HOME%\runtimedata\repository\configurations\funclet\development

...

Adding a funclet to the global repository

In Offline/Online perspective, go to the Configuration Repository view , rightand perform the following actions:

Figure 2: Opening Global User Defined Functions dialog box

  1. Right-click the Funclet node, and click the Add Configuration option. 
Gallery
sortname
includeaddconfi1.png, addconfi2.png

  1. Image Added
    Figure 2: Context menu to add Configuration

  2. Cick the Add button and provide a name for the funclet in the Extension Name text field that gets displayed, and click the Edit button below the text field.

    Image Added
    Figure 3: Option to add funclets

    Info

    The table below provides information about each button,

...

  1.  starting with the Add option to add funclets, in

...

  1. the Add New Configuration

...

  1.  dialog box.

    PropertyDescription
    Add

    To add a funclet, click Add, provide Extension Name, and click Finish to open a new script function wizard.

    RemoveRemoves the selected funclet from the repository.
    Import

...

  1. Local FuncletsEvent Process Repository: The custom funclets added in any event process in the event process repository get displayed from where the required funclet can be chosen.

    Exported Event Process: The custom funclets present in an exported event process get displayed from where the required funclet can be chosen.

...

  1. Import Global Funclets

...

  1. To import the funclets that are exported previously from global repository to the local disk

...

  1. .
    Export to Local DiskThe selected funclet will be zipped and saved in the location specified.
  2. Add the script for the funclet in the Type in the script here text area and click Next.

    Note

    Only javascript functions can be added to the global repository.

...

  1. Image Added
    Figure

...

  1. 4: Script Information pane with the javascript language option

  2. Select one or more of the functions to appear in the function palette and click Finish.

    Image Added
    Figure 5: Option to choose funclets to appear in function palatte

  3. Click Close/Save.

    Image Added
    Figure 6: Option to edit or close

  4. The global funclet gets added under the Funclet node; expand to see the same.

    Image Added
    Figure 7: Global funclet appearing under the Funclet node

Editing the script in the added funclet

...

  1. Expand the Funclet node, right-click the GlobalFunclets node and click Edit.

    Image Added
    Figure 8: Context menu option to edit the funclet script

  2. Select the funclet that needs to be edited and click Finish Edit.

    Image Added
    Figure 9: Option to edit the funclet

  3. Edit the script in the Script Information section in the New Script Function dialog box and click Finish.
    Gallery
    sortname
    includefuncedit.png, funcedit1.png
    Figure 4: Editing the funclet

Points to note

Note
  • During runtimedata migration, the funclets in Global Repository will also be migrated along with all other configurations in Enterprise Server.

  • While adding new funclets, if a funclet in the global repository (global funclet) and a funclet defined in an event process (local funclet) have the same name, the local funclet takes precedence and will be shown in Funclet View while editing a transformation in Mapper.

  • When a global funclet is edited in Online perspective, a running event process should be restarted to reflect the changes in a port or route transformation during runtime. If the funclet is used in a service instance transformation, like Xslt, restarting just the component will suffice.

  • When exporting event processes using global funclets, the funclets should be exported from the global funclet repository explicitly. The same is to be done while importing these event processes.

    Info

    Support for exporting the funclets along with the event process will be added in future releases.

Adaptavist ThemeBuilder EngineAtlassian Confluence