TXFAJavaScriptSession.RebuildPending
Unit: HPDFXFAEventScript
Declaration
procedure RebuildPending(const Limits: TXFAFormScriptLimits);
Behavior
Returns immediately when the engine is clean; otherwise installs the support prelude, replays the committed journal and reapplies the recorded maintenance, exactly as the next evaluation would
Commits nothing: the journal keeps its length and the session's stored clock, random seed and results are not replaced, so a caller can call it as often as it likes without changing observable script history
Each replayed entry runs under its own Limits.MaxElapsedMilliseconds rather than a remainder shared with the caller's next script, because every entry was admitted under that budget when it was committed
Call it before a transaction deadline is armed when the engine may be dirty from an earlier rollback. Paying the reconstruction inside the deadline leaves a session that outgrew one budget unable to evaluate anything again
Raises EHPDFXFAError when the journal cannot be reconstructed, for example on divergence or on a storage failure, and leaves the engine marked for reconstruction
Related APIs
TXFAJavaScriptSession, Rollback, Evaluate and Interactive Dynamic XFA Widget Runtime