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.


Topics - OpenIT Solutions

Pages: 1 ... 4 5 [6] 7
76
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.

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

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

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

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

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

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

83
Hi,

I can see its possible to create a fragment that's source is an SQL query. If i add the fragment within an Element section within an RTF template is it possible to access the associated Element ID within the SQL query ? Is there some sort of tag like #Branch# that can be used to access the element id, ie somthing like #ELEMENT_ID# that i can add to my sql where clause ?

Regards,

Jon.

84
Hi,

I'm sure this has been asked before (i suspect by myself). But my search hasn't turned up a result.

Using the RTF Report Generator in 9.3 (can't upgrade for fragments in v10 due to bugs in v10) is it possible to have a title page and intro section based on the selected package. Then to have all other sections repeat for each child package.

It looks like the RTF Report Generator wants to apply the "package" section to all "childpackages", ie the childpackages will be presented as the current/top level package. Any way around this ? Any guide/notes etc anywhere - this seems like such an obvious requirement. Can it be acheived without ModelDocuments ?

Does anyone know if eaDocX supports this capability ?

Appreciate any pointers,

Regards,

Jon.

85
Automation Interface, Add-Ins and Tools / RunModelSearch
« on: February 13, 2013, 03:56:19 am »
Hi,

Is it possible to use RunModelSearch from the automation interface to run a model search and send the result to a file ?

It looks from the docs that output will always go to the Model Search screen ?

Thanks,

Jon.

86
Hi,

I've got a Collection of Elements by running the repository.GetElementsByQuery. This works fine i have a collection with the element i want in it.

I then try to invoke Collection.Delete or DeleteAt - both give me an "internal application exception". So how do i delete an Element ?

Does delete not work against a collection retreived via a query ?

Any ideas ? Is there a common/known reasons for this error when deleting ?

Appreciate any help,

Regards,

Jon.

87
Hi,

Is there a way via the automation interface to Add Related Elements to a diagram ? I'd then want to apply a Layout, again is there method to apply a layout ?

Regards,

Jon.

88
Hi,

Really hoped this had been finally solved. I'm using 9.31 and i'm facing the age old problem of a repeating header on a table that i don't want. Followed all the normal guidelines by can't seem to solve...see segment of template below...i'm guessing it may have something to do with the fact that i'm only including the connector target element in the table ???

connector >
target >
element >
....the table...2 by 2 with header row (set to header)
< element
<target
< connector


? Any ideas - known bug (still?)

Regards,

Jon.

89
Hi,

Has anyone else noticed a marked performance difference using the Java API's Collection.GetByName as opposed to Iterating through the Collection. I want to do the latter as i want to compare Alias not Name fields. However the interator approach appears to run an order of magnitude slower (5 mins to update 2000 elements usign GetByName - over an hour using an iterator).

Any advice appreciated....

Regards,

Jon.

90
Hi,

I've posted and had a reply to this before - but as the search on this forum doesn't seem to work (?) i need to respost.

I'm struggling with base 64 en/de code of the shapescript section of an mdg technology XML file. I suspect its because i'm using Windows...when i select the base64 encoded text in the xml file, copy to a seperate (new file) tab in notepad++ and select decode base 64 - i'm given some binary output, i save this to temp.zip. However when i try to open the zip it fails with an unexpected end of archive message...Any ideas what i'm doing wrong ???

Pages: 1 ... 4 5 [6] 7