Organize and group actions when developing packages
- Updated: 2022/05/19
Organize and group actions when developing packages
Review the provided examples on how to add and group actions during the package SDK development process.
@BotCommand
//CommandPks adds required information to be dispalable on the UI.
@CommandPkg(
//Unique name inside a package and a label to display.
name = "concatenate", label = "[[Concatenate.label]]",
node_label = "[[Concatenate.node_label]]", description = "[[Concatenate.description]]", icon = "pkg.svg",
//Return type information. return_type ensures only the right kind of variable is provided on the UI.
return_label = "[[Concatenate.return_label]]", return_type = STRING, return_required = true)
Use the group_label
to ConcatenateGroup
which it is displayed in the UI also as ConcatenateGroup.
When the group_label
is not used, you will get all the actions in
the respective
package.
@BotCommand
//CommandPks adds required information to be dispalable on the UI.
@CommandPkg(
//Provide a unique name inside a package and a label to display.
group_label = "ConcatenateGroup", name = "concatenateWithGroup", label = "concatenateWithGroup",
node_label = "[[Concatenate.node_label]]", description = "[[Concatenate.description]]", icon = "pkg.svg",
//Return type information. return_type ensures only the right kind of variable is provided on the UI.
return_label = "[[Concatenate.return_label]]", return_type = STRING, return_required = true)
public class ConcatenateWithGroup {