Menu

#37 Variabilise parameters / accept variables for all directives in the YADE configuration file

2.8
open
nobody
None
5
2025-11-14
2025-11-14
No

Hi all, It will be interresting to use variable in yade configuration for exemple to specify boolean directly from Jobressources variables : example : <directives>
<disableerroronnofilesfound><![CDATA[true]]></disableerroronnofilesfound>
</directives>

If you use ${TRUEORFALSE} when you can't validate your yade configuration because specification said only boolean value has accepted. I will appreciate set :
<directives>
<disableerroronnofilesfound><![CDATA[${TRUEORFALSE} ]]></disableerroronnofilesfound>
</directives>
And fix this varaible from my JobRessouce (YadeJITLJob) : TRUEORFALSE false example (part of JSON) : "executable": {
"TYPE": "InternalExecutable",
"className": "com.sos.jitl.jobs.yade.YADEJob",
"internalType": "JITL",
"arguments": {
"settings": "jobResourceVariable('Default',$var_prefix_yade_xml ++ 'yadeXml')",
"profile": "\"GETLIST--DEFINE__ALL_DIR_OK\"",
"source_dir": "\"/root/transferdata/output/export/\"",
"source_file_spec": "'.\..'",
"target_dir": "'/home/ACCOUNTED_VALIDATED/tmp/acc_val' ++ $js7OrderId ++ '.list'",
"TRUEORFALSE": "true"

Discussion


Log in to post a comment.

MongoDB Logo MongoDB