feature #IAJD9H 期望liteflow 有自己的生命周期扩展

This commit is contained in:
everywhere.z
2024-10-11 00:22:36 +08:00
parent b32b34f919
commit 0698f100c5
37 changed files with 506 additions and 23 deletions

View File

@@ -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;
}