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 8
76
Automation Interface, Add-Ins and Tools / Element.CompositeDiagram
« on: October 31, 2014, 04:28:54 am »
Hi,

Since v10 we can use the Element -> New Diagram -> Select Composite Diagram menu option to select a composite from anywhere in the model.

However the API Element.CompositeDiagram only looks to set the first "child" diagram it finds as the composite - assuming that one is not already set.

I need to way via the automation interface to make a specific diagram the composite diagram (not always the first child found)....anyone know how to do this ??


Regards,

Jon.

77
Automation Interface, Add-Ins and Tools / Setting the "Context"
« on: October 29, 2014, 04:34:19 am »
Hi,

I looking for a way that my users can set a "context" that can be used when they are modeling to automatically set the default value of a specific tagged value - depending on the context that has been set by the user.

If the user were to set their context to "As-Is" the default of the tagged value status (which I define in an mdg) would change to As-Is. My MDG defined a bunch of connectors that have this status tagged value.

If the user sets there context to target the tagged value status default value is set to "target".

This way I can tell if relationships that are added to my model are part of my current or target state - that's the plan anyway.

The only solution I can think of is to create two different mdg files - one for current state modeling and another for target - which have the default for the status tag set to As-Is or Target respectively.

My users then use settings mdg technology so select the appropriate technology - ie set their "context" this way...

Seems a bit messy to me - can anyone think of a better solution ?

78
Hi,

Anyone know way to apply diagram filters via the automation interface ? I want to apply a filter prior to html generation ?

Regards,

Jon.

79
Automation Interface, Add-Ins and Tools / Is a user in a group
« on: August 11, 2014, 08:50:54 pm »
Hi,

Is there a way via the automation interface to check is a user is in a specific group ?

Regards,

Jon.


80
Automation Interface, Add-Ins and Tools / Bug with fragment in v10
« on: July 25, 2014, 06:46:17 pm »
Hi,

I've reported a bug with fragments in v10. To reproduce add a fragment that doesn't return any rows for the element your reporting on. First time you generate the report - Sparx will add the content of the System template (model document:master template) into your document. Run the same report again and it will not be included.

Anyone any idea where the content of (model document:master template) is stored ? In a table ? In a config file ? In the registry ? Or deep in the cuts of Sparx (so I can't edit it in any way) ?

Regards,

Jon.


81
Automation Interface, Add-Ins and Tools / Tagged Values
« on: July 11, 2014, 09:05:17 pm »
Hi,

Is it possible to specify that a given tagged value MUST have a value ? In my specific case as default will not suffice.

Also is it possible to specify that if a given tagged value is given a value then one or more other tag values must also be given a value ?

Regards,

Jon.

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

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

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

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

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

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

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

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

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

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