简体   繁体   English

如何在欢乐通道中使用属性文件以及在其中编写代码的位置

[英]How to use properties file in mirth channel and where we write code for it

I want to access channel source and destination file path from property file. 我想从属性文件访问通道源和目标文件路径。 Is it possible to use properties file in mirth? 可以在欢乐中使用属性文件吗?

The source and destination file path for a channel is stored in whatever database solution you've elected to use. 通道的源文件路径和目标文件路径存储在您选择使用的任何数据库解决方案中。 If you left it at default it will likely use a Derby flat file database, otherwise you can query this by reviewing the schema in whatever RDBMS you've chosen. 如果将其保留为默认设置,则可能会使用Derby平面文件数据库,否则可以通过在所选的任何RDBMS中查看模式来查询该数据库。 It's not recommended to modify the data in the Mirth database directly as it could cause data loss. 不建议直接修改Mirth数据库中的数据,因为这可能会导致数据丢失。

If you're saying you want to set the source or destination file path based on data in another file, you could do this using JavaScript to fetch the paths out of a file, write them to the channel map, then reference that variable when specifying the file path. 如果您要基于其他文件中的数据设置源文件或目标文件的路径,则可以使用JavaScript从文件中提取路径,将其写入通道映射,然后在指定时引用该变量文件路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在属性文件中编写相对路径 - How to write relative paths within a properties file 无法在android中写入.properties文件 - Cannot write in .properties file in android 我们能否使用键值对格式的FileWriter和BufferedWrirter组合将数据写入config.properties文件 - Can we write data to a config.properties file using FileWriter and BufferedWrirter combination in a key value pair format 如何从.properties文件中获取字符串并在同一.properties文件中使用它 - How to get a string from .properties file and use it in the same .properties file 在哪里存储在C ++ dll中使用的.properties文件 - where to store .properties file for use in c++ dll 如何在属性文件中写入而不删除旧值 - how to write in properties file without deleting old values 如何使用在Shell中包含数字属性的属性文件 - How to use a properties file that contains numbers properties in shell 如何区分属性文件中的属性 - How to differentiate properties in properties file java - 如何通过保存文件布局将不同语言的属性值以其本机形式写入java中的属性文件? - How to write property values of different languages in its native form to a properties file in java by saving the file layout? 如何加载java属性文件并在Spark中使用? - How to load java properties file and use in Spark?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM