Book a Demo

Author Topic: accessing an object's runsate from java  (Read 3204 times)

patfada

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
accessing an object's runsate from java
« on: January 16, 2009, 04:00:30 pm »
Hi
 I am trying to get the runstate from an object using the java automation API, but I haven't had any luck. I can find the attribute from

Element e.GetAttributesEx()

(Where element is the object)

but I can't get the runstate value

- anybody know how to do this?

cheers

Pat

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: accessing an object's runsate from java
« Reply #1 on: January 17, 2009, 01:47:04 am »
There is an Element.RunState property that should return the list as a string. I think it is semicolon delimited.

FWIW, though this property is clearly documented, I seem to miss it when I look for it. This is a simple oversight on my part, but I've done it a couple of times when I forget the calling sequence (I don't use the run state much in automation). The most recent time was just now when I looked it up.

HTH, David
No, you can't have it!

patfada

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: accessing an object's runsate from java
« Reply #2 on: January 18, 2009, 08:17:08 am »
Thanks
- weird, I couldn't see it for looking...