BotCommand |
유형이 작업 으로 취급될 수 있도록 합니다. 3가지의 작업 유형을 commandType 특성으로 정의할 수 있습니다.예:
@BotCommand(commandType = BotCommand.CommandType.Iterator)
@BotCommand(commandType = Condition)
|
CommandPkg |
유형을 package.json 작업 생성이 가능하도록 만들 수 있습니다. 이 주석 기호는 BotCommand와 함께 사용해야 실행됩니다. Pkg는 이 주석 기호가 있을 때만 활동에 참여합니다. 예: @CommandPkg(label = "Create", name = "createFile",
description = "Creates a file", node_label = "{{filePath}}",
icon = "file.svg")
|
ConditionTest |
조건 실행에 참여한다. 이 주석 기호는 BotCommand에commandType가 조건으로 지정되어 있을 때만 사용 가능합니다.
BotCommand가 유형에 있을 때 하나의 방법만 주석 기호가 지정되어 있어야 합니다. 그렇지 않으면 컴파일 에러가 발생합니다. |
실행 |
BotCommand 실행에 참여합니다. BotCommand가 유형에 있을 때 정확히 하나의 방법만 주석 기호가 지정되어 있어야 합니다. 그렇지 않으면 컴파일 에러가 발생합니다.예: @Execute public void create( @Idx(index = "1", type = FILE) @LocalFile @Pkg(label =
"File", description = "e.g. C:\\MyDoc\\MyFile.doc") @NotEmpty String filePath,
@Idx(index = "2", type = CHECKBOX) @Pkg(label = "Overwrite an existing file")
@NotEmpty Boolean isOverwrite) { createFile(filePath, isOverwrite); }
|
GlobalSessionContext |
구성원 변수에만 적용될 수 있으며 설정자를 통해 GlobalSessionContext를 가져옵니다.예: @com.automationanywhere.commandsdk.annotations.GlobalSessionContext
private GlobalSessionContext globalSessionContext;
public void setSessionMap(Map < String, Object > sessionMap) {
this.sessionMap = sessionMap;
}
public void setGlobalSessionContext(com.automationanywhere.bot.service.GlobalSessionContext globalSessionContext) {
this.globalSessionContext = globalSessionContext;
}
|
HasNext |
반복자의 실행에 참여합니다. 이 주석 기호는 BotCommand의 commandType이 반복자로 지정되어 있을 때만 사용 가능합니다. 주석 기호 다음이 있어야 합니다. BotCommand가 유형에 있을 때 하나의 방법만 주석 기호가 지정되어 있어야 합니다. 그렇지 않으면 컴파일 에러가 발생합니다. |
Idx |
코드 및 리소스 생성에 활용되는 위계의 주석 기호 지정된 요소를 만듭니다. 즉, 이 주석 기호가 없으면 BotCommand 관련 요소 주석 기호는 처리되지 않습니다. |
Idx.Option |
이 옵션은 위계에서 실행되는 요소를 나타내지만, 상위 요소에 값을 빌려줍니다.
예:
- 라디오
@Idx(index = "1", type = RADIO, options = {
@Idx.Option(index = "1.1", pkg = @Pkg(node_label = "[[Delay.delayType.1.1.node_label]]", label = "[[Delay.delayType.1.1.label]]", value = REGULAR)),
@Idx.Option(index = "1.2", pkg = @Pkg(node_label = "[[Delay.delayType.1.2.node_label]]", label = "[[Delay.delayType.1.2.label]]", value = RANDOM))
})
@Pkg(label = "[[Delay.delayType.label]]", default_value = "REGULAR", default_value_type = DataType.STRING)
@Inject
private String delayType;
- 선택
@Idx(index = "2", type = SELECT, options = {
@Idx.Option(index = "2.1", pkg = @Pkg(label = "[[LaunchWebsite.browser.2.1.label]]", value = "DEFAULT")),
@Idx.Option(index = "2.2", pkg = @Pkg(label = "[[LaunchWebsite.browser.2.2.label]]", value = "INTERNET_EXPLORER")),
@Idx.Option(index = "2.3", pkg = @Pkg(label = "[[LaunchWebsite.browser.2.3.label]]", value = "FIREFOX")),
@Idx.Option(index = "2.4", pkg = @Pkg(label = "[[LaunchWebsite.browser.2.4.label]]", value = "CHROME"))
}) @Pkg(label = "[[LaunchWebsite.browser.label]]", default_value = "DEFAULT", default_value_type = DataType.STRING) @NotEmptyStringbrowser)
|
인젝트 |
요소를 주석 기호가 지정된 유형의 객체에 인젝트될 수 있도록 합니다. 주입은 정착자 기반이므로 유형에서 상응하는 정착자가 필수입니다. 주입된 값은 Idx에 제공된 이름을 사용하여 BotCommand 매개 변수 맵을 구성합니다. |
다음 |
반복자 실행에 참여합니다. 이 주석기호는 BotCommand의 commandType이 반복자로 설정되어 있을 때만 사용 가능합니다. HasNext 주석 기호가 있어야 합니다. BotCommand가 유형에 있을 때 하나의 방법만 주석 기호가 지정되어 있어야 합니다. 그렇지 않으면 컴파일 에러가 발생합니다. |
Pkg |
요소가 package.json 생성에 참여하도록 합니다. 이 주석 기호는 Idx가 없을 때 무시됩니다. |