Boomi Buzz: Blogs & Events
Boomi Training & Certification
About the Community
to create and rate content, and to follow, bookmark, and share content with other members.
How can you determine how many documents a SPLIT DOCUMENT process produces
Question asked by
on Jul 10, 2012
on Aug 7, 2012 by Adam Arrowsmith
If batch processing documents, how can you determine the resulting documnet count after each SPLIT docuemnt process?
No one else has this question
Mark as assumed answered
This content has been marked as final.
Show 3 comments
(Required, will not be published)
Jul 18, 2012 5:25 PM
The Process Log will contain the number of documents produced from a split, however if you need to know the number of documents within the process at runtime to perform some kind of conditional logic, you can use a simple custom script to get a count of the number of documents.
Check out the sample script at the bottom of this article: http://help.boomi.com/display/BOD/Custom+Scripting+Step+Examples
Aug 1, 2012 10:11 AM
Thank you for your reply.
The count will be correct only if you are processing 1 doucumnet at a time. When processing documents in batches, you need to add a flow control shape before the split process and feed the documents 1 at a time to the split process.
Aug 7, 2012 11:03 AM
True. Alternatively I suppose you could use script (requiring you to parse the data manually) or a map (that maps everything to the same profile) with a Count function (whose result would be saved to a User Defined Document Property for subsequent inspection) to determine the number of records before you actually do the split.
Out of curiosity, what's the motivation for counting the number of records per split?
Retrieving data ...
Account executions exceeded limit of 20/50
How to Read attachment in mail (CSV file format)
Atomsphere API Actions