Mirth Connect
  1. Mirth Connect
  2. MIRTH-2128

Add ability to view generated JavaScript code for Filter rules and Transformer steps

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: Administrator
    • Labels:
      None

      Description

      This is something that I'm asked almost every training class... can I see the code generated for a Rule Builder/Mapper/Message Builder? Especially for the Rule Builder. I think a lot of people would like to a) have a better understanding about how the step or rule is being executed, and b) be able to start the step/rule using drag-and-drop, etc., but then be able to move what they've done to a JavaScript step once it goes beyond the capabilities of a Rule Builder/Mapper/Message Builder.

        Issue Links

          Activity

          Hide
          Jaysen Patton added a comment -

          The generated code for any single filter/transformer rule/step can now be viewed via a new tab located within the same dialog. Functionality to view the filter/transformer in its entirety will be tackled at a later date.

          Show
          Jaysen Patton added a comment - The generated code for any single filter/transformer rule/step can now be viewed via a new tab located within the same dialog. Functionality to view the filter/transformer in its entirety will be tackled at a later date.
          Hide
          Wayne Huang (Inactive) added a comment -

          A couple of more changes to make on this.

          1. Rename the tab to say "Generated Script"
          2. Change the background to a light gray to indicate it is read only
          3. Remove the tab completely for JavaScript and External Script. You'll have to remove and add the tab in depending on what type is selected.
          4. Bonus: If a user is on the Generated Script tab and they press up or down, if the script disappears because the new row is JavaScript or External Script, then if they move to another row where the script is viable, then it should automatically select the script tab again.

          Show
          Wayne Huang (Inactive) added a comment - A couple of more changes to make on this. 1. Rename the tab to say "Generated Script" 2. Change the background to a light gray to indicate it is read only 3. Remove the tab completely for JavaScript and External Script. You'll have to remove and add the tab in depending on what type is selected. 4. Bonus: If a user is on the Generated Script tab and they press up or down, if the script disappears because the new row is JavaScript or External Script, then if they move to another row where the script is viable, then it should automatically select the script tab again.
          Hide
          Jaysen Patton added a comment -

          When either a javascript or external script type is selected, the generated script panel will now be removed from view. If the Generated Script tab was the last selection, it will now be restored while cycling through selections.

          Show
          Jaysen Patton added a comment - When either a javascript or external script type is selected, the generated script panel will now be removed from view. If the Generated Script tab was the last selection, it will now be restored while cycling through selections.
          Hide
          Wayne Huang (Inactive) added a comment -

          Verified the Generated Script tab is now only available if necessary. When scrolling between steps, if a user had clicked Generated Script, then the script tab will always be selected when viewing a step/rule that has a generated script.

          Show
          Wayne Huang (Inactive) added a comment - Verified the Generated Script tab is now only available if necessary. When scrolling between steps, if a user had clicked Generated Script, then the script tab will always be selected when viewing a step/rule that has a generated script.

            People

            • Assignee:
              Jaysen Patton
              Reporter:
              Eric Butterfield
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development