Automic Workload Automation

  • 1.  Renaming an Object within a Process Script

    Posted Jun 27, 2018 10:58 AM

    Is there an way in Automic scripting to Rename an Object  from JOBS.Name1  to JOBS.Name2?  I've seen some ways through the API can that code be called with in a Process script?



  • 2.  Re: Renaming an Object within a Process Script

    Posted Jun 28, 2018 02:59 AM

    Hi

     

    if you have a jar file that can be called from OS yes of course.

     

    Usually the command is:

    java -jar [YOURAPI.jar] -Parameter1 -Parameter2.......

     

    cheers, Wolfgang



  • 3.  Re: Renaming an Object within a Process Script

    Posted Jun 28, 2018 11:11 AM

    I suggest that you write a small Java program called rename.jar that connects to the AE and renames the object. This program should take as inputs the old and new object names. Then do something like this:

    The advantage of using an EXEC_VARA is that you’ll be able to to rename an object from any AE script. Let us know if it works!



  • 4.  Re: Renaming an Object within a Process Script

    Posted Jul 23, 2018 11:58 AM

    Hi DouglasDarbyshire604362,

     

    Was the suggestion provided by Wolfgang & Michael help in answering your questions? If their suggestion helped in answering your question, please help us by clicking the "mark correct" on the appropriate comment for future Community users.