Book a Demo

Author Topic: Adding extensions to scenarios from script  (Read 3890 times)

Michael Junkin

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Adding extensions to scenarios from script
« on: November 15, 2014, 08:57:25 am »
Hi -

I'm writing a script (in Javascript) that requires making copies of activities. All is well - the activities and their various attributes are all being generated correctly _except_ for scenario extensions. The scenarios of a given activity are all duplicated correctly, but although I can create the extension duplicates, append them to the step extensions list, etc., when I examine the model through EA the scenarios of a given activity are not being tied together.

It seems like the changes I'm making are not being persisted. I've made sure (I think) that everything is being Updated as required.

Does anyone have some working code (language doesn't matter) they'd be willing to post that creates extensions?

Thanks in advance.

Michael Junkin

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Adding extensions to scenarios from script
« Reply #1 on: November 15, 2014, 09:16:25 am »
I was able to get it working properly - I was missing an Update - of the Scenario Step containing the extensions. Since the Extensions list is the item being modified, I don't understand why the Step needs to be updated...

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Adding extensions to scenarios from script
« Reply #2 on: November 15, 2014, 09:49:28 am »
Because it's EAUI (EA Unique Interface). See pg. 33 of my Scripting book.

q.