パッケージ SDK v.29 リリース

v.29 リリースの Automation 360 パッケージ SDK で最新情報を確認してください。

最新情報

SDK のダウンロード リンク: A360-package-sdk-2.8.0.zip
return_Direct 属性

アクション レベルで、新しい属性 return_Direct= true が追加されました。出力にレコード タイプ変数を選択するオプションが 1 つだけ表示されます。

次に例を示します。

@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 Connection 値からアクセス トークンを取得するために使用します。

次に例を示します。

@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 注釈

新しい注釈 @DesktopOperationContext は、DesktopOperationContextDesktopOperation で注入するために使用され、GlobalSessionContext と似ています。

この注釈は、生成されたファイルがターゲットファイルに DesktopOperationContext を設定できるように、セッター メソッドを持つプロパティに適用されます。

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;
    }