Book a Demo

Author Topic: Service Bus  (Read 3788 times)

dobxml

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Service Bus
« on: February 09, 2013, 02:24:59 am »
I would like to represent a service bus where each service is a box that has a line that joins a horizontal line at right angles either above or below the box. The horizontal line is not joined to any box but all of the vertical lines join it. How could I do that?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Service Bus
« Reply #1 on: February 09, 2013, 02:46:43 am »
I don't know whether the SOA MDG offers a bus symbol, but you can use a boundary (and eventually give it an alternate image). Then use orthogonal connectors (from the line style context menu).

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Service Bus
« Reply #2 on: February 11, 2013, 09:30:33 am »
Here's an idea: create a Device element and give it a stereotype of your own invention - I suggest «service bus». Go to Settings > UML Types, find the service bus stereotype and give it a shape script:

Code: [Select]
shape main
{
      defsize(400,10);
      setfillcolor(0,0,1);
      rectangle(0,0,100,100);
}

shape label
{
      print("#NAME#");
}
Unfortunately, the minimum height of a Device element in EA is 10 pixels - if you want to get around that and have a narrower element you can, but it won't be UML (e.g. you could just use a Fork/Join element from a State Machine diagram, and pretend it's a service bus).
« Last Edit: February 11, 2013, 09:50:54 am by KP »
The Sparx Team
[email protected]