Assembly Sessions

Assembly sessions are specific instances of the document assembly process, for a work item. You use assembly sessions to create new versions of work items.

Overview

A work item is a named location in HotDocs Advance, comprising a reference to a specific HotDocs template and a collection of work item versions.

A version is a snapshot of the assembled documents for a work item at a particular point in time, and the data required for Advance to (if necessary) re-create those documents. A version comprises:

  • A specific version of a template (to which the work item is linked)
  • An answer set – the answer XML data required to create the assembled documents
  • A collection of one or more assembled documents – the specific documents produced when Advance processes the specific template and answer set above

Every version created for a work item is saved in Advance. In this way, work item versions help you track how a work item has changed over time.

When you want to create a new version of a work item, you first create a new assembly session for the work item. You use the assembly session to manage the creation of the new version. While the assembly session is in progress, you can optionally display interviews for your end users, to gather answer data. When you complete an assembly session, Advance processes the data it has gathered and creates the new version, including the assembled documents and the new answer set.

Common tasks

Workflow

See Assembling Documents Overview for an overview of the implementation details for using assembly sessions.

There are two main work flows for using assembly sessions. The one you use will depend on whether you already have answer data or if you need to gather it from your end-users. The workflows are:

  • Displaying an interview – when you want to gather answer data from an end user, via an interview
  • Batch processing – when you already have answer data and want to assemble documents, without user involvement

Batch Processing

When assembling documents with existing answer data, you will use the following workflow:

  1. You must create a work item or have an existing work item
  2. Begin an assembly session, including your answer set in the request
  3. Complete the assembly session; Advance produces the assembled documents for the new work item version
  4. (Optional) Download assembled documents from the assembly session

Assembly Session Status

An assembly session has two states:

  • In-progress – the assembly session is currently in-progress; you cannot create a new assembly session for the work item to which the in-progress assembly session is attached
  • Complete – the assembly session is complete; you can create a new assembly session for the work item to which this assembly session is attached

When beginning an assembly session, you can use the forceCreate parameter to create a new assembly session even if the work item has a currently in-progress assembly session.

Common Tasks: