2 replies [Last post]
jcstritt
Offline
Joined: 2010-02-26

I have a document that takes 20s for the rendering process (781 beans, 20 pages) with this java method :

DocumentProcessor.renderDoc(...)

Is there a way to show a java progressbar with docmosis info that is showing in debug mode, for example :

DEBUG com.docmosis.template.population.ReflectiveCollectionDataProvider - #Reflective call# calling hasDataProviderKey("etudiant") on delegate:BasicEventList@1026431

The documentation (Docmosis-developer-reference2.0.pdf) don't say anything for this.

Thank's

admin
Offline
Joined: 2010-09-06
Progress Is Difficult to Measure

Hello jcstritt.

You will find if you examine the logging information carefully, that Docmosis does this:
1) populates the document (about 1 second)
2) converts the document (about 19 seconds)

The steps of fetching the data (which make the DEBUG calls "#Reflective call#" etc) are all done in that first 1 second. So if we gave you progress information, it would jump straight to about 95%, then take most of the time to do the last 5%. This is obviously not very helpful as a progress indicator.

The conversion process is done in 3 stages and since it is often "remote" sending back progress information will be:
1) only 3 steps (33%, 67%, 100%) and each step does not take an even amount of time (so 33% is not even a good indicator)
2) increasing network traffic

So, overall Docmosis cannot provide very helpful progres information unless you think 33%, 67%, 100% is helpful. To do this we would have to enhance Docmosis and accept the increased network traffic.

martina783
Offline
Joined: 2010-08-26
Ideal

Thank you for your detailed post.