Assemble Ungrouped Job

Post Reply
Danny
Member
Posts: 27
Joined: Wed Dec 08, 2010 5:59 pm

Assemble Ungrouped Job

Post by Danny »

Hello,

I am having a hell of a time getting this. I would like to assemble an Ungrouped job with the original total files in the job folder plus one additional file. For example, if a folder was ungrouped and it contained 10 files, I need it to be assembled with 11 files. I am trying to use a "Script expression" instead of "Automatic" for "Number of Files" for the properties in the assemble element.

I've looked in the guide under the Ungroup Element and it says .NumFiles is the The total number of files injected in the flow for this parent job. The key is Ungroup, so I've been using Ungroup.NumFiles for the total number of files and I don't think I'm even doing this correctly.

What I need is the total original files in the job folder +1. Is this possible?

Any help would be greatly appreciated.



Thank you,



Danny
jonasy
Member
Posts: 30
Joined: Tue Feb 01, 2011 11:50 am

Assemble Ungrouped Job

Post by jonasy »

Hi Danny,



The following script expression should do the trick:

job.getPrivateData("Ungroup.NumFiles")+1;



Kind Regards,

Jonas
Post Reply