I hope to support the script task of java syntax
See original GitHub issueWhen offline tasks run simple tasks, the programmer may be a java stack, and is better at java processing logic. When the task is not complicated, I also hope to use java to write a job task class to take effect in real time. Using Groovy to generate classes, I see that other scheduling platforms have support for such features.
Class<T> clazz = groovyClassLoader.parseClass(codeSource);
think about it.
离线作业跑简单任务的时候,程序员可能是java栈的,更擅长java处理逻辑。在任务不复杂的时候也希望用java写一段job任务类实时生效。 用Groovy生成class,我看到别的调度平台有支持这样的特性,
Class<T> clazz = groovyClassLoader.parseClass(codeSource);
考虑一下。
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Script Task - Apache Ant
Execute a script in a Apache BSF or JSR 223 supported language. Note: This task depends on external libraries not included in the...
Read more >Java Scripting Programmer's Guide
Note that the syntax to access Java objects, methods and fields is dependent on the scripting language. JavaScript supports the most "natural" Java-like ......
Read more >Java Basics - Java Programming Tutorial
This chapter explains the basic syntaxes of the Java programming language. I shall assume that you have written some simple Java programs.
Read more >Using ES6 in Script task - Flowable Engine
Hi, I'm wondering if there is any way to configure either Flowable or the underlying jvm such that ES6 features/syntax can be used...
Read more >Java Keywords - W3Schools
Java Reserved Keywords ; switch, Selects one of many code blocks to be executed ; synchronized, A non-access modifier, which specifies that methods...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
good idea, we will keep this issue open , if anybody else also want to add this feature, please repley “+1” !
In my opinion and understanding:
1.Python and shell script can do anything that java script can do. 2.If user familiar with Java, they also can use some simple python or shell scripts to call java jar or java class, they just need maintain the jar lib. 3.It will make DS complicated before achieve the pluggable DS, it will make the DS modules will be clearer.
个人有一些不同理解,如下:
1.Python 和 shell 脚本其实已经可以实现任何 java 脚本可以做的东西。 2.如果用户对java更加熟悉,也可以使用简单的 Python 或者 shell 脚本去调用 java jar 包 或者 class 文件,只需要维护这写jar包就可以了,或者我们可以简单的实现一个前端页面,后端实现本质上还是通过shell去调用? 3.个人理解如果这个诉求很多人都有的话,其实我们完全可以在将DS插件化这个issue实现之后再做这个,这样的话模块之间会更加清晰。