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

Integrate Blockly

Scheduled Pinned Locked Moved Developers Zone
11 Posts 2 Posters 4.2k 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.
  • B Offline
    blacksheepinc
    last edited by 7 May 2017, 20:41

    Hi everyone!
    How difficult would it be to integrate Blockly as a more use friendly way to make rules?
    Something like blockly would make a javascript code as a result then added to rules list.
    How would you start to implement this?

    Thank you!
    Best regards,
    Mark

    J 1 Reply Last reply 8 May 2017, 02:35 Reply Quote 0
    • J Offline
      jkandasa @blacksheepinc
      last edited by 8 May 2017, 02:35

      @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 8 May 2017, 06:31 Reply Quote 0
      • B Offline
        blacksheepinc @jkandasa
        last edited by 8 May 2017, 06:31

        @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?

        J 1 Reply Last reply 8 May 2017, 10:20 Reply Quote 0
        • J Offline
          jkandasa @blacksheepinc
          last edited by 8 May 2017, 10:20

          @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 9 May 2017, 12:23 Reply Quote 0
          • B Offline
            blacksheepinc @jkandasa
            last edited by 9 May 2017, 12:23

            @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?

            J 1 Reply Last reply 9 May 2017, 14:25 Reply Quote 1
            • J Offline
              jkandasa @blacksheepinc
              last edited by 9 May 2017, 14:25

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

              B 2 Replies Last reply 9 May 2017, 19:07 Reply Quote 0
              • B Offline
                blacksheepinc @jkandasa
                last edited by 9 May 2017, 19:07

                @jkandasa Thanks Jeeva!

                1 Reply Last reply Reply Quote 0
                • B Offline
                  blacksheepinc @jkandasa
                  last edited by 25 May 2017, 20:56

                  @jkandasa Did you have time to think about this?

                  J 1 Reply Last reply 26 May 2017, 11:39 Reply Quote 0
                  • J Offline
                    jkandasa @blacksheepinc
                    last edited by 26 May 2017, 11:39

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

                    B 1 Reply Last reply 6 Jun 2017, 09:06 Reply Quote 0
                    • B Offline
                      blacksheepinc @jkandasa
                      last edited by 6 Jun 2017, 09:06

                      @jkandasa any news?

                      J 1 Reply Last reply 6 Jun 2017, 11:50 Reply Quote 0
                      • J Offline
                        jkandasa @blacksheepinc
                        last edited by 6 Jun 2017, 11:50

                        @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

                        628

                        Users

                        532

                        Topics

                        3.4k

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