Processing of only one command within one class
@JavaCommandService (1)
public class CommandClass {
@LiteService (2)
private ICommandRestService restService;
public CommandClass(final ICommandRestService restService) {
this.restService = restService;
}
/**
* This is the workflowDocumentation for my command
*
* @param myReadVariable Actual docu of my variable (3)
* @param noReadVariable This is the documentation for noReadVariable
* @return This is the workflowDocumentation for my write-Variable (myCommandResult)
*/ (4)
@Persistent(mandatory = false) (5)
@JavaCommand
@CommandGroup("myCommandGroup") (6)
public String myCommand(@Persistent(mandatory = false) String myReadVariable, String noReadVariable) {
return "hello";
}
/**
* Simple dummy method, not a command
*
* @param number some dummy parameter
*/
public int retNum(int number) {
return number;
}
}
Last updated 2024-12-19 10:07:56 +0100