Condition Ignored
Posted: Fri Apr 14, 2023 4:18 am
Can someone tell me what I'm doing wrong here?
I want my worflow to only continue if the filename of the input file contains "CWA" - but other files are getting through.
Here's the contents of the JSON for my workflow:
Appreciate any help!
I want my worflow to only continue if the filename of the input file contains "CWA" - but other files are getting through.
Here's the contents of the JSON for my workflow:
Code: Select all
{
"workflow": {
"wf_name": "Telco Processor - CWA A",
"description": "",
"general": {
"sleep": 5
},
"variable": {
"wf_size": 200
},
"maintainance": {
"keep_all_workdir": false,
"keep_failed_workdir": false,
"cleanup_time": "04:00",
"records_age": 5,
"run_on_days": 2345671
},
"special": {
"file_debug": true,
"force_32bit": false,
"read_timecode": false,
"protected": false,
"password": ""
},
"nodes": [
{
"id": "20180924-112305-968-10ea8af403ec",
"name": "Watch Folder",
"execute_on": "success",
"bypass": false,
"type": "mon_folder",
"start_proc": true,
"properties": {
"folder": "D:\\Programing\\Telco\\New Episodes",
"accept_files": "",
"deny": {
"files": "",
"folders": "",
"attributes": {
"read": false,
"arch": false,
"sys": false,
"hidden": false
}
},
"recurse": false,
"localize": false,
"create_folder": false,
"growing_files": true,
"forget_missing": false,
"file_limit": "None",
"skip_verify": false,
"file_size_mod": "continuously"
},
"pos_x": 75,
"pos_y": 75,
"outbounds": [
{
"type": "enc_av_mp4",
"id": "20181108-151705-942-a5abdc48c3ce"
}
],
"description": "Edit this node to set your watch folder.",
"preset": {
"name": "(custom)",
"id": null
}
},
{
"id": "20181108-151705-942-a5abdc48c3ce",
"name": "Folder",
"execute_on": "success",
"bypass": false,
"type": "dest_folder",
"start_proc": false,
"pos_x": 1275,
"pos_y": 75,
"outbounds": [],
"description": "",
"preset": {
"name": "(custom)",
"id": null
},
"properties": {
"folder": "C:\\Users\\midso\\Desktop\\Ready for indexing",
"suffix": "coffee_a_ready-for-indexing",
"prefix": "",
"overwrite": true,
"unique": false,
"case": "None",
"drop_name": true,
"drop_ext": false,
"move": true,
"padding": "None"
}
},
{
"id": "20230413-2252-5562-92a2-8bbcc736400e",
"type": "op_cond",
"custom_proc_guid": "",
"name": "Conditional",
"slots": 1,
"hosts_group": 0,
"bypass": false,
"start_proc": true,
"pos_x": 675,
"pos_y": 75,
"execute_on": "success",
"preset": {
"name": "(custom)",
"id": null
},
"properties": {
"dispel": true,
"conditionals": [
{
"expression_1": "%s_original_name%",
"operator": "equal to (=), regex",
"expression_2": "CWA",
"decide": "Then"
}
]
},
"outbounds": []
}
],
"farming": {
"hosts": [],
"include": true
},
"wf_id": "20230413-2219-0016-931d-50040dd8c772",
"wf_folder": "",
"updated": "2023-04-13T23:16:35.916-05:00",
"updated_by": "midso@DESKTOP-JBN9UQ2",
"version": "1.3.0.38"
}
}