Before writing script files for use by the Command Line BIC, you should be aware of the following:
- The local directory is always the directory of the BIC Manager's application server. If EPX is installed to the default Windows directory, then the local directory is C:\Enterworks\EPX\tomcat
- If you want to use existing system variables in the script file, you must prefix the percent sign (%) with a carat (^), for example, ^%TEMP^%, because the script file uses the percent sign to define internal parameters. Also, as indicated in the earlier script example, you cannot define a system variable from within a script.
- You cannot change directories from within a script. Any commands to change directories must be performed from a batch file, as shown in the previous example.
- For directory names and file names that include spaces and more than eight characters, you must enclose the path with opening and closing quotes. See the sample string and batch file contents for examples of this.
- If your script writes a file that you want to preserve, you must include a string giving the new file a unique name. Otherwise, each time the process flow is started, the previous file will be overwritten. You can use any replaceable parameter that returns a unique value. You can also have the option for EPX to create a unique name for each file by using the system parameter:
%sys.workitem.version.uid%