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 ... 26 27 [28] 29 30 ... 32
406
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.

407
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.

408
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.

409
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 ???

410
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.

411
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.

412
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.

413
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.

414
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.

415
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.

416
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.

417
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.

418
Not sure if it will help - but i had a similar issue. You need v10.08 or above (issue v10.07/06 i think), you may also need to perform a refresh on the element, before you will see the tagged values.

419
Hi,

Many thanks for the help.

Regards,

Jon.

420
Hi,

I've got a vbscript in Sparx that creates an element. I then want to open its properties dialog so the user can populate some tagged values...Can this be done via scripting ? If so how ?

Thanks,

Jon.

Pages: 1 ... 26 27 [28] 29 30 ... 32