Versions Compared

Key

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

...

In the Offline/Online perspective, the User Defined Functions dialog box have has more options apart from Remove and Edit buttons present in the Mapper perspective.

Click the "Creating/Editing User-defined Function(s)"  icon to open the User Defined Functions dialog box.


Figure 1: User Defined -defined Functions dialog box with functions added in the Event Process perspective

...

PropertyDescription
Add

Opens a new script wizard to add a function.

RemoveRemoves the function selected and deletes it from the location where it was added (using the Add button) as well.
Import fromImports user-defined functions added in any event process. The specific funclet can be imported into the mapping from the list of existing functions.
Export to Global RepositoryExports funclets to the Global repository (refer to the section below to understand more about Global Repository).
EditHelps to make changes to the selected script.

...

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


    Figure 2: Context menu to add Configuration

  2. Cick 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.

    Note

    Only javascript functions can be added to the global repository.

      1. Image Modified
        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 Modified
        Figure 5: Option to choose funclets to appear in function

    palatte
    Click
      1. palette

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

      2. Click the Add Jar button and select the jars to be added.

      3. Provide the class name of the jar in the Type in the fully classified jar text box and click Next.

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

  4. Click Close/Save.


    Figure 68: Option to edit or close

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


    Figure 79: Global funclet appearing under the Funclet node

...

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


    Figure 810: Context menu option to edit the funclet script

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


    Figure 911: 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