Databases Reference
In-Depth Information
Note that we have added a title to each section of the job to aid
readability and understanding. To add a title, simply click on a subjob
box (the outer box containing all of the components); in the
Component
tab, you will see a checkbox named
Show subjob title
. Click on the
checkbox and add your title into the textbox that is revealed.
The first subjob checks whether or not a catalog file already exists in the website's
import directory, using a
tFileExist
component. If it does exist, we don't want to
create a new file and, in doing so, overwrite the file that is waiting to import. Our job
logic, then, will check whether a file already exists. If it does exist, then the job will
end; if it doesn't exist, the job will proceed. This flow logic is achieved using an
If
connector between the file exist component and the next subjob. We have used the
global variable to facilitate this.
((Boolean)globalMap.get("tFileExist_1_EXISTS"))
Note that in the
If
flow, the global variable is prefixed by ! to indicate does
not
exist.
Search WWH ::
Custom Search