Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
动态应用程序组合主题说
还可以在运行时添加、更新或删除属性,订阅也可以。编译时属性和订阅仅用作初始设置。
但它没有说明如何做到这一点。那么,你是怎么做到的呢?
在导出流的运算符中,调用
setOutputPortExportProperties({property1_name=value, property2_name=value, ...}, portNumber);
在导入流的运算符中,调用
setInputPortImportSubscription(subscription_string, portNumber);
SPL 示例项目 042_dynamic_import_export_api_at_work 提供了一个示例。