패키지 SDK v.29 릴리스

v.29 릴리스에서 Automation 360 패키지 SDK의 새로운 기능을 살펴보십시오.

새로운 기능

SDK 다운로드 링크: A360-package-sdk-2.8.0.zip
return_Direct 속성

새 속성 return_Direct= true는 작업 수준에 추가됩니다. 출력에서 기록 유형 변수를 선택할 단일 옵션만 표시됩니다.

예시:

@BotCommand
@CommandPkg(
        return_label = "[[AddColumn.return_label]]",        
        node_label = "[[AddColumn.node_label]]",
        label = "[[AddColumn.label]]",        
        description = "[[AddColumn.description]]",        
        name = "addColumn",        
        icon = "record.svg",        
        return_type = DataType.RECORD,        
        return_Direct = true,        
        return_required = true,        
        minimum_controlroom_version = "17917",        
        minimum_botagent_version = "21.134",        
        documentation_url = RECORD_ADD_COLUMN_URL,        
        documentation_widget_page = RECORD_ADD_COLUMN_WIDGET,        
        allowed_Agent_Targets = AllowedTarget.HEADLESS)
OAUTHCONNECTION 속성

새 속성 유형인 OAUTHCONNECTION이 추가되어 Control Room의 사전 구성된 OAuth 연결 값의 액세스 토큰을 얻을 수 있습니다.

예시:

@Idx(index = "1", type = AttributeType.OAUTHCONNECTION)
@Pkg(label = "[[OAuthConnectionTypeDemo.connection.label]]")
OAuthConnection connection
새로운 규칙 VariableMapAllowedDataTypesVARIABLEMAP에 추가됩니다

VariableMapAllowedDataTypes를 사용하면 특정 변수 유형에 대한 UI를 필터링할 수 있습니다. VariableMap은 모든 작업에 대한 변수 선택을 추가할 수 있는 컨트롤입니다(Bot 편집기 UI에서). VariableMapAllowedDataTypes 필터를 사용해 작업에 사용할 수 있는 변수의 데이터 유형을 제한할 수 있습니다. 예를 들어, VariableMapAllowedDataTypesString에 설정하면, 작업 내의 문자열 변수만 나열합니다.


@Idx(index = "4", type = VARIABLEMAP)
        @Pkg(label = "[[LogVariables.selectVariable.label]]")
        @NotEmpty
        @VariableType(DataType.VARIABLEMAP)
        @VariableMapAllowedDataTypes({
            DataType.STRING,
            DataType.NUMBER,
            DataType.BOOLEAN,
            DataType.DATETIME
        })
        Map<String, Value> variables
@DesktopOperationContext 주석 기호

새 주석 기호 @DesktopOperationContextDesktopOperationContextDesktopOperationGlobalSessionContext과 유사하게 삽입하는 데 사용됩니다.

이 주석 기호는 생성된 파일이 DesktopOperationContext를 대상 파일에 설정할 수 있도록 setter 메소드와 함께 속성에 적용됩니다.

DesktopOperationContext를 삽입하면 다음 속성은 DesktopOperationGlobalSessionContext에서 액세스할 수 있습니다.

  1. getUserToken
  2. getCrUrl
  3. resolveResource
  4. getExternalEnvironment
  5. getProxyConfig
  6. botId
  7. getResources

@BotCommand(commandType = BotCommand.CommandType.DESKTOP_OPERATION_BUTTON)
@CommandPkg(name = "RESTRecorder", desktop_operation_name = "RESTRecorder")
public class RecorderOperation {

    private static final Logger LOGGER = LogManager.getLogger(RecorderOperation.class);

    @Request private DesktopOperationButtonRequest request;

    @DesktopOperationContext    private com.automationanywhere.toolchain.runtime.operation.context.DesktopOperationContext context;

    public void setRequest(DesktopOperationButtonRequest request) {
        this.request = request;
    }

    public void setContext(
            com.automationanywhere.toolchain.runtime.operation.context.DesktopOperationContext                    context) {
        this.context = context;
    }