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

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

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

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

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

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

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

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

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

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

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

402
Hi,

Many thanks for the help.

Regards,

Jon.

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

404
Hi,

Is it possible to change the orientation of text when using a shapescript. I want to write a shapescript for Lanes/Pools in BPMN that will replace the name if its blank with the content of the participantRef tagged value. All works fine in the script, but i can't figure out how to make the text vertical when the lane/pool is horizontal - any clues ?

405
Hi,

Thanks for the pointer. I've now got an SQL Fragment that pulls back the raw data in need by using the #OBJECTID# tag in my where clause.

However i also need to display a diagram associated with the OBJECTID as a custom tag within my fragment. Is this possible ? Any pointers on this one anyone ?

Appreciate any help,

Regards,

Jon.

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