...
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
- Right-click the Funclet node, and click the Add Configuration option.
Gallery | ||||
---|---|---|---|---|
|
Figure 2: Context menu to add ConfigurationCick 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.
Figure 3: Option to add funcletsInfo The table below provides information about each button,
...
starting with the Add option to add funclets, in
...
the Add New Configuration
...
dialog box.
Property Description Add To add a funclet, click Add, provide Extension Name, and click Finish to open a new script function wizard.
Remove Removes the selected funclet from the repository. Import
...
Local Funclets Event 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.
...
Import Global Funclets
...
To import the funclets that are exported previously from global repository to the local disk
...
. Export to Local Disk The selected funclet will be zipped and saved in the location specified. 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.
...
Figure
...
4: Script Information pane with the javascript language option
Select one or more of the functions to appear in the function palette and click Finish.
Figure 5: Option to choose funclets to appear in function palatteClick Close/Save.
Figure 6: Option to edit or closeThe global funclet gets added under the Funclet node; expand to see the same.
Figure 7: Global funclet appearing under the Funclet node
Editing the script in the added funclet
...
- Expand the Funclet node, right-click the GlobalFunclets node and click Edit.
Figure 8: Context menu option to edit the funclet script - Select the funclet that needs to be edited and click Finish Edit.
Figure 9: Option to edit the funclet - Edit the script in the Script Information section in the New Script Function dialog box and click Finish.
Figure 4: Editing the funcletGallery sort name include funcedit.png, funcedit1.png
Points to note
Note | ||
---|---|---|
|