Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi!
I would like to implement a job which gets a parameter passed via context. So my context includes the parameter "file". I tried String and File so far. Based on this parameter I would like to have a tFileExists task to check if this file really exists.
Unfortunately it seems to, that this context parameter (context.file) is not recongnized by the task. tFileExists is telling me ok in every case.
How is the best practice to do such a FileCheck?
Can someone describe me, why tFileExists is saying that a file exists, even when the context is bogus?
Thank you,
Christian
This is a common mistake.
You need an "If" trigger to check the value of the "EXISTS" variable associated to the tFileExists component.
The design should be tFileExists--(If trigger)-->tMsgBox.
If the condition associated to the trigger is "((Boolean)globalMap.get("tFileExists_1_EXISTS"))" and the file exists, the tMsgBox will run.
Share your job design + tFileExists settings
This is a common mistake.
You need an "If" trigger to check the value of the "EXISTS" variable associated to the tFileExists component.
The design should be tFileExists--(If trigger)-->tMsgBox.
If the condition associated to the trigger is "((Boolean)globalMap.get("tFileExists_1_EXISTS"))" and the file exists, the tMsgBox will run.