Automic Workload Automation

Expand all | Collapse all

How to Open an Object with hypen with the Application Interface

  • 1.  How to Open an Object with hypen with the Application Interface

    Posted Apr 20, 2018 05:29 AM

    I want to open an Object with the Application Interface with hypen's in Object Name

    UC4ObjectName objectName = new UC4ObjectName("NAME-INT-DATABASE");
    OpenObject open = new OpenObject(objectName);

         

    The UC4ObjectName doesn't allow hypen's - in Object Names

     

    Exception:

    com.uc4.api.InvalidUC4NameException: Invalid UC4 Object/Alias name: 'NAME-INT-DATABASE'
        at com.uc4.api.UC4ObjectName.<init>(UC4ObjectName.java:42)

     

     

    My Question:

    How can i Access the defined Object ('NAME-INT-DATABASE'), with the Application Interface.

     

    Thanks a lot.

     

    Torsten



  • 2.  Re: How to Open an Object with hypen with the Application Interface

    Posted Aug 29, 2018 08:47 AM

    It could be a bug in uc4.jar. Are you using the latest version?