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 - Pawel Zubkiewicz

Pages: 1 2 3 [4] 5 6
46
General Board / Recursive "undo check out"
« on: March 25, 2015, 02:28:18 am »
Hi,

Any idea how I can revert local changes in my project with version stored in (SVN) repository on a branch?

There is "Undo Check out..." option in Package Control context menu. Unfortunately it only works on one level, it does not work on subpackages.

I tried to write a script to automate this, but i dont see method for this in EA.Package class there are however all other methods  for version control >:(

Any Idea what I can do?

47
General Board / Re: BPMN process diagram validation
« on: March 23, 2015, 09:06:42 pm »
Thank you for your help guys.

Additional question.

Unfortunately, I started modeling a new project with old BPMN version enabled in MDG settings. Now i turned them off, only BPMN2 is enabled.

I feel that all of the elements in my business processes like:
- Business Process
- Activity
- Events

Are not considered by EA as BPMN2 (in properties of them I don't see BPMN2 tab).

Is there any way to adjust/migrate/transform them so EA would consider them as BPMN2 ?

48
General Board / Re: BPMN process diagram validation
« on: March 21, 2015, 03:54:28 am »
Quote
You can try Project/Model Validation/Validate Selected.

Thanks for answer. That's partially correct.

But I don't see it in the menu. I don't have Project / Model Validation option in menu. I'm using EA12 Ulitimate trail with complete menu set. Anyone can have idea why I don't have this option?  I can acccess it via Ctrl+Alt+V key shortcut.

I'm using right now EA12 trial (my company considers buying it), and I have only experience with version 9 and 10. Generally I'm focusing on new things in this release.



49
General Board / BPMN process diagram validation
« on: March 20, 2015, 11:13:15 pm »
Hello,

Is there a way to validate syntactical correctness of BPMN process diagram?

I'm using EA12.

50
Uml Process / Re: EA does not update link names in Notes
« on: September 17, 2015, 06:48:21 pm »
Quote
Quote
You mean hyperlink? Then Yes. Select Attribute on the Hyperlink Details dialog.
Sorry, I don't follow your answer. Maybe I will rephrase question.

I found it in the menu, you need to click an icon 'Hyperlink' as you said (from context menu it's not available - strange).

Quote
No. This is not possible in EA. EA has a number of weak links which are created as copy (the above and at least attribute types). You might ask for a new feature. But you might as well dive in the next pool and hold your breath for the next day.

Thanks for answer. I don't see it as new feature, rather the bug in existing one ;-)
Anyway, sometimes I find this forum ironic. Most of "power users"/experts praise EA as the best tool on the market (I agree) and at the same time they say it's impossible to have Sparx fix a problem ;-)

Anyway, thanks @qwerty and @VKN for your valuable help.

51
Uml Process / Re: EA does not update link names in Notes
« on: September 17, 2015, 06:10:56 pm »
@qwerty
I will use example

In the picture we see notes of UseCase element. In blue are links to elements of type State defined in some other package.
When I will rename 'Draft' to "something else' the Note in UseCase will not be updated (there still be a link with text 'Draft').

My question was: Is it possible to make EA update those links?
VKN says it's not :-(

Quote
You mean hyperlink? Then Yes. Select Attribute on the Hyperlink Details dialog.
Sorry, I don't follow your answer. Maybe I will rephrase question.

Please look at the picture above, I was asking if it is possible to make link to the particular attribute of  Enum class in a same way I made link to State elements?

52
Uml Process / EA does not update link names in Notes
« on: September 17, 2015, 12:57:16 am »
Hi,

In Notes field of any element I can create a link to existing element (Create -> Link to Existing Element). However when I rename the target element, the link text is not updated in the Notes field.
Is there a way to force EA to update those referenced names?

And another question: when I'm describing pre-conditions for use case I would love to refer (create a link ) to particular value of ENUM class - is that possible?

Maybe, I'm missing one layer of UML modelling here? I know I could use StateMachine diagram and define different states, after all ENUM could be considered as implementation of StatMachine... but creating StateMachines for each ENUM seems like a overkill for many cases.
I did StateMachines for so called Focal Objects in the domain, because main business process is build upon those states, but those are first-class citizens of the domain, not some supplementary, minor, trivial objects  ;D

Any suggestions what to do?

53
Automation Interface, Add-Ins and Tools / Re: Template for UseCase
« on: September 24, 2015, 09:01:31 pm »
Script that creates virtual document... didn't know it's even possible :-)
Will look into that when I will have time.

On the other hand if Sparx would add a possible to include diagram found by SQL into generated document our life would by much simpler :-)

Thank you Geert.

54
Automation Interface, Add-Ins and Tools / Re: Template for UseCase
« on: September 24, 2015, 08:00:13 pm »
Hi Geert,

Virtual documents are very powerful and ideal (in my opinion) solution for generating huge documents that include multiple views, for example Software Architecture Document, Business Requirements Document etc.

However, I want to give my analysts a tool(template) that will allow them to generate documentation just for subset of all use cases.
The real work scenario
1. Business creates change request
2. After preliminary analysis we know that this changed request impacts two requirements, let's say REQ011 and REQ121.
3. Further more, those two requirements are realized by two use cases : UC012 and UC033.
4. Analyst does changes to requirements, use cases and associated mockups.

Now I want to have simple solution that allows to generate document that will contain only changed things. I don't want to do report by "last modification date" here. Assuming that I have my model well organized and everything is traced to each other, I should be able to select in Project Browser (or search results) those two use cases UC012 and UC033, hit F8 and generate a document that will contain only elements in a scope of change.

5. Finally, analyst gives a generated document to dev team, so they know what to do.


When I will have "clever" template for UseCase specification that includes realized requirements by UseCase (I have that now) and associated mockups (I don't have that) I will achieve what I need.

By using Custom SQL in fragment it's easy to find associated mockups with UseCase. However as far as I know it's extremely hard / impossible to include a diagram that way.

Maybe you have an idea how I should approach that problem?

55
Automation Interface, Add-Ins and Tools / Re: Template for UseCase
« on: September 22, 2015, 10:35:15 pm »
Since we are talking about UseCase template. Another thing I would love to have in a generated document is a WireFrame diagram (mock-up) connected to the particular use case.

I understand that unless I will put my mockup diagram in the same package (or even inside/under usecase element) than it's impossible to include mock-up (from different package) without writing my own Document Generator in C# or Java?
Or is there some clever way to do it?

Let's assume I have such project structure
Code: [Select]
1. Project
1.1 UseCase Model
1.1.1 UC1
1.1.2 UC2
1.2 Mockups
1.2.1 Mockup 1 (connected with UC1)
1.2.2 Mockup 2 (connected with UC2)

56
Automation Interface, Add-Ins and Tools / Re: Template for UseCase
« on: September 22, 2015, 10:09:39 pm »
Quote
I've sent in a feature request to Sparx to make that information available in the templates.

Wow, you asked for feature which clearly could be scripted  :o ;D
I hope you also asked for decent numbering of alternative scenario steps, like:
2a
3a

Quote
If you can't wait for that I'm afraid you'll have to write the whole scenario section yourself in a custom fragment.
Actually I don't even know if that's possible or at least I can't imagine it. You can't include fragment inside other fragment which makes it particularly hard when dealing with collections.

And we have a lot of collections here
1. Structured Scenarios are stored as Collection in Element class, further more,
2. each Structured Scenarios has a Collections of ScenarioSteps
3. each ScenarioStep has a collection of ScenarioExtension

Those ScenarioExtension objects contain information that I really want to put in generated document.

Even if I write a script for this, and execute it by a fragment then as you said I will have to also implement whole Use Case scenario template by myself, so acutally it's possible but not worth it :-(


57
Automation Interface, Add-Ins and Tools / Template for UseCase
« on: September 22, 2015, 09:29:12 pm »
Hello,

I'm designing template for UseCases. I'm using Structered Scenario thing and I like it very much from desinger perspective. However from template reports perspective it's not so excellent.

So I have this structure of sections: Package -> Element -> Scenario -> Structured Scenario -> Exception.

This allows me to generate document with each step of the use case scenario. Also last exception section allows me to put information about alternative flow for that step but only in "basic path" main scenario.
When template evaluates alternative scenario called "Invalid e-mail address" I can't figure out how to put information about where this scenario starts and when joins back main scenario.

What I want to achieve in generated document with similar structure:
Code: [Select]
Header: Main scenario: ABC
1. Step 1
2. Step 2, Alternative 2a - alternative scenario XYZ - joins at 1.
3. Step 3

Header: alternative scenario XYZ
This scenario starts at step 2 of main scenario and joins back at step 1.
1. Step 1
2. Step 2
3. Step 3
4. Step 4

I managed to have everyting except This scenario starts at step 2 of main scenario and joins back at step 1. sentence in alternative scenario sub-chapter.

I tried to approach this witch custom Fragment, but (to my surprise) EA does not allow me to insert fragment inside Scenario section. (I can insert any fragment inside Element section though).

Any help will be appreciated  8-)

58
The code that Geert gave is proper one.

Here you have a method that I wrote for adding TaggedValues to the element:
Code: [Select]
private bool addTaggedValue(EA.Element req, string tagName)
        {
            TaggedValue tag = req.TaggedValues.GetByName(tagName);
            if (tag == null)
            {
                const string defaultValue = "";
                var element = req.TaggedValues.AddNew(tagName, defaultValue);
                element.Update(); //must be executed in order to save new tagged value
                req.Update(); // is it needed?
                return true;
            }
            return false;
        }

the AddNew method comes from Collection API (link nr 4).

I also recommend those help files for you to uderstand what is going on:
1. http://www.sparxsystems.com/enterprise_architect_user_guide/12/automation_and_scripting/element.html
2. http://www.sparxsystems.com/enterprise_architect_user_guide/12/automation_and_scripting/element2.html
3. http://www.sparxsystems.com/enterprise_architect_user_guide/12/automation_and_scripting/taggedvalue.html
4. http://www.sparxsystems.com/enterprise_architect_user_guide/12/automation_and_scripting/collection.html

59
That's an coincidence, I was thinking about adding such feature to my addin today. This should be fairly easy to implement.

The second advantage could be support for many projects in one repository, where each project should have its own numbering. Right now EA does not support that, as far as I know.

60
Be aware that EA has internal counter, so when you create an element it will be given the next id, let's say REQ-026. When you will delete that element from model, next time you will create new element, EA will give it REQ-027 even though REQ-026 no longer exists.

Pages: 1 2 3 [4] 5 6