ShapeScripts catalogue

A ShapeScript is a script that applies a custom shape and orientation to an element or connector, in place of that object's standard UML notation. Each script is associated with a particular stereotype, and is drawn for every object having that stereotype.

Technology name
MDG Technology for EIP from BOBOVO. Inspired by the book Enterprise Integration Patterns by Gregor Hohpe and Bobby Woolf.
Stereotype name
Use a stateful filter, an Aggregator, to collect and store individual messages until a complete set of related messages has been received. Then, the Aggregator publishes a single message distilled from the individual messages.

   1:  // MDG Technology for EIP
   2:  // EIP_Aggregator
   3:  // www.bobovo.eu
   4:   
   5:  shape main
   6:  {
   7:      SetPenWidth(1);
   8:      rectangle(0,0,100,100);  // (x1,y1,x2,y2)
   9:   
  10:      SetPenWidth(2);
  11:      
  12:      setfillcolor(255,255,255); // (R,G,B)
  13:      rectangle(10,40,25,60);
  14:      rectangle(10,10,25,30);
  15:      rectangle(10,70,25,90);
  16:      rectangle(75,40,90,60);
  17:      
  18:      MoveTo(40,50);
  19:      LineTo(60,50);
  20:      
  21:      startpath();
  22:          
  23:      SetPenWidth(1);
  24:      moveto(50,45);
  25:      lineto(61,50);
  26:      lineto(50,55);
  27:      endpath();
  28:      setfillcolor(0,0,0);
  29:      fillandstrokepath();
  30:  }
  31:   
  32:  shape label
  33:  {
  34:      setOrigin("SW",0,0); 
  35:      // define the text for the label
  36:      println("#name#");
  37:  }