• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Integrate Blockly

    Scheduled Pinned Locked Moved Developers Zone
    11 Posts 2 Posters 4.0k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jkandasaJ Offline
      jkandasa @blacksheepinc
      last edited by

      @blacksheepinc MyController uses pure Java to configure rules. However, you can use script based condition. You can use your Blockly generated code with some modifications.

      B 1 Reply Last reply Reply Quote 0
      • B Offline
        blacksheepinc @jkandasa
        last edited by

        @jkandasa Thank you!
        As I saw there are 2 different kind of script defined at the rules page. Operation and Condition.
        I guess at the backend loop it checks every condition and if it's true it will perform the operation.
        Is it possible to make a script with blockly(condition and operation in one script), save as a script file, then use them as condition?

        jkandasaJ 1 Reply Last reply Reply Quote 0
        • jkandasaJ Offline
          jkandasa @blacksheepinc
          last edited by

          @blacksheepinc In the backend, it checkes only the file you have mentioned on your rule. not all the scripts. Operation is common for many activites. However you can address your operation also on condition itself.

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            blacksheepinc @jkandasa
            last edited by

            @jkandasa I see.
            I made a simple version where the blockly makes javascript as output, then I can run it, and it performs the task, but it is manual and done by the front-end.
            I would like to make an extra menu, next to the rules menu.
            It would work like the same, first there is a list, you can enable/disable or add/edit.
            Then the rule edit will be the blockly page. Click save and it makes a script file in the resources folder.
            Then the back end would perform each script if enabled.

            Or the second idea is to hide the operations and conditions menus. So when blockly makes the output, it will split into condition and operation, automatically saving them to the corresponding places. I think this idea needs less recoding/modifications to work.

            I think with this graphical interface people would use this with more confidence then the current method. Also would be easier to expand with additional functions instead of the need to use scripts.

            What do you think Jeeva?

            jkandasaJ 1 Reply Last reply Reply Quote 1
            • jkandasaJ Offline
              jkandasa @blacksheepinc
              last edited by

              @blacksheepinc Your idea looks great. Let me have a look on Blockly and update you shortly on this.

              B 2 Replies Last reply Reply Quote 0
              • B Offline
                blacksheepinc @jkandasa
                last edited by

                @jkandasa Thanks Jeeva!

                1 Reply Last reply Reply Quote 0
                • B Offline
                  blacksheepinc @jkandasa
                  last edited by

                  @jkandasa Did you have time to think about this?

                  jkandasaJ 1 Reply Last reply Reply Quote 0
                  • jkandasaJ Offline
                    jkandasa @blacksheepinc
                    last edited by

                    @blacksheepinc I am sorry. Yet to have a look. Will do it by this weekend. Sorry for the delay.

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      blacksheepinc @jkandasa
                      last edited by

                      @jkandasa any news?

                      jkandasaJ 1 Reply Last reply Reply Quote 0
                      • jkandasaJ Offline
                        jkandasa @blacksheepinc
                        last edited by

                        @blacksheepinc Hi, Yes, I had a look. And looks like we can implement with MyController with some new implementation to support for JSR223 standard(which is used in Java). Kindly create a request on github.com/mycontroller-org/mycontroller/issues When I get time I will work on this. Thank you!

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post

                        0

                        Online

                        586

                        Users

                        529

                        Topics

                        3.4k

                        Posts
                        Copyright © 2015-2025 MyController.org | Contributors | Localization