mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-15 04:22:09 +08:00
feature #IAJD9H 期望liteflow 有自己的生命周期扩展
This commit is contained in:
@@ -33,6 +33,8 @@ public class PythonScriptExecutor extends ScriptExecutor {
|
||||
PySystemState systemState = new PySystemState();
|
||||
systemState.setdefaultencoding("UTF-8");
|
||||
this.pythonInterpreter = new PythonInterpreter(null, systemState);
|
||||
//如果有生命周期则执行相应生命周期实现
|
||||
super.lifeCycle(pythonInterpreter);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user