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 - Viking

Pages: 1 2 3 [4] 5 6 ... 15
46
Hi, I have an element A and with a click I want to jump to diagram 1 oder diagram 2. The reason for this request is that I model a value chain. A process (element A) summarizes several variants (here digram 1 with process variant 1 and diagram 2 with process variant 2). Is there a way to get a selection box for an element with more than 1 choices? At the moment I am using hyperlinks to jump from element A to diagram 1 or 2. I also tried a Child Diagram and added the variants there (n processes in 1 diagram which I do not want). Both alternatives are not satisfactory. Any ideas? Many thanks in advance V.

47
Automation Interface, Add-Ins and Tools / Re: Timer
« on: April 26, 2017, 03:35:50 am »
Well, Windoze does have something like cron. I don't know how it's called and presumably it differs from Windoze 95 to Windoze 10 (hey, have they really published a version 85 less?).
q.

Many thanks. I will try this.

48
Automation Interface, Add-Ins and Tools / Re: Timer
« on: April 25, 2017, 10:00:13 pm »
Write a script ans use the API call ExportPackageXMI : http://www.sparxsystems.com/enterprise_architect_user_guide/12.1/automation_and_scripting/project_2.html
q.

Hi q.,
Thank you. I am not sure If I understood you correctly. I am more looking for timer. I cannot see the timer in this conext.
V.

49
Automation Interface, Add-Ins and Tools / Timer
« on: April 25, 2017, 03:07:03 am »
Hi,

Is there a possibility to start XMI-im- and exports with a timer? We have to ex- and import very big models and want to do this at night after the database backups.

Many thanks in advance, V.

50
Does anybody have an idea?

51
If you use Javascript instead of JScript or VBScript EA will debug it without an additional component being installed.
Hi Simon, I tried to debug JavaScript, but it does not work: "Session is undefined".

[239945911]      Stack recording threshold set to 3 frames
[239945988]      Default Directory is C:\Program Files (x86)\Sparx Systems\EA
[239945988]      Agent dll found: C:\Program Files (x86)\Sparx Systems\EA\vea\x86\SSScriptAgent32.DLL
[239945988]      Default Directory is C:\Program Files (x86)\Sparx Systems\EA
[239945988]      Agent: Started
[239946096]      Session is undefined

Could you tell me what went wrong? Best regards, V.

52
Thank you very much for your answers !

53
Hi,

We need to use the Microsoft Script Debugger. The support says that this product is "depricated". That's why they are not allowed to install it. Is there an alternative available?

Many thanks in advance for your answers, Viking

54
No. There is no AND. There is no OR. Look at Simon's example how to code a work around for the AND. It's simple Boolean algebra and use of copy and paste.q.

We are using AND and it works as intended :)

Yes, there is no OR or XOR in the way we need it.

Given that the OP is trying to do something that everyone advised him not to do, I think this whole conversation is down the rabbit hole anyway.  :-)

I did not know that everybody told me. Many thanks for telling me.

55
It has been said more than once here, that there is no OR. There are also no functions/procedures. There is just COPY and PASTE. The way you do it is the only way. Capisce? q.

Many thanks, Thomas.

56
Why do you use Metaclass from the toolbox?
All I ever needed to do what create stereotypes, and then link them to a metaclass using the profile helper. Geert
We thought that we need a metaclass. But that was a mistake. Trial and error ...

57
What you get is a stereotype that is based on a certain metaclass. If you don't override any of the properties of the metaclass then your stereotype will behave exactly like the "plain" metaclass. So in that way you should look at it as a "generalization" in class diagram terms.
I honestly don't understand your confusion.
Geert

I use Toolbox > Profile > Metaclass. I drag and drop metaclass into a diagram. I select the required metaclass from a list and the element gets displayed. EA shows this new element as a metaclass and not as a stereotype. It also add this element in my package.

You say "What you get is a stereotype". Really? As I said it is shown as a metaclass. And I thought that I just get a reference to something which is already there. I have the impression, that I get a copy, that extends or inherits from the original.

58
In that case you might need to do something like
Code: [Select]
shape main
{
   layouttype="border";
   if(hasproperty("diagram.mdgtype", "BPMN1.0::Business Process")
  {
   ...
  }
  else if(hasproperty(...)
   {
      ...
   }
 if hasproperty("diagram.mdgtype", "BPMN2.0::Business Process")
   {
      AddSubShape("Activity","center");
   }
  else if(hasproperty(...)
   {
      ...
   }
}

That would means some duplicated code, but it would work. It would make things easier if we could use NOT, AND and OR, but where's the challenge then right  ;D

Geert

This is what we are doing at the moment. But the issue is in the SubShapes where we are using a lot of code. And this code has to be dublicated several times.

59
We put a stereotype between stereotype "ProcessStep" and the stereotypes BPMN2.0::Activity and Archimate2::Archimate_BusinessProcess. We declared _image as private to suppress inheritance.

The upper Shape Script is not executed any more.

The side-effect is, that the Properties Sheet does not open automatically any more and that the attributes are not ordered any more.

Can somebody tell me a better solution?

60
No. There is no AND. There is no OR. Look at Simon's example how to code a work around for the AND. It's simple Boolean algebra and use of copy and paste. q.

I was not asking for AND. I was asking for OR. If Simon's example reflects AND, than this is no solution for my issue. If Simon's example reflects OR, than I do not understand how to copy and paste it into my example.

Pages: 1 2 3 [4] 5 6 ... 15