I am not sure what all program #2 does in the bulk loading process.

The one right before the listener / file watcher workflow.

As far as I know, program #1 transfers file from TGO (on share-file).
I assume they are zips that contain PDF's & 1 tsv per zip.

Program #2, I would think unzips those PDF's & tsv into individual folders (maybe same name as zip).

Then its supposed to do 2 other things. Count & stop at 100 zips & write Doc_Waiting.txt, so program #3 (file watcher)
can see the file & Sync & run program #4, which is bulk loading those PDF's into windchill.

Currently I think Marco has a .Net program that does maybe program #1 & #2.

But I think our program #3 (file watcher & sync to bulk loader workflow) could do program #2 at the same time.

Its a fie watcher. Why couldn't it watch for the zip files that program #1 transferred from share-file.

It can count to 100 zips & stop.

It could count all 100 zips & places into an array/collection (with java in windchill workflow &/or code/class).

If no Processing_Zips.txt file exists, it unzips the PDF's & tsv into same name folder.

It then creates a Processing_Zips.txt & wont load more zips, till the bulk-load is done.

It then Syncs to multi bulk-load workflow, where PDF's are sent up to windchill.

Then deletes the Processing_Zips.txt file & the file watcher knows to extract the next 100 zips (back to step 1 of Program #1).

There Program #1 can dump 10,000 zips, but they wont get extracted & processed till the Processing_Zips.txt
is missing (has been deleted after coming back from multi bulk-load workflow/process).

Just thinking out load. Just trying to automate & code as much as we can, without relying on other people (Marco)<
who have busy schedules also, but halt our progress.

I of course am not sure of all the steps that the current Program #2 does, but Marco &/or this team can
update me, if I am off.

I hate to do it, but I think Program #1 is run with a "Japan xyz" bat & if so, we can run doc bat commands from
java & therefore from a workflow.

Just thinking out loud.

Larry

=============================

String japan = ("\"sfcli -sf "/MHPSA_DATA/JAPAN_TO_USA" -down -l "D:\SHAREFILE_SYNC" -u wchillsvc@mhpowersystems.com -pw {RMjhtClxJYw2laFKi2Z71rxAdPOOfg__} -s mpshq -deep -move -keepfolders"");

Process p = Runtime.getRuntime().exec("cmd /c " + japan );

sfcli -sf "/MHPSA_DATA/JAPAN_TO_USA" -down -l "D:\SHAREFILE_SYNC" -u wchillsvc@mhpowersystems.com -pw {RMjhtClxJYw2laFKi2Z71rxAdPOOfg__} -s mpshq -deep -move -keepfolders

