Uploaded image for project: 'Blockly Editor'
  1. Blockly Editor
  2. BLOCKLY-21

Allow blockly to use environment variables in Velocity

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 0.7
    • None
    • None
    • Unknown

    Description

      When executing Velocity, multiple environment variables are set depending on the context: $doc, $context, $xwiki, $services, …

      It is critical to have access to those variables when executing Velocity as it will allow us incredibly cool tricks : loading a document, sending a mail, … basically interacting with all the components of XWiki.

      The best way to add that feature would be probably to create a new block for environment variables, acting as standard variables, but not set to $NULL at the beginning of the script. If it is not compatible with the Blockly data model, then we'll have to find a workaround.

      Attachments

        1. Screen Shot 2018-07-17 at 2.08.19 AM.png
          Screen Shot 2018-07-17 at 2.08.19 AM.png
          35 kB
        2. Screen Shot 2018-07-17 at 2.08.31 AM.png
          Screen Shot 2018-07-17 at 2.08.31 AM.png
          40 kB
        3. Screen Shot 2018-07-17 at 2.08.37 AM.png
          Screen Shot 2018-07-17 at 2.08.37 AM.png
          47 kB
        4. Screen Shot 2018-07-17 at 2.08.47 AM.png
          Screen Shot 2018-07-17 at 2.08.47 AM.png
          15 kB
        5. Screen Shot 2018-07-17 at 2.08.54 AM.png
          Screen Shot 2018-07-17 at 2.08.54 AM.png
          37 kB
        6. Screen Shot 2018-07-17 at 2.10.46 AM.png
          Screen Shot 2018-07-17 at 2.10.46 AM.png
          39 kB
        7. Screen Shot 2018-07-17 at 2.10.51 AM.png
          Screen Shot 2018-07-17 at 2.10.51 AM.png
          27 kB
        8. Screen Shot 2018-07-20 at 4.20.40 PM.png
          Screen Shot 2018-07-20 at 4.20.40 PM.png
          73 kB
        9. Screen Shot 2018-07-20 at 4.20.49 PM.png
          Screen Shot 2018-07-20 at 4.20.49 PM.png
          52 kB
        10. Screen Shot 2018-07-20 at 4.20.58 PM.png
          Screen Shot 2018-07-20 at 4.20.58 PM.png
          22 kB
        11. Screen Shot 2018-07-20 at 4.21.09 PM.png
          Screen Shot 2018-07-20 at 4.21.09 PM.png
          29 kB
        12. Screen Shot 2018-07-20 at 4.21.14 PM.png
          Screen Shot 2018-07-20 at 4.21.14 PM.png
          54 kB
        13. Screen Shot 2018-07-20 at 4.21.34 PM.png
          Screen Shot 2018-07-20 at 4.21.34 PM.png
          31 kB
        14. Screen Shot 2018-07-20 at 4.21.38 PM.png
          Screen Shot 2018-07-20 at 4.21.38 PM.png
          59 kB
        15. Screen Shot 2018-07-20 at 4.22.07 PM.png
          Screen Shot 2018-07-20 at 4.22.07 PM.png
          48 kB
        16. Screen Shot 2018-07-20 at 4.22.12 PM.png
          Screen Shot 2018-07-20 at 4.22.12 PM.png
          31 kB
        17. Screen Shot 2018-07-24 at 1.10.13 PM.png
          Screen Shot 2018-07-24 at 1.10.13 PM.png
          48 kB
        18. Screen Shot 2018-07-24 at 1.10.13 PM.png
          Screen Shot 2018-07-24 at 1.10.13 PM.png
          48 kB
        19. Screen Shot 2018-07-24 at 1.10.58 PM.png
          Screen Shot 2018-07-24 at 1.10.58 PM.png
          54 kB
        20. Screen Shot 2018-07-24 at 1.10.58 PM.png
          Screen Shot 2018-07-24 at 1.10.58 PM.png
          54 kB
        21. Screen Shot 2018-07-24 at 1.11.04 PM.png
          Screen Shot 2018-07-24 at 1.11.04 PM.png
          18 kB
        22. Screen Shot 2018-07-24 at 1.11.04 PM.png
          Screen Shot 2018-07-24 at 1.11.04 PM.png
          18 kB
        23. Screen Shot 2018-07-24 at 1.11.25 PM.png
          Screen Shot 2018-07-24 at 1.11.25 PM.png
          44 kB
        24. Screen Shot 2018-07-24 at 1.11.25 PM.png
          Screen Shot 2018-07-24 at 1.11.25 PM.png
          44 kB
        25. Screen Shot 2018-07-24 at 1.11.30 PM.png
          Screen Shot 2018-07-24 at 1.11.30 PM.png
          16 kB
        26. Screen Shot 2018-07-24 at 1.11.30 PM.png
          Screen Shot 2018-07-24 at 1.11.30 PM.png
          16 kB

        Issue Links

          Activity

            People

              Remorax Vivek Iyer
              caubin Clément Aubin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: