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.

...

  1. Right-click the Funclet node, and click the Add Configuration option. 


    Figure 2: Context menu to add Configuration

  2. Click 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 to provide its properties.


    Figure 3: Option to add funclets

    Info

    The table below provides information about each button, starting with the Add option to add funclets, in the Add New Configuration 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 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.

    Import Global FuncletsTo import the funclets that are exported previously from global repository to the local disk.
    Export to Local DiskThe selected funclet will be zipped and saved in the location specified.
  3. Select one of the following options from the Language drop-down.

    1. javascript
      1. Add the script for the funclet in the Type in the script here text area and click Next.

        Image RemovedImage Added
        Figure 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 Removed
        Image Added
        Figure 5: Option to choose funclets to appear in function palette

    2. java
      1. Enable the Include jar to classpath checkbox.

      2. Click the Add Jar button, click the Add button in the Select Jars dialog box and select the jars to be added from the location where it is saved.

        Tip
        titleHow to create Jar file in Eclipse?

        There are different ways to create a jar file, one of which is by using Eclipse as below:

        1. Right-click the java project or file.
        2. Select Export.
        3. Select Java > JAR file.
        4. Select the destination location and click Finish.

        To create Runnable JAR, select Runnable JAR file while exporting.


        Image Added
        Figure 6: Options to choose Java jar file

      3. Provide the class name of the jar in the Type in the fully classified jar text box and click Next.
        Image Removed
        Image Added
        Figure 67: Options to choose Java jars and add jar class

      4. Select one or more of the functions to appear in the function palette and click Finish.
        Image Removed
        Image Added
        Figure 78: Option to choose funclets to appear in function palette

  4. Click Close/Save.


    Figure 89: Option to edit or close

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


    Figure 910: Global funclet appearing under the Funclet node

...

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


    Figure 1011: Context menu option to edit the funclet script

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


    Figure 1112: Option to edit the funclet

  3. Edit the script in the Script Information section in the New Script Function dialog box and click Finish.

...

Adaptavist ThemeBuilder EngineAtlassian Confluence