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 ... 32
391
Hi,

I'm using GetElementsByQuery. The query has an order by clause. However the collection returned by GetElementsByQuery is not using the same order.

(its not using TreePos and Pos is not avalible)...Any idea how i can force the ordering of the collection returned by GetElementsByQuery ?

Regards,

Jon.

392
Hi,

Solved this one. FYI we use a Template package - so the placement of the 'label' on the Template diagram overrode whatever i had in the script  :(.

Regards,

Jon.

393
Hi,

I'm struggling with a specific problem. I have a shapscript for a Gateway. I want to add a label under the gateway in the center. I've tried various combiniations of setorgin:

shape label
{
      setorigin("S",0,0);      
      if (HasTag("gatewayType","Inclusive")) {
            println ("ANY");
      }
      if (HasTag("gatewayType","Parallel")) {
            println ("AND");
      }
      if (HasTag("gatewayType","Exclusive")) {
            println ("OR");
      }                  
}

The lable always seems to pop up to left. Any idea what i'm doing wrong/missing ?

Regards,

Jon.

394
I found that if the statement didn't start with SELECT ... it would fail - so recursive queries in SQL Server for example...the solution we used was to create a VIEW on the SQL Server and issues simple SELCT against the VIEW from Sparx...

395
Hi,

Old topic but following advice here http://community.sparxsystems.com/tutorials/603-75ea-as-an-unattended-windows-service-on-windows-server-2008r2-and-higher doesn't seem to work for me.

A bit of a twist - which might be causing the issue - i've deployed an c# / .net 4+ app to IIS7 that uses the Sparx automation interface. All is fine when i'm logged on to the server - when i'm logged of users receive:

The server process could not be started because the configured identity is incorrect. Check the username and password.

From IIS. I appreciate that this isn't a Sparx issue - but has anyone got the automation interface running within IIS7 ?

Any hints / tips beyhond the guide referenced above ???

Regards,

Jon.

396
Automation Interface, Add-Ins and Tools / Re: Shape script: text color
« on: April 23, 2014, 02:15:23 am »
Hi,

Have you looked at template packages ? These can be used to set colour/font/font size etc of elements. Not helpful if your looking to deploy your mdg to third parties.

However i think you can also set things such as font/size/colour of an element in your mdg profile ... set as required on the mdg profile diagram and it will be added to the xml...


Regards,

Jon.

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

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

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

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

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

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

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

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

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

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