Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - OpenIT Solutions

Pages: 1 ... 25 26 [27] 28 29 ... 31
391
To find Elements by name you could also use  Repository.GetElementSet (<SQL>, 2);

i.e. Repository.GetElementSet ("SELECT * FROM t_object WHERE name LIKE '%" + name + "%'", 2);

It returns a collection of EA.Element.

392
The best quicklinker examples i have found are in the bpmn mdgs...have a look in the MDGTechnologies folder under your sparx install dir.

393
Its probably a PATH or CLASSPATH issue. Is Jenkins using the same JRE/Java instance ? Assume you have added eaapi.jar onto the classpath used by Jenkins and that SSJavaCOM.dll is on the PATH ? I typically just add the SSJavaCOM.dll to the bin folder of my JRE/Java runtime....

394
Automation Interface, Add-Ins and Tools / Re: MS Word Import tool ?
« on: October 17, 2013, 12:51:16 am »
The half way house i used for this was a modified version of Geerts excel imports script. My users had tables of requirements in Word documents. So i got them to paste the tables into my modified import script, which created packages and requirement objects.

395
Automation Interface, Add-Ins and Tools / Re: Workflow Scripts
« on: January 23, 2014, 07:57:45 pm »
Hi Dermot,

Thanks for the response. My requirement is to run an SQL query that checks the contents of the selected package when its status is changed to, in this case, 'Ready for QA'. I can see using the workflow script i can check that the metatype = 'Package' and that the NewValue = 'Ready for QA'.

Can you confirm however that i have access to no capability provided by the Repository Class ?

You mention 'filtering' could you expand on this ? Is there a way to address my requirement using workflow scripts ?

Regards,

Jon.

396
Automation Interface, Add-Ins and Tools / Workflow Scripts
« on: January 23, 2014, 06:11:07 am »
Hi,

I'm trying to call Repository.GetTreeSelectedPackage within a workflow script. The script has no syntax errors and is loaded by the workflow engine. I've run tests that show that the AllowStatusUpdate method is being called as it should, the issue is that the script stops at the line containing my Repository.GetTreeSelectedPackage call with no errors.

Are you not allowed to call Repository methods within the workflow script ?

Regards,


Jon.

397
I suspect for this one you will need to define a profile/mdg - so sparx knows that composite diagrams are supported for the stereotype and their type ???

398
Want help with this qwerty - but could be a useful tip for your shapescript book - when i was trying to get to grips with shapescripts - i started a new project then imported the BPMN MDG. This gave my access to the scripts via Setting->UML Types-Stereotypes. So i could for example view the shapescript for Pools/Lanes/Actiivties etc to figure out how things worked and of course copy and paste sections of a script into a new stereotype/script easily...

Regards,

Jon.

399
Hi,

As you may know the Java automation interface is missing some capability. As a workaround - is it possible to invoke a vbscript defined within Sparx via the Java version of the automation interface ?

I have for example written a vbscript in sparx that uses the DocumentGenerator to produce some complex custom reports. Within sparx the user just runs the script against a selected package to generate the report. We have a Java web app, that currently calls the Project.RunReport command for our simple reports. The Java API doesn't contain the Repository.CreateDocumentGenerator so i cant replicate the complex report generation within the Web App. Hence request above.


Regards,

Jon.

400
Automation Interface, Add-Ins and Tools / Re: Start EA using batch file
« on: January 15, 2014, 04:50:02 am »
Hi,

You might be better of creating project shortcuts (see http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/projects_and_teams/shortcuts_to__eap_files.html) and launching them from the batch file (see windows 'start' command). I don't think the ea.exe has command line options.

Regards,

Jon.

401
Hi,

Don't think you can - currently. I suspect (based on a response from Sparx to a similar question) that you may be able to in the next major release. But i also suspect you want be able to hold me or Sparx to that :-).

Regards,

Jon.

402
Tried this and it doesn't appear to work; so i've copied my gif over the ea.gif in the images folder - not the most elegant solution - but seems to work.

403
Is it possible using RunHTMLReport to specify a head graphic and title as you can on the html gen dialogue within Sparx itself ?

Regards,

Jon.

404
Automation Interface, Add-Ins and Tools / DocumentGenerator in Java API
« on: November 11, 2013, 11:16:52 pm »
Hi,

Am i right in assuming that the DocumentGenerator is not avalible in the Java API ? I can't find it in either the repository or projectinterface classes ?

If its not avalible in the Java API - is it avalible in the C# API ?

Regards,

Jon.

405
Hi,

There isn't anything in the standard shapescript notation. You could however write an add-in which does it using the standard automation interface, element.TaggedValues returns the collection to iterate. You can then invoke the add-in from the shapescript.

Regards,

Jon.

Pages: 1 ... 25 26 [27] 28 29 ... 31