Synchronous draft document creation flow in Smart Communications for PolicyCenter
When creating a document synchronously, you can create a new draft document by selecting from the Documents screen.
Application flow
At the application level, creating a new draft document triggers the flow shown in the
following diagram:

In the illustration, the following actions occur at each numbered item:
- In PolicyCenter, you select Create from a template.
- The document creation user interface, defined in the PCF file, calls the Template source plugin implementation to retrieve the templates from SmartCOMM.
- The user selects a template from the Search Results of the Upload Documents tab and then defines properties such as the name of the document.
- The user clicks Create Draft. The Draft Document Handler plugin calls SmartCOMM to create a draft document.
- PolicyCenter displays the SmartCOMM draft editor login screen. After you enter your credentials, the draft editor displays the draft document in the Upload Documents tab. You can edit the document in PolicyCenter. PolicyCenter displays a message if the template contains no fields for editable content.
- If you click Create Document, PolicyCenter calls the document production flow, which creates
the
Documentobject. - If you click Cancel instead, then PolicyCenter deletes the draft document and does not create the
Documentobject.
Integration flow
At the integration level, creating a new draft document triggers the flow shown in the
following illustration:

In the illustration, the following actions occur at each numbered item:
- In PolicyCenter, you select Create from a template.
- The document creation user interface, defined in the PCF file, calls
SmartCommsDocumentTemplateSource, theIDocumentTemplateSourceplugin implementation. The plugin accesses theSmartCommsConfigurationentity instance. The plugin parameters specify:- The effective date of the template.
- Maximum number of results.
- Keywords, language, and document type for filtering the templates. This filter information comes from the PCF file.
- The
SmartCommsDocumentTemplateSourceplugin requests the templates from SmartCOMM. - SmartCOMM retrieves the templates and provides
them to the
SmartCommsDocumentTemplateSourceplugin. - The
SmartCommsDocumentTemplateSourceplugin returns the list of templates to the user interface, which displays these templates in the Search Results of the Upload Documents tab. - The user interface returns the template descriptors to PolicyCenter, which displays these templates in the Search Results of the Upload Documents tab.
- You select a template, and then define properties such as the name of the document.
you click Create Draft.
PolicyCenter stores this information in transient objects. PolicyCenter does not yet create the
Documententity instance in the database. - The user interface calls the
DraftDocumentHandlerplugin. - The
DraftDocumentHandlerplugin sends a message to SmartCOMM through RESTful web services to create a draft document. - SmartCOMM returns the draft document to the
DraftDocumentHandlerplugin. - The
DraftDocumentHandlerplugin returns the draft document to the user interface. PolicyCenter displays the SmartCOMM draft editor login screen. After you enter your credentials, the draft editor displays the draft document in the Upload Documents tab. PolicyCenter displays a message if the template contains no fields for editable content. - You edit the document in PolicyCenter.
- If you click Create Document, PolicyCenter calls the document production flow, which creates
the
Documentobject. If you click Cancel instead, then PolicyCenter deletes the draft document and does not create theDocumentobject.In the base integration, you can create documents up to 260,000 characters. You can adjust this limit in
Contentproperty of theDraftDocumententity.
