Groovy and XSLT IDE

Since of 2306 Figaf Tool supports possibility to edit and run Groovy code.

Follow steps to work in Groovy IDE:

  1. Enable Enable IDE to run and upload scripts option on related CPI agent configuration page.

  2. Configure OpenAI API Key , OpenAI Default Model and OpenAI Default Temperature settings on Application configuration page to enable Figaf Bot.

  3. Go to tracked object page of Groovy script or XSLT mapping.

  4. Click on ide icon to open IDE:

    script ide dialog
  5. Then you can:

    1. Groovy script only. Select Function from script. If it’s needed to refresh functions, click on check availability.

      Figaf Tool supports functions used in message mapping and groovy script step:

      1. If function is used in message mapping, it is possible to add test cases with defined Arguments, Headers, Properties After running a function, it’s possible to save a test case.

      2. If it’s a groovy script step, configure Input message, Headers, Properties.

        You can select Test Case and Message, then input data will be filled automatically.
    2. Modify Script.

      You can get some help from Figaf Bot that triggers Open AIs API.
    3. XSLT mapping only. Configure XSLT processing mode:

      1. Figaf Tool works fast and uses code in the application. This approach doesn’t support java functions and cpi extensions (like java:new() or cpi:setHeader).

      2. XSLT Executor IFlow updates and deploys XSLT_Executor IFlow and XSLT is executed in this IFlow. It usually takes around 10 seconds but it provides full XSLT processing support.

    4. Run script click on Run button.

    Result will be shown in right side: Output message, Headers and Properties.

  6. If you want to save modified script, click on Upload button. It will update only a particular script (via public API) of related IFlow.