Properties Dialog in EA - enterprise-architect

Is there any Event in EA that is triggered when the properties dialog in EA is opened and when it is closed.
Can we get the instance of the properties dialog.

Use EA_OnContextItemChanged to catch property dialog openings. See also the related EA_OnContextItemDoubleClicked and EA_OnNotifyContextItemModified operations in the EA help
Not from EA's API. You would need to go through the Windoze handles, though I have no idea what you want to do with that.

Related

Custom Markers For Elements In Project Browser In EA

I am working on importing and modifying requirement type elements in EA through C# add-in.
I want to add custom marker near the element in project browser similar to markers that are set when an element is locked.
I had worked on shape scripts in MDG technology yes unsure if its possible to replicate a custom marker similar to locked element.
Kindly help me if any EA API is available for the same .
The simple answer is: not possible.
You might send a feature request to Sparx, but that browser has the same look/functionality since I know it (2003). So - little chances.
What you "could" do it to write your own browser in a window you can open and control inside EA. But - is it worth that?
EA doesn't provide any direct API available from setting\changing the ICON.
The only option is via shape script for your custom stereotypes.

From Dialog to Conversation: how to do what <folder label="Global"> do?

In Watson Dialog, <folder label="Global"> could be used to handle objections.
If in middle of some dialog user type an objection, folder Global could answer and after that keep the dialog at the same point.
I trying to do the same with Watson Conversation but I'm lost. Apparently it is not possible or not easy. The node everything_else don't solve the problem. It breaks the conversation.
Watson Conversation is or not is a evolution of Watson Dialog? It has less features?
Conversation and Dialog are two different systems. Dialog would maintain state, while in Conversation you are expected to maintain it.
There is no global feature at this time, but you can simulate the feature through two different ways.
1. Two workspaces.
This option is probably the easiest. You have your second workspace with all your global terms. In your process flow of the first workspace at the end of a check area you have a keyword. This keyword triggers your application layer to search the second workspace for the global answer.
This way you can maintain your position in the first workspace easily.
This example uses the return text "SearchGlobal" to trigger it. Once it completes, it will return to asking for a yes/no.
2. One workspace. Global folder
In this case when you see the "SearchGlobal" text, you store the context object from the response. Then send the users input again, only with the context object to jump to a related branch.
You can do this by either loading a context variable, or storing a pre-existing context object to jump to a branch. The latter is a little tricker.

How to link from a diagram to a script

Imagine you have a diagram in Sparx Enterprise Architect and you would like to provide a button or link to start some kind of script.
I know that there are diagram-type scripts which can be accessed through the context menu of a diagram but I would like to present the user of a diagram a button or link to execute a certain script.
Is this possible?
Not out of the box. EA allows you to create hyperlinks which run any one of a fairly large set of EA commands, but this set does not include the ability to run an arbitrary script.
What you can do is create a stereotype and an Add-In which catches the EA_OnContextItemDoubleClicked event and, after checking the stereotype, performs the desired function.
Note that the EA API does not allow you to run an arbitrary script either, so you'll have to implement the function separately in the Add-In.

How to make a depending relation between a class and a component in Enterprise Architect

I'm updating the existing documentation of a project I've done. In short, I have to add a new library to communicate the application with a new hardware the client wants to use. So far so good.
So in EA I went to the existing diagram and added a new component. I have a class that acts as controller for the actions this new hardware is going to do, so in the new implementation of the system, this class depends on the new component.
I tried to create a new dependency relationship between them, but when I release the mouse, a popup appears telling me that the connector used between origin and destination elements is not permitted. It prompts me with valid relationships between a class and a component. In that list I can see the dependency relationship, which is the one I'm trying to set up.
This is the popup:
Any ideas of what am I doing wrong?
Thank you in advance.
To me, it looks like some other Model validation is in place. What MDG Technologies do you have enabled? Which Toolbox / diagram are you using.
Go to Settings -> MDG Technologies and try to unselect the ones that are not standard with EA and try again, it must work.
PS - Works fine for me.

MOSS 2007 - Customize Send To Menu

We currently have a need to add a custom menu item to the Send To menu within our document libraries that would allow a user to create a link to the currently selected list item within another library. When the user clicks on the new "Send Link to..." menu item, they should be prompted to browse to the library in which the link should be added. Once the user chooses a destination, the link, along with the metadata from the list item, should magically appear in the selected desitnation library. Once again, we only want a link, not a copy of the file. Is this possible to do? Code examples would be much appreciated.
Does it have to be in the send to menu? Can it also be directly in the context menu (say at the bottom)? If so, you can create a feature that deploys a CustomAction to the site. If it really, REALLY needs to be under the "send to" menu, you are going to have to use javascript (since that is how the out of the box context menu is created) to "hijack" the menu and insert your own item.
IMHO this is rarely needed, a CustomAction is the preferred way of doing this. It is the easiest and most "maintainable" (all it is is a feature + customaction definition with maybe some code, all of which are deployed using a solution).
More info on CustomActions here.
P.S. if you do decide to go with javascript, don't go editing the out of the box sharepoint js files in SharePoint's 12 Hive, but add a ContentEditorWebPart to the page and insert your Javascript in there.
P.P.S. While assigning a method from an assembly as the action for a CustomAction is allowed in most cases, it is not for the ListEdit (item) context menu.
What they say is that "Sharepoint server 2010 will have it out of the box", i.e. documents may stay where they were created and links go to the Records center (named "In Place Records Management, see http://www.cmswire.com/cms/document-management/the-scoop-sharepoint-2010-records-management-005948.php).
MOSS 2007 requires the actual document to be copied to the Records repository to be registered.