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

Pages: [1]
1
Bugs and Issues / Get All Latest that never completed
« on: November 02, 2016, 07:41:22 am »
We had a user of a shared model (DB + VCS) mistakenly execute a Get All Latest command. The user eventually closed Sparx, but now, weeks later all users of the shared model still get a warning that the Get All Latest command has not finished.

Is there any way to cancel this?

2
General Board / Projected release date for EA V12?
« on: January 31, 2015, 07:23:58 am »
I am still on V10, and I am wondering if I should go through the trouble of upgrading to V11 if V12 will be out in the next few months.

(I say trouble because in the corporate environment upgrading is not a simple process with required approvals etc.)

Is there any projected date? (other than when it is ready)

3
General Board / VCS and additional properties / metadata
« on: January 29, 2015, 02:57:29 am »
Hi all,

Is there any way to add additional "properties" to the information that is stored in the VCS? In particular I am interested in Subversion(SVN) which supports the idea of tag-based meta-data for each file stored in SVN.

We have a requirement to add security classification tags to files stored in a repository like SVN. In other workbenches like Eclipse there is support to add additional meta-data tags to the files stored in your VCS.

Is there any support for something like this is Sparx? I do not see any option for this.

4
General Board / Simple search using GUID?
« on: August 22, 2014, 03:10:02 am »
Maybe I just can't find it, but I don't see an easy way to do a simple search for an element using the GUID.

I am trying to chase down which elements are impacted by the "cross package reference" warning when you commit changes to a VCS.

The warning dialog only gives you GUIDs, and I want to investigate further, but I see no easy way to search for an element based on the GUID.

I will write a quick script in the meantime, but surely there must be a direct way using the workbench?

5
General Board / Issue with Shared DB and Get Latest from VCS
« on: December 06, 2013, 10:34:46 am »
Hi Folks,

Trying to use a shared DB instead of single user EAP files, and I am running into an issue.

This is a shared DB (SQL Server) backed by Version Control (SVN).

I can check out and check in, but I cannot execute the Get Latest or Get All Latest menu commands.

The error message I get is: "The current action cannot be completed as the neccessary security is not available."

I am part of the Admin group, with all rights checked on. I do not see any other rights that I can give myself.

Any ideas?

6
General Board / V9 under Crossover on mac?
« on: June 18, 2011, 01:34:58 am »
I have been using the trial V8 on a mac under Crossover. I am now ready to purchase, but I now see that V9 is available.

Is there (or will there be) support for V9 under Crossover?

If yes, what is the best way to upgrade and purchase?

7
Bugs and Issues / Sparx hangs drawing relationships
« on: March 11, 2014, 04:44:23 am »
I have come across this once in the past but we suddenly have a few more examples.

When attempting to draw a relationship line between two elements on a diagram, Sparx hangs, and has to be crashed and restarted.

In the past I narrowed it down to one side of the relationship, where it seems an element has gone bad somehow. If I completely recreate that element we can get things to work again. I was in the process of trying to recover a bad element like this today, when I started to find a few more elements that seem to also have gone bad.

I was wondering if anyone has encountered this before?

8
Bugs and Issues / URL tagged value not a hyperlink on html export
« on: September 07, 2013, 05:12:03 am »
We have some tagged values using the predefined tagged value type of URL.

When the model is exported as html, these tagged values do not format as hyperlinks.

Using V10.0.1008


9
Bugs and Issues / URL in Notes text mangled when exporting html?
« on: July 17, 2013, 11:35:15 pm »
We use urls in the text within the Notes field of the element property dialog. The urls are created using the hyperlink tool button above the notes field.

The urls work fine within sparx, but when the notes are exported using Documentation>>HTML Report..., the url is prepended with "http://" and this causes an issue if you want to use https (which is what we require for the urls we are linking to).

For example if I want to link to:

https://www.google.com

the link works fine in sparx, but when exported to html the link becomes:

http://http//www.google.com

which is a bad link.

10
How can I retrieve the version control configuration information for a version controlled package?

I have looked around at the sparx object model documentation but I do not see any way to get this info for a version controlled package.

I see that I can check "package.isVersionControlled", and I can also retrieve the file name of the package in the vc system using "package.XMLPath", but I also need to get the VC repository details for the package, such as the URL or the Repository Root.

Anyone know where to look in the model for this information?

We are migrating packages from one VC repo to another and I would like to run a script that can tell me which VC repo each version controlled package is configured to use.

11
Hi all,

I am creating my first profile using the MDG helpers. After reading all I could find, and some trial and error, I have the basics working, but I am running into some quirks extending non-uml elements.

As part of my profile I am extending some BPMN2.0 elements, for example BPMN2.0::Activity.

The first issue is the look/drawing of the extended element. BPMN2.0 Activities will decorate the basic shape depending on the value of the "taskType"tagged value defined in BPMN2.0 for Activities. For example if the value of "taskType" is set to "Service", the shape will be decorated with a set of small gears in the upper left corner of the shape.

I have tried no shape script, and I have tried a simple shape script that just calls:

shape main{
      DrawParentShape();
}

But all I ever get is the basic shape with no decorations. (I see in the shape script help files that they actually have a section for drawing what they call "decorations". I do not know if the BPMN2.0 profile adds the extra shapes as "decorations", I am just loosely using the term here).

The second issue may be somehow related to the above (assuming some script may not be finding the tag it is looking for), and that is that the BPMN2.0 tagged values are normally presented in a structured way, grouped into different categories in the tag value editor windows. For my stereotypes that extend the BPMN2.0 types, the BPMN2.0 tags get flattened into a single "BPMN2.0" grouping, and in addition they all appear twice in the tag value editors. Once under a "BPMN2.0" grouping all flattened, and then all repeated again in the regular "tagged values" grouping.

This is not just some visual duplication, there actually are two complete sets of tags in the element. I can change the values independently, and using a script I have to dump all tag values for an element I can see that there actually are duplicated tags.

Anyone have success in extending non-uml profiles?

12
Hi all,

I am in the process of finalizing a profile delivered in MDG, and unfortunately I have realized a little late in the game that I should make sure the profile stereotype names are unique, due to the flat stereotype namespace in sparx. For example I had stereotypes like "Report" "Interface"  "Screen" etc., and these are just too generic and likely to clash with other stereotypes and cause subtle problems in the future, so I have changed the profile stereotype names to be more unique.

I already have model elements using the previous stereotypes, and now I need to migrate them in place using a script. I have performed some tests and I am achieving partial success in replacing the stereotypes with a script, but not complete success. In the end I have to invoke "synchronize stereotype" from a toolbox to get the last change. I was hoping to completely automate this migration. Running a script, and invoking the synchronize once is not too bad, but I am wondering if I am missing something in my script.

Here is the relevant jscript code:

//copy tagged values
var myTag as EA.TaggedValue;
myTag = GetTaggedValue (theElement, "TagName");
      
//remove all old stereotypes
theElement.Stereotype = "";
theElement.StereotypeEx = "";
theElement.Update();
theElement.Refresh();

//add new stereotype
theElement.Stereotype = "ExScreen";
theElement.Metatype = "ExScreen";
theElement.Update;
theElement.Refresh();
      
//restore tagged values
TVSetElementTaggedValue( theElement ,"TagName",myTag.Value ,true);
      
//final update
theElement.Update();
theElement.Refresh();

This seems to do everything, except when I look for my profile defined tags, they do not show up grouped under the profile name, like they do when creating a new element. If I run a script I can see the tags are not associated with the profile with fully qualified names. If I invoke "synchronize stereotype" from the toolbox, then the profile name grouping appears with my values intact and everything looks fine.

Am I doing some thing wrong or missing a step?

(I am sure I may be going overboard with the Update() and Refresh() also)

13
Hi all,

When delivering scripts with MDG, is there any way to mark the scripts as Project Browser type?

The MDG builder wizard does not offer any option. I at first assumed the type would be the same as what they are in the workbench, but they only seem to be delivered as "normal" scripts.

I can see in the MDG xml that there is a "type" tag at the individual script level. I tried changing one from "normal" to "project browser" but it had no impact.

If I have to deliver these as normal scripts, they will have to be reworked and they will be less usable. I want to deliver as much as possible in the MDG, it is a nice and easy delivery mechanism with an easy update for the end user when it changes.

14
I don't know why but I am getting duplicate tagged values when creating a profile that extends a non-uml element.

The xml for the profile element is pretty plain and simple:

<Stereotype name="Report" notes="" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0" generalizes="BPMN2.0::DataObject" baseStereotypes="BPMN2.0::DataObject"/>


I have reduced my test case to as simple as possible. New EAP file, new MDG model from the wizard, a single stereotpye as defined above, a single toolbox with one item, create the MDG xml using the wizard, import the technology, create an instance, and I get doubled tags.

The tags being duplicated are the BPMN2.0 tags. They show up under the BPMN2.0 category, and then again under the plain "Tagged Values".

I have given up trying to fix this, and have written a script to remove the extra tags.

Is this a bug or am I doing something wrong? I have reduced it to such a simple case I can't see anything wrong.

15
Hi all,

Still trying to work through creating a profile that extends non-uml profile elements.

My example is extending BPMN2.0

In the instructions it states to:
  - drop a metaclass on the diagram, and in the "extend metaclass" dialog that pops up, go to the last tab and find the non-uml stereotype you want to extend
  - using the Add Stereotype helper in the toolbox, define your stereotype, set the name, and do not pick a metaclass
  - create a generalize relationship from your new stereotype to the non-uml stereotype/metaclass

This is fine and so far (basically) works, but my question is:

 - How do you then use all of the useful features that are available and stored as attributes in a true metaclass? Without setting a metaclass for your stereotype there is no option of setting these features.

I have tried 2 workarounds, but I am running into so many unexplainable quirky results I want to check if anyone has a solution.

Attempt 1: I have tried adding the true metaclass for the non-uml stereotype and having the non-uml stereotype extend the metaclass.

So for example:

MyML::MyStereotype  --generalizes--> BPMN2.0::DataObject --extends--> UML::Artifact

Attempt 2: Add the true metaclass, and have my stereotype directly extend it

For example:

MyML::MyStereotype --generalizes--> BPMN2.0::DataObject
and
MyML::MyStereotype --extends--> UML::Artifact

Both styles make the metaclass properties/feature available in the profile helper when editing MyStereotype, and both seem to provide similar results, but I am wondering if there is a correct way to do this.

As I mentioned I am running into wierd quirky results when testing my profile, so I want to make sure I am doing this right.

(quirky results like: tagged values being duplicated; some BPMN elements draw their decorations properly, some do not; etc.)

Pages: [1]