com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Adding an Event Stream Definition via JS API

Overview

Function

addStreamDefinition(StreamDefinition, success, error)

Description

Returns the added event stream definition.

OutputA JSON object containing the added event stream definition stream id in the ‘message’ element within the argument of the success callback.

Example

var streamDef = {
           name : "TEST",
               version : "1.0.0",
               nickName : "test",
               description : "sample description"
               payloadData : {
                   name : "STRING",
                   married : "BOOLEAN",
                   age : "INTEGER"
               },
               metaData : {
                   NIC: "LONG"
               },
               correlationData : {
               },
               tags : []
};
client.addStreamDefinition(streamDef, function(data) {
      console.log (data["message"]);
}, function(error) {
      console.log("error occured: " + error);  
});

Sample output

 TEST:1.0.0
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.