Book a Demo

Author Topic: Automate execution of scripts  (Read 5330 times)

brback

  • EA User
  • **
  • Posts: 21
  • Karma: +1/-0
    • View Profile
Automate execution of scripts
« on: February 28, 2018, 01:28:24 am »
Is there any way to automate execution of scripts?

I've made some scripts which import contents from our cmdb to Sparx EA, and I would like these scripts to automatically run every night.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automate execution of scripts
« Reply #1 on: February 28, 2018, 01:39:09 am »
Not really.

What you can do is create a working vbscript outside of EA and schedule that.
Problem is that you'll need an interactive user to be logged in at the moment of execution, so scheduling on a server is not really an option.

If you search the forum you should find quite a number of posts discussing this topic.

Geert

brback

  • EA User
  • **
  • Posts: 21
  • Karma: +1/-0
    • View Profile
Re: Automate execution of scripts
« Reply #2 on: February 28, 2018, 07:33:33 pm »
Thank you for replying, Geert. Too bad, I hope they will implement this as feature in the future.

Okay, guess I need to work on my searching skills.

Arshad

  • EA User
  • **
  • Posts: 292
  • Karma: +21/-1
    • View Profile
Re: Automate execution of scripts
« Reply #3 on: February 28, 2018, 07:48:47 pm »
 Hi brback

Even if you tried automating EA scripts from an external custom applications then there are certain limitations needs to be checked

Script should not include any Enterprise Architect specific keywords.
  • “As” keyword cannot be used
  • Script should not use any static functions like
    “Session”.Eg.Session.Output,Session.Input,Session.Prompt


For more details please refer Execute Scripts from External Program


HTH
Arshad