Get a list of topic templates

Your application can retrieve a list of topic templates. The topic templates can be used to prepopulate new topic fields and actions.

To get a list of topic templates, call the getTopicTemplateContexts task, which returns a list of topic template contexts with the name and identifier of each topic template. This task can be used to populate a drop-down list or a selection list for the topic template in the Save to Topic dialog box. You should add an option in your user interface to not select a template. The Oracle Empirica Signal application adds the options --none-- to the top of the drop-down list.

The result is alphabetically sorted by name and includes the values returned and the total number of values. Optionally, you can set a start row and a chunk size.

The getTopicTemplateContexts task returns TopicTemplateContexts with a list of topic template IDs and names.

TopicTemplateContexts JSON


{
    "topicsServiceContext": {
       TopicServiceContext object
    },
    "topicTemplateContexts": [
        {
            "id": “number”,
            "name": "string"
        }
    ]
}