Hello Everyone,
I am creating a custom Smart Service.
My Smart Service would require that the user pass a multiple CDT as input.
I am not sure how to set this input and the proper annotation to use. In effect, I need that my custom smart service take a CDT Array or CDT list as input.
Please take a look at the code below. I am not sure if it is correct way.
Here 'FormattingPerElemTypeObj' is a CDT defined in my plugin(it has also been specified in appian-plugin.xml). I would like the smart service to take multiple CDTs of this type. Could anyone confirm if the below code is the proper way to take such an input? Do I need a type annotation?
@Input(required = Required.ALWAYS)
@Name("ListOfFormattingPerElement")
// @Type() -- maybe its not required
public void setFormattingPerElemTypeObjs(FormattingPerElemTypeObj[] formattingPerElemTypeObjs) {
this.formattingPerElemTypeObjs = formattingPerElemTypeObjs;
}
Regards,
Chetan
Discussion posts and replies are publicly visible