Automic Workload Automation

  • 1.  Automation Engine script V12

    Posted Oct 04, 2017 08:44 AM
    Can anyone please clarify my doubt. In automic script, apart from UC4 script is it possible to code in JAVA/Dot Net?. if so, please guide me. I could see automic has functionality directly run Powershell /DOS command. Likewise we can directly type java / Dot Net code.?

    Thanks in advance.

    Regards 
    Selva


  • 2.  Automation Engine script V12

    Posted Oct 04, 2017 02:07 PM
    Yes and no.

    out of the box you can use:

    Automic script
    WIN/DOS commands
    unix/bash scripting
    any os commands supported by the OS agents

    by customizing parameters/interpreters you can from V11.1 on
    run powershell commands
    perl commands
    https://docs.automic.com/documentation/WEBHELP/English/AWA/11.2/AE/11.2/All%20Guides/help.htm#ucsaby.htm%3FTocPath%3DAutomation%2520Engine%2520Script%2520Guide%7COrdered%2520by%2520Function%7CScript%2520Structure%2520and%2520Processing%7C_____2

    so if you configure a .net interpreter it should be no problem.
    same with java....

    apart from this you can use JAVA API (a.k.a. application interface) to work with automic objects.
    https://docs.automic.com/documentation/WEBHELP/English/AWA/11.2/AE/11.2/All%20Guides/help.htm#uczahq.htm%3FTocPath%3DApplication%2520Integration%2520Guide%7CApplicationInterface%7C_____0





  • 3.  Automation Engine script V12

    Posted Oct 04, 2017 05:49 PM
    Selva_Ganesh_Arulanantham_9743 ,

    To add to what FrankMuffke posted above.

    Powershell scripting should have most of the .NET libraries available for use.

    We had also used successfully Python scripting via :BEGIN_EXT_INTERPRETER... :END_EXT_INTERPRETER method, and acttually had ability to run Python2 and Python3 scripts with different setting.

    My guess is that any Interpreted language code probably will work with this method.
    https://en.wikipedia.org/wiki/List_of_programming_languages_by_type#Interpreted_languages

    For compiled languages (which is Java and C#, for example) :BEGIN_EXT_INTERPRETER method probably will not work.
    https://en.wikipedia.org/wiki/Compiled_language 




  • 4.  Automation Engine script V12

    Posted Oct 05, 2017 04:34 AM
    For compiled languages (which is Java and C#, for example) :BEGIN_EXT_INTERPRETER method probably will not work.

    possibly you can create a seperate job/Workflow that takes the Script content (e.g. as script variable), creates a file, compiles it and executes it....


  • 5.  Automation Engine script V12

    Posted Oct 05, 2017 07:53 AM
    Thanks Wolfgang Brueckler & Vlad Navazhylau for the clarification.  I tried running java class file via cmd.exe it went fine.


  • 6.  Automation Engine script V12

    Posted Oct 09, 2017 10:20 AM

    You can actually run C# code within Powershell. However compiling it first and execute the assembly might be smarter..

    See:
    https://blogs.technet.microsoft.com/stefan_gossner/2010/05/07/using-csharp-c-code-in-powershell-scripts/