Constructor
new Forum(opts)
Creates a Forum
Parameters:
Name | Type | Description |
---|---|---|
opts |
object | The configuration options. |
Methods
createPost(tpcId, subject, message) → {Promise.<*>}
Creates a new post
Parameters:
Name | Type | Description |
---|---|---|
tpcId |
The id of the topic |
|
subject |
The subject of the new post |
|
message |
The message of the new post |
Returns:
- Return a list of the latest process definitions
- Type
- Promise.<*>
createPost(tpcId, subject, message) → {Promise.<*>}
Creates a new post
Parameters:
Name | Type | Description |
---|---|---|
tpcId |
The id of the topic |
|
subject |
The subject of the new post |
|
message |
The message of the new post |
Returns:
- Return a list of the latest process definitions
- Type
- Promise.<*>
createTopic(uuid, title, message) → {Promise.<*>}
Post a new Topic
Parameters:
Name | Type | Description |
---|---|---|
uuid |
The uuid of the node |
|
title |
The title of the new topic |
|
message |
The message of the first topic's post |
Returns:
- Return a list of the latest process definitions
- Type
- Promise.<*>
createTopic(uuid, title, message) → {Promise.<*>}
Post a new Topic
Parameters:
Name | Type | Description |
---|---|---|
uuid |
The uuid of the node |
|
title |
The title of the new topic |
|
message |
The message of the first topic's post |
Returns:
- Return a list of the latest process definitions
- Type
- Promise.<*>
deletePost(tpcId, pstId) → {Promise.<*>}
Deletes an existing post
Parameters:
Name | Type | Description |
---|---|---|
tpcId |
The id of the topic |
|
pstId |
The id of the post |
Returns:
- Return a list of the latest process definitions
- Type
- Promise.<*>
deletePost(tpcId, pstId) → {Promise.<*>}
Deletes an existing post
Parameters:
Name | Type | Description |
---|---|---|
tpcId |
The id of the topic |
|
pstId |
The id of the post |
Returns:
- Return a list of the latest process definitions
- Type
- Promise.<*>
getTopicsByNode(uuid) → {Promise.<*>}
Get topics from a given node
Parameters:
Name | Type | Description |
---|---|---|
uuid |
The uuid of the node |
Returns:
- Return a list of the latest process definitions
- Type
- Promise.<*>
getTopicsByNode(uuid) → {Promise.<*>}
Get topics from a given node
Parameters:
Name | Type | Description |
---|---|---|
uuid |
The uuid of the node |
Returns:
- Return a list of the latest process definitions
- Type
- Promise.<*>
increaseTopicView(tpcId) → {Promise.<*>}
Increases the number of views of a topic
Parameters:
Name | Type | Description |
---|---|---|
tpcId |
The id of the topic |
Returns:
- Return a list of the latest process definitions
- Type
- Promise.<*>
increaseTopicView(tpcId) → {Promise.<*>}
Increases the number of views of a topic
Parameters:
Name | Type | Description |
---|---|---|
tpcId |
The id of the topic |
Returns:
- Return a list of the latest process definitions
- Type
- Promise.<*>
setRestUrl(restUrl)
Set the rest url
Parameters:
Name | Type | Description |
---|---|---|
restUrl |
The rest url |
setRestUrl(restUrl)
Set the rest url
Parameters:
Name | Type | Description |
---|---|---|
restUrl |
The rest url |
setToken(token)
Set the token in Workflow variables
Parameters:
Name | Type | Description |
---|---|---|
token |
The authorization token value |
setToken(token)
Set the token in Workflow variables
Parameters:
Name | Type | Description |
---|---|---|
token |
The authorization token value |
updatePost(pstId, subject, message) → {Promise.<*>}
Updates an existing post
Parameters:
Name | Type | Description |
---|---|---|
pstId |
The id of the post |
|
subject |
The subject of the new post |
|
message |
The message of the new post |
Returns:
- Return a list of the latest process definitions
- Type
- Promise.<*>
updatePost(pstId, subject, message) → {Promise.<*>}
Updates an existing post
Parameters:
Name | Type | Description |
---|---|---|
pstId |
The id of the post |
|
subject |
The subject of the new post |
|
message |
The message of the new post |
Returns:
- Return a list of the latest process definitions
- Type
- Promise.<*>