Book a Demo

Author Topic: Java API; Update Connector problems  (Read 3343 times)

Chris Tatem

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Java API; Update Connector problems
« on: October 22, 2008, 04:18:48 am »
I'm attempting to make a copy of a Connector through Automation.  (with some help here) I've been able to copy most of the salient information, however have run into 2 problems.

The Connector.SetConstraint doesn't appear to save - my code snippet is quite simple and echoing the value back to the console shows the updated value, but the Update() doesn't seem to take - and no errors are thrown.

I don't see a way to update Conditions, RetVal or Parms... I looked at a database and see that Conditions is actually stored as a Label; I don't see a way to update either.

retval;parms is stored as PDATA2... I can get it via thisConnector.MiscData(1) , but MiscData doesn't seem to allow updates, nor did I see a Property or CustomProperty for these... is there a way to do this via the API?  Is the SetName() start enough to parse if I were to make the name include the parameters?  (I did notice that the message/connector name is just a string in the database, not linked to an operation/method, and I presume the Operation buttons on the UI reads the Classifier information to determine if the message matches an Operation)

I presume it would *not* be good practice to mix updating the Repository via the api mixed with direct database updates...

thanks for any hints.

cwt

Oh, I'm using an older version of EA - 6.5.805... I don't think we are going to buy upgrades, but could I swap out the eeapi and dll for automation if these are bugs and are fixed?