Book a Demo

Author Topic: differentiate between fork and join  (Read 6141 times)

martin.grotzke

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
differentiate between fork and join
« on: August 05, 2004, 05:51:05 am »
hello,

do you plan to make a difference between fork and join nodes?
currently there's only one symbol for both, and in the exported xmi (1.2)
the corresponding pseudostates all have the attribute kind="join".

in the custom properties it's possible to specify the kind of the node, but this information is exported via the tagged value "$ea_xref_property", which is a little bit cryptical :).

do you plan to change or support the diffentiation between fork and join?

kind regards,
martin

Andreas_G

  • EA User
  • **
  • Posts: 125
  • Karma: +0/-0
  • And that's the way the cookie crumbles.
    • View Profile
Re: differentiate between fork and join
« Reply #1 on: August 05, 2004, 11:38:57 pm »
Hi Martin,

is there realy a difference between fork and join in UML?

Since you can do a join and a fork with one node, in my opinion there is no difference.

regards,
Andreas
bye
Andreas

martin.grotzke

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: differentiate between fork and join
« Reply #2 on: August 06, 2004, 03:23:59 am »
there is one: JoinNode and ForkNode  ;D
moreover, the ForkNode has a joinSpec : "ValueSpecification [1..1] A specification giving the conditions under which the join will emit a token. " (UML Superstructure 03-08-02, p. 339)

seriously: i'm currently using the exported xmi for code generation with open architectureware (http://sourceforge.net/projects/architecturware).
the metamodel of this generator framework is currently extended, so that it's possible to model with activities and actions and have these represented in the instantiated metamodel.
regarding this, it's important to be able to distinguish between fork and join node, what would be most easy if this information would be contained in the xmi or the model.

but you are right, if one would model a fork and join with a single fork/join symbol, you'd have the problem not to be able to specify a single kind, or this would be fork+join.
more clearly: if you use only one symbol for specifying a fork and a join node, this would represent two model elements: one ForkNode and one JoinNode. so you have to distinguish between the notation and the model

regards,
martin
« Last Edit: August 06, 2004, 03:30:11 am by magro »

Andreas_G

  • EA User
  • **
  • Posts: 125
  • Karma: +0/-0
  • And that's the way the cookie crumbles.
    • View Profile
Re: differentiate between fork and join
« Reply #3 on: August 06, 2004, 05:19:06 am »
ok, I throw the towel.
You are right.
I think there is nothing more to say after a look to the superstructure.

:)

bye
Andreas
bye
Andreas

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: differentiate between fork and join
« Reply #4 on: August 08, 2004, 04:14:30 pm »
Interesting problem.  Can only suggest as a workaround that you preprocess the XMI to change the pseudostate kind attribute.
B
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

martin.grotzke

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: differentiate between fork and join
« Reply #5 on: August 09, 2004, 06:48:33 am »
You mean preprocess from the enterprise architect view (export xmi), or from the architectureware view (read xmi)?

Currently i have no much time (writing my thesis that must be finished to the end of august), so i think i'll take the practical approach and use stereotypes on the nodes. These can be bound to specific metaclasses in architectureware, so i know which kind of node i got.

Cheers,
Martin