1(function() 2{ 3 Sidebar.prototype.addEipPalette = function() 4 { 5 this.setCurrentSearchEntryLibrary('eip', 'eipMessage Construction'); 6 this.addEipMessageConstructionPalette(); 7 this.setCurrentSearchEntryLibrary('eip', 'eipMessage Routing'); 8 this.addEipMessageRoutingPalette(); 9 this.setCurrentSearchEntryLibrary('eip', 'eipMessage Transformation'); 10 this.addEipMessageTransformationPalette(); 11 this.setCurrentSearchEntryLibrary('eip', 'eipMessaging Channels'); 12 this.addEipMessagingChannelsPalette(); 13 this.setCurrentSearchEntryLibrary('eip', 'eipMessaging Endpoints'); 14 this.addEipMessagingEndpointsPalette(); 15 this.setCurrentSearchEntryLibrary('eip', 'eipMessaging Systems'); 16 this.addEipMessagingSystemsPalette(); 17 this.setCurrentSearchEntryLibrary('eip', 'eipSystem Management'); 18 this.addEipSystemManagementPalette(); 19 this.setCurrentSearchEntryLibrary(); 20 } 21 22 // Adds EIP shapes 23 Sidebar.prototype.addEipMessageConstructionPalette = function(expand) 24 { 25 var s = "strokeWidth=2;dashed=0;align=center;fontSize=8;shape="; 26 var s2 = "strokeWidth=2;outlineConnect=0;dashed=0;align=center;fontSize=8;shape=mxgraph.eip."; 27 var s3 = "strokeWidth=3;outlineConnect=0;dashed=0;align=center;fontSize=8;shape=mxgraph.eip."; 28 var gn = 'mxgraph.eip'; 29 var dt = 'eip enterprise integration pattern message construction '; 30 var sb = this; 31 32 var fns = [ 33 this.createEdgeTemplateEntry('edgeStyle=none;html=1;strokeColor=#808080;endArrow=block;endSize=10;dashed=0;verticalAlign=bottom;strokeWidth=2;', 34 160, 0, '', 'Pipe', null, this.getTagsForStencil(gn, '', dt + 'pipe').join(' ')), 35 this.createVertexTemplateEntry(s + 'rect;fillColor=#c0f5a9;verticalLabelPosition=bottom;verticalAlign=top;', 36 150, 90, '', 'Filter', null, null, this.getTagsForStencil(gn, '', dt + 'filter').join(' ')), 37 this.addEntry(dt + 'command message', function() 38 { 39 var bg1 = new mxCell('', new mxGeometry(0, 0, 12, 12), s + 'ellipse;fillColor=#808080;strokeColor=none;'); 40 bg1.vertex = true; 41 var bg2 = new mxCell('C', new mxGeometry(16, 18, 12, 12), s + 'rect;fillColor=#FF8080;fontStyle=1;'); 42 bg2.vertex = true; 43 var edge1 = new mxCell('', new mxGeometry(0, 0, 0, 0), 'edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;strokeColor=#808080;strokeWidth=2;'); 44 edge1.geometry.relative = true; 45 edge1.edge = true; 46 bg1.insertEdge(edge1, false); 47 bg2.insertEdge(edge1, true); 48 49 return sb.createVertexTemplateFromCells([edge1, bg1, bg2], 28, 30, 'Command Message'); 50 }), 51 this.addDataEntry(dt + 'correlation identifier', 78, 30, 'Correlation Identifier', 52 '5ZZLT8JAEIB/Ta+mDwv1KAicTEw8qMeVDu2GpUO2ixZ/vbPdAVorilExkTZN5rEznf1mtqkXDRfVRItlfo0pKC8aedFQIxonLaohKOWFvky96MoLQ58eLxzv8Qa1118KDYU5JCB0AU9CrcBZnKE0a8UGSDO4ZRW1yTHDQqjRzjrQuCpSsBl90qCS5r4hP1j5LLZakV5qjc9kKLCwkako821gbha0/6uAxNJonMMQFeq6iCjx7b313MnU5OQJyeIKtlW2GJS40lM29ZzJCJ0BY4m7pOpAxjQBXIDRa1qiQQkjn9rZRenUbLtuB5kE5vw+8+gkmCdd5v2/Y35+APMdqUeF03mbDnnHUrVZNYl06I3HF4RwD6ifRMChNygpY+hXvGEe8HXrBGziXaM4pPl5eJMl6H+UxfW2k6XuxXYnB7Un/rw9XeStQRZKZgXJU+IK1ILBDAtzK19sdGL7k4ullem9clnaczCjdu6f9o2HDw3XB9pA9dVOPnPNdgXvKweZ5aZt+8549zr8Ln8LoIap6dLjaX/nHPj1tcnH5QSsN9bN6uubqDcBvdbYBnwMj9CI/n8eZA6I/aPhTDo4B6c8171jzTWpu39Q9z1v/qK+Ag=='), 53 54 this.addEntry(dt + 'document message', function() 55 { 56 var bg1 = new mxCell('', new mxGeometry(0, 0, 12, 12), s + 'ellipse;fillColor=#808080;strokeColor=none;'); 57 bg1.vertex = true; 58 var bg2 = new mxCell('D', new mxGeometry(16, 18, 12, 12), s + 'rect;fillColor=#C7A0FF;fontStyle=1;'); 59 bg2.vertex = true; 60 var edge1 = new mxCell('', new mxGeometry(0, 0, 0, 0), 'edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;strokeColor=#808080;strokeWidth=2;'); 61 edge1.geometry.relative = true; 62 edge1.edge = true; 63 bg1.insertEdge(edge1, false); 64 bg2.insertEdge(edge1, true); 65 66 return sb.createVertexTemplateFromCells([edge1, bg1, bg2], 28, 30, 'Document Message'); 67 }), 68 this.addEntry(dt + 'event message', function() 69 { 70 var bg1 = new mxCell('', new mxGeometry(0, 0, 12, 12), s + 'ellipse;fillColor=#808080;strokeColor=none;'); 71 bg1.vertex = true; 72 var bg2 = new mxCell('E', new mxGeometry(16, 18, 12, 12), s + 'rect;fillColor=#83BEFF;fontStyle=1;'); 73 bg2.vertex = true; 74 var edge1 = new mxCell('', new mxGeometry(0, 0, 0, 0), 'edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;strokeColor=#808080;strokeWidth=2;'); 75 edge1.geometry.relative = true; 76 edge1.edge = true; 77 bg1.insertEdge(edge1, false); 78 bg2.insertEdge(edge1, true); 79 80 return sb.createVertexTemplateFromCells([edge1, bg1, bg2], 28, 30, 'Event Message'); 81 }), 82 this.createVertexTemplateEntry(s3 + 'messExp;html=1;verticalLabelPosition=bottom;verticalAlign=top', 83 48, 48, '', 'Message Expiration', null, null, this.getTagsForStencil(gn, '', dt + 'message expiration').join(' ')), 84 this.addDataEntry(dt + 'message sequence', 60, 24, 'Message Sequence', 85 '5VVdb4MgFP01vKtY4+vKZp+WLNnDnpneKSmKQWp1v34gtKWhXfawNPswMbn33A+45xBAmLTTRtK+eRQVcIQfECZSCGWtdiLAOUoiViF8j5Ik0j9KiivReIlGPZXQqa8UJLZgpHwHFrHAoGbugHInRzDpMcJr6Ko7KcVeu69clFsNNarlLjooKbZABBdyqcUxIUUUHSMvrFKNjiS20zN7N2tg7dlVoarhbJBB7GTpoJWFFJU1uNnScNyl0M26AdGCkrNOkcCpYuN5dzpYtz7muVI9Ip29hF6wTg1e5ycD6ITJ9ct9krVhGxw8bycnaBHisij494iShaKsfogoafKtoqSBKHGgSkhoRYdm0cnwTTmrO22XmhjQYqzfRKcc37nRo6G9sSWUykQZ555seVQUGbkkaLR8h35uO/FRwBGkgglduyCuiDO7qDt7ezeUBzXA6kadY5fU8yT4lOFVwHB47v8Sw67gcLJuT3gWEI7/A+FpfiPCtXt6ye2V4z/0Hw=='), 86 this.createVertexTemplateEntry(s3 + 'retAddr;html=1;verticalLabelPosition=bottom;fillColor=#FFE040;verticalAlign=top;', 87 78, 48, '', 'Return Address', null, null, this.getTagsForStencil(gn, 'retAddr', dt + 'return address').join(' ')) 88 ]; 89 90 this.addPalette('eipMessage Construction', 'EIP / Message Construction', expand || false, mxUtils.bind(this, function(content) 91 { 92 for (var i = 0; i < fns.length; i++) 93 { 94 content.appendChild(fns[i](content)); 95 } 96 })); 97 }; 98 99 Sidebar.prototype.addEipMessageRoutingPalette = function(expand) 100 { 101 var s = "strokeWidth=2;dashed=0;align=center;fontSize=8;shape=rect;fillColor=#fffbc0;"; 102 var s2 = "strokeWidth=2;outlineConnect=0;dashed=0;align=center;fontSize=8;fillColor=#c0f5a9;verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.eip."; 103 var s3 = "edgeStyle=none;endArrow=none;dashed=0;html=1;strokeWidth=2;"; 104 var gn = 'mxgraph.eip'; 105 var dt = 'eip enterprise integration pattern message routing '; 106 var sb = this; 107 108 var fns = [ 109 this.createVertexTemplateEntry(s2 + 'aggregator;', 110 150, 90, '', 'Aggregator', null, null, this.getTagsForStencil(gn, 'aggregator', dt + '').join(' ')), 111 this.createVertexTemplateEntry(s2 + 'composed_message_processor;', 112 150, 90, '', 'Composed Message Processor', null, null, this.getTagsForStencil(gn, 'composed_message_processor', dt + '').join(' ')), 113 this.createVertexTemplateEntry(s2 + 'content_based_router;', 114 150, 90, '', 'Content Based Router', null, null, this.getTagsForStencil(gn, 'content_based_router', dt + '').join(' ')), 115 this.createVertexTemplateEntry(s2 + 'dynamic_router;', 116 150, 90, '', 'Dynamic Router', null, null, this.getTagsForStencil(gn, 'dynamic_router', dt + '').join(' ')), 117 this.addDataEntry(dt + 'message broker', 120, 90, 'Message Broker', 118 '5ZjJboMwEIafxneDWZJjQ9qcesqhZxcGjGpwZJytT1+DnQUpUZEqmYQiIWb+YcbMZySwEUmqw0rSDXsXGXBEXhFJpBDKWNUhAc6Rj8sMkSXyfaxP5L/diXpdFG+ohFoNSfBNwo7yLRjFCI06cis0Soov+CgzxbTgI7LIaMOgLYC1Q3lZ1NpO9YggtZCLWq3L7zZ7pt2G0U1rS0hVGy05TwQXsitO8jz/TNsyZpSrCO4OHbFPCFLB4W6XnWRbXIGoQMmjvsUmBLHJ2Nsm2sYjIzEoC3YqMjMabYxfnAtdCGrDQrwNlEwb6LFPygHQYNpAbcLctumebzhtvhZoGDgDGk0b6O0X1iHf+F/wPX2yLN/Yd8Z3NjLfFOchnTvmSyJnfOe/84WsgLV1a1HrywLq7EVKsb8oPeRMVXq8pXfGdj05pn5btAerEVuZQm/SFZUFqN6v4QCkEjhV5a5f/S+IPPwkjMiIjLwnYRSMyGjA8uYhGIUjMhqwYnkIRtGIjAYsQh6CUeyMkXYvuxRdrLeJ8QM='), 119 this.createVertexTemplateEntry(s2 + 'message_filter;', 120 150, 90, '', 'Message Filter', null, null, this.getTagsForStencil(gn, 'message_filter', dt + '').join(' ')), 121 this.createVertexTemplateEntry(s2 + 'process_manager;', 122 150, 90, '', 'Process Manager', null, null, this.getTagsForStencil(gn, 'process_manager', dt + '').join(' ')), 123 this.createVertexTemplateEntry(s2 + 'recipient_list;', 124 150, 90, '', 'Recipient List', null, null, this.getTagsForStencil(gn, 'recipient_list', dt + '').join(' ')), 125 this.createVertexTemplateEntry(s2 + 'resequencer;', 126 150, 90, '', 'Resequencer', null, null, this.getTagsForStencil(gn, 'resequencer', dt + '').join(' ')), 127 this.createVertexTemplateEntry(s2 + 'routing_slip;', 128 150, 90, '', 'Routing Slip', null, null, this.getTagsForStencil(gn, 'routing_slip', dt + '').join(' ')), 129 this.createVertexTemplateEntry(s2 + 'splitter;', 130 150, 90, '', 'Splitter', null, null, this.getTagsForStencil(gn, 'splitter', dt + '').join(' ')) 131 ]; 132 133 this.addPalette('eipMessage Routing', 'EIP / Message Routing', expand || false, mxUtils.bind(this, function(content) 134 { 135 for (var i = 0; i < fns.length; i++) 136 { 137 content.appendChild(fns[i](content)); 138 } 139 })); 140 }; 141 142 Sidebar.prototype.addEipMessageTransformationPalette = function(expand) 143 { 144 var s = "strokeWidth=2;outlineConnect=0;dashed=0;align=center;fontSize=8;fillColor=#c0f5a9;verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.eip."; 145 var gn = 'mxgraph.eip'; 146 var dt = 'eip enterprise integration pattern message transformation '; 147 148 this.addPaletteFunctions('eipMessage Transformation', 'EIP / Message Transformation', false, 149 [ 150 this.createVertexTemplateEntry(s + 'claim_check;', 151 150, 90, '', 'Claim Check', null, null, this.getTagsForStencil(gn, 'claim_check', dt + '').join(' ')), 152 this.createVertexTemplateEntry(s + 'content_enricher;', 153 150, 90, '', 'Content Enricher', null, null, this.getTagsForStencil(gn, 'content_enricher', dt + '').join(' ')), 154 this.createVertexTemplateEntry(s + 'content_filter;', 155 150, 90, '', 'Content Filter', null, null, this.getTagsForStencil(gn, 'content_filter', dt + '').join(' ')), 156 this.createVertexTemplateEntry(s + 'envelope_wrapper;', 157 150, 90, '', 'Envelope Wrapper', null, null, this.getTagsForStencil(gn, 'envelope_wrapper', dt + '').join(' ')), 158 this.createVertexTemplateEntry(s + 'normalizer;', 159 150, 90, '', 'Normalizer', null, null, this.getTagsForStencil(gn, 'normalizer', dt + '').join(' ')) 160 ]); 161 }; 162 163 Sidebar.prototype.addEipMessagingChannelsPalette = function(expand) 164 { 165 var s = "strokeWidth=2;dashed=0;align=center;fontSize=8;html=1;shape="; 166 var s2 = "strokeWidth=2;outlineConnect=0;dashed=0;align=center;html=1;fontSize=8;shape=mxgraph.eip."; 167 var s3 = "strokeWidth=1;outlineConnect=0;dashed=0;align=center;html=1;fontSize=8;shape=mxgraph.eip."; 168 var gn = 'mxgraph.eip'; 169 var dt = 'eip enterprise integration pattern messaging channel message '; 170 var sb = this; 171 172 var fns = [ 173 this.createEdgeTemplateEntry('edgeStyle=none;html=1;strokeColor=#808080;endArrow=block;endSize=10;dashed=0;verticalAlign=bottom;strokeWidth=2;', 174 160, 0, '', 'Point to Point Channel', null, this.getTagsForStencil(gn, '', dt + 'point').join(' ')), 175 this.addDataEntry(dt + 'publish subscribe', 80, 160, 'Publish Subscribe Channel', 176 '7ZbBbsIwDIafJvfQMMR1FMYJaRKHnbPWayvSGLmBwZ5+bhNKYaAxDTihqlL8O3aS72/VChWXmynpZT7DFIxQE6FiQnR+VG5iMEZEskiFGosoknyL6OVMttdk5VITWHdJQeQL1tqswCteqNzWBKFyhAt4K1KXsxAJNUp1lUPdQHKgTZFZHie8IhALH2jdvPiqq4cc5q7kU417PKxyvaxlgoQ3NwpLAznYnN1+I4W9TwFLcLTlKaGg708nt2FyOK3UlReytmLPgAcBw2kk6nckhCubtgTAps9E+MmhRQteCQR68phXl0dDNkaD1PRVQ1lfbabL3O8B0gwOUDlNGbgDLy+gR2C0K9aHrU4xC6WvWHDHH9R3FRWuKIEw6Qh0u+pF7Pt/Zs9A5iGJ5HLM0Goz2atdd94NJou72uPJ3Mue3VswOPLHPyTX8Ofp4c/1Xp/b2zV42PV/u4a3sovD/YfeT+/+B3wD'), 177 this.createVertexTemplateEntry(s2 + 'channel_adapter;fillColor=#9ddbef;', 178 45, 90, '', 'Channel Adapter', null, null, this.getTagsForStencil(gn, 'channel_adapter', dt + '').join(' ')), 179 this.createVertexTemplateEntry(s3 + 'messageChannel;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;', 180 100, 20, '', 'Message Channel', null, null, this.getTagsForStencil(gn, 'messageChannel', dt + '').join(' ')), 181 this.createVertexTemplateEntry(s3 + 'dataChannel;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;', 182 100, 20, '', 'Datatype Channel', null, null, this.getTagsForStencil(gn, 'dataChannel', dt + '').join(' ')), 183 this.createVertexTemplateEntry(s3 + 'deadLetterChannel;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;', 184 100, 20, '', 'Dead Letter Channel', null, null, this.getTagsForStencil(gn, 'deadLetterChannel', dt + '').join(' ')), 185 this.createVertexTemplateEntry(s3 + 'invalidMessageChannel;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;', 186 100, 20, '', 'Invalid Message Channel', null, null, this.getTagsForStencil(gn, 'invalidMessageChannel', dt + '').join(' ')), 187 this.createVertexTemplateEntry(s2 + 'messaging_bridge;verticalLabelPosition=bottom;verticalAlign=top;fillColor=#c0f5a9;', 188 150, 90, '', 'Messaging Bridge', null, null, this.getTagsForStencil(gn, 'messaging_bridge', dt + '').join(' ')), 189 this.addDataEntry(dt + 'message bus', 120, 140, 'Message Bus', 190 '7ZbPb8IgFMf/Gq6Gwma8rtV5WrLEw84ob4VISwOodX/9oLBq/ZF5MJ5s0+S9L7xX+H5KUkSLqp0b1ogPzUEhOkO0MFq7GFVtAUohgiVHdIoIwf5B5P3KaNaN4oYZqN0tBSQWbJnaQFSiYN1eJcE6o9fwJbkTXiCI5lEptNKmm0Jxd/kRzqyA0DokTMmy9vHKrwX8zFy4ym9wmvnwW9duIX/CKyaho2BNiKu2DFaMQDajCqxlJRSC1XUwJk9LBeOgvbrdTkp7nYOuwJm9n7KPo+PoBt6l3YSC5BAWIEuRuvxpzMa87DsdvPRBsvOytfR/a4GXsEgpqKXezQ5Cfu670Zua9/ZCzd+M0TufLpVerbsSZtxFMXmdpcLjdMDsCNEZ5QkOdw8iLH6Awb+nBDf4rm4gY0AxJ7fDVpd8T6WfWvqOBLdDoglw9nJCzuqNWUEqOoHXr+Imni9Png/geXry7sfv9cnvgefx/vzGT34P4JfhewH06eE/Jk4//s35BQ==') 191 ]; 192 193 this.addPalette('eipMessaging Channels', 'EIP / Messaging Channels', expand || false, mxUtils.bind(this, function(content) 194 { 195 for (var i = 0; i < fns.length; i++) 196 { 197 content.appendChild(fns[i](content)); 198 } 199 })); 200 }; 201 202 Sidebar.prototype.addEipMessagingEndpointsPalette = function(expand) 203 { 204 var s = "dashed=0;outlineConnect=0;strokeWidth=2;html=1;align=center;fontSize=8;verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.eip."; 205 var s2 = 'fillColor=#c0f5a9;' + s; 206 var gn = 'mxgraph.eip'; 207 var dt = 'eip enterprise integration pattern messaging endpoint '; 208 209 this.addPaletteFunctions('eipMessaging Endpoints', 'EIP / Messaging Endpoints', false, 210 [ 211 this.createVertexTemplateEntry(s2 + 'competing_consumers;', 212 150, 90, '', 'Competing Consumers', null, null, this.getTagsForStencil(gn, 'competing_consumers', dt + '').join(' ')), 213 this.createVertexTemplateEntry(s + 'durable_subscriber;fillColor=#a0a0a0;', 214 30, 35, '', 'Durable Subscriber', null, null, this.getTagsForStencil(gn, 'durable_subscriber', dt + '').join(' ')), 215 this.createVertexTemplateEntry(s2 + 'event_driven_consumer;', 216 150, 90, '', 'Event Driven Consumer', null, null, this.getTagsForStencil(gn, 'event_driven_consumer', dt + '').join(' ')), 217 this.createVertexTemplateEntry(s2 + 'message_dispatcher;', 218 150, 90, '', 'Message Dispatcher', null, null, this.getTagsForStencil(gn, 'message_dispatcher', dt + '').join(' ')), 219 this.createVertexTemplateEntry(s2 + 'messaging_gateway;', 220 150, 90, '', 'Messaging Gateway', null, null, this.getTagsForStencil(gn, 'messaging_gateway', dt + '').join(' ')), 221 this.createVertexTemplateEntry(s2 + 'polling_consumer;', 222 150, 90, '', 'Polling Consumer', null, null, this.getTagsForStencil(gn, 'polling_consumer', dt + '').join(' ')), 223 this.createVertexTemplateEntry(s2 + 'selective_consumer;', 224 150, 90, '', 'Selective Consumer', null, null, this.getTagsForStencil(gn, 'selective_consumer', dt + '').join(' ')), 225 this.createVertexTemplateEntry(s2 + 'service_activator;', 226 150, 90, '', 'Service Activator', null, null, this.getTagsForStencil(gn, 'service_activator', dt + '').join(' ')), 227 this.createVertexTemplateEntry(s2 + 'transactional_client;', 228 150, 90, '', 'Transactional Client', null, null, this.getTagsForStencil(gn, 'transactional_client', dt + '').join(' ')) 229 ]); 230 }; 231 232 Sidebar.prototype.addEipMessagingSystemsPalette = function(expand) 233 { 234 var s = "strokeWidth=2;dashed=0;align=center;fontSize=8;shape="; 235 var s2 = "strokeWidth=2;outlineConnect=0;dashed=0;align=center;fontSize=8;shape=mxgraph.eip."; 236 var s3 = "strokeWidth=1;dashed=0;align=center;fontSize=8;shape="; 237 var s4 = "strokeWidth=1;outlineConnect=0;dashed=0;align=center;fontSize=8;shape=mxgraph.eip."; 238 var gn = 'mxgraph.eip'; 239 var dt = 'eip enterprise integration pattern messaging system '; 240 var sb = this; 241 242 var fns = [ 243 this.createVertexTemplateEntry(s2 + 'content_based_router;verticalLabelPosition=bottom;verticalAlign=top;fillColor=#c0f5a9;', 244 150, 90, '', 'Message Router', null, null, this.getTagsForStencil(gn, 'content_based_router', dt + '').join(' ')), 245 246 this.createVertexTemplateEntry(s4 + 'messageChannel;html=1;verticalLabelPosition=bottom;verticalAlign=top;', 247 100, 20, '', 'Message Channel', null, null, this.getTagsForStencil(gn, 'messageChannel', dt + '').join(' ')), 248 249 this.addEntry(dt + 'message endpoint', function() 250 { 251 var bg1 = new mxCell('', new mxGeometry(0, 0, 150, 90), s + 'rect;verticalLabelPosition=bottom;verticalAlign=top;fillColor=#c0f5a9;'); 252 bg1.vertex = true; 253 var bg2 = new mxCell('', new mxGeometry(85, 25, 40, 40), s3 + 'rect;'); 254 bg2.vertex = true; 255 bg1.insert(bg2); 256 257 return sb.createVertexTemplateFromCells([bg1], bg1.geometry.width, bg1.geometry.height, 'Message Endpoint'); 258 }), 259 260 this.addEntry(dt + 'message endpoint', function() 261 { 262 var bg1 = new mxCell('', new mxGeometry(0, 0, 150, 90), s + 'rect;verticalLabelPosition=bottom;verticalAlign=top;fillColor=#c0f5a9;'); 263 bg1.vertex = true; 264 var bg2 = new mxCell('', new mxGeometry(25, 25, 40, 40), s3 + 'rect'); 265 bg2.vertex = true; 266 bg1.insert(bg2); 267 268 return sb.createVertexTemplateFromCells([bg1], bg1.geometry.width, bg1.geometry.height, 'Message Endpoint'); 269 }), 270 this.addDataEntry(dt + 'message endpoint', 400, 90, 'Message Endpoint', 271 'zVXLbsIwEPwa300eFRwhbbm0UiUOPZtkSSycbOQsr3597cRAIkILKhUkiuSd9fgxs46ZH+XbqRZl9o4JKOa/MD/SiNS08m0ESjGPy4T5z8zzuPmY93omO6izvBQaCrqE4DWEtVAraJAGqGinHFCRxiV8yoQyA3jMnySiysAOwE0glEwL047NjKANsMCCZvLLsocmrDJR2raGmGxWKhWhQl0P7sd8EYqR7VbP0srw+jGZNWiSsVBvYg7qAytJEu2EcyTCvNVh7FZCWBrUbczkYHtWnBpyykwBcyC9M102brO2R9gIyDOQaeZoI4eJqonTA/UotWk4tfuV969VfnBb5Rf1czflvX7lHcELG8auG7Z8CXpsCW5gS/D4B+IvlX3Ql58o+m+VHj5+pV8kafCjpMO7lezT7/pCksLMhaDmuHk5ApPTeta4KpKD+lAkY61xY0++wnhZU4SmPVhgAXvMmTJwvHbYcTSjXDmnT1wZcvv2LqzZmN1Nx6UKVzqGzn/VLCYF6hTgBcdDgxIk193Rr/DGhMe7u851rvZv'), 272 this.addDataEntry(dt + 'message', 28, 48, 'Message', 273 '5ZVRb4IwEMc/Da8LghJ9nCg+7cmHbY+NHLRZ6ZGjKu7Tr6VVR5RsiZlbMgjJ3f965d8fJQ3itGpXxGr+hDnIIF4GcUqI2kVVm4KUQRSKPIgXQRSF5gmibKA66qphzQiU/k5D5Bp2TG7BKU5o9EF6AfIS1j5F0hxLVEwuz+qccKtysDOGJoNW6JdP8auNHyY2U/kjEe6NoFDZzpw1/NTIdWXWvxiZsNGEb5CiROpMxNPQ3qfKs8g1N5XIKM6wddlj0OCWNl6aOEkzKsFjGV+S6ho9phVgBZoOZgiBZFrs+rOzxqXladwZsgk85+vM43/BPPlTzMdfM79cZY8Uk6JUJt4Y72AIzQtUei3ebffUQuKstrF5r6gbC7oQUg7jPFb8V/H+gDS0g//yAK2992xH+HVxECXXfe0WfpO78SPY6GvwsixJr+3SsLuO83k7oxuJHhv8Jj74dOrSO/BOfpl3Ucxm4eVmvS/vOPkp3iY9n7FdrXcEfwA='), 274 275 this.addEntry(dt + 'message', function() 276 { 277 var bg1 = new mxCell('', new mxGeometry(0, 0, 12, 12), s + 'ellipse;fillColor=#808080;strokeColor=none;'); 278 bg1.vertex = true; 279 var bg2 = new mxCell('', new mxGeometry(16, 18, 12, 12), s + 'rect;fillColor=#80FF6C;fontStyle=1;'); 280 bg2.vertex = true; 281 var edge1 = new mxCell('', new mxGeometry(0, 0, 0, 0), 'edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;strokeColor=#808080;strokeWidth=2;'); 282 edge1.geometry.relative = true; 283 edge1.edge = true; 284 bg1.insertEdge(edge1, false); 285 bg2.insertEdge(edge1, true); 286 287 return sb.createVertexTemplateFromCells([edge1, bg1, bg2], 28, 30, 'Message'); 288 }), 289 290 this.addDataEntry(dt + 'message', 28, 48, 'Message', 291 'vZRNb4MwDIZ/DdeJj25qjyvtetqph23HqBgSLcTIuC3dr19C0naIoU3qNBCS/TqvcR5Qoiyvuw2JRj5jATrK1lGWEyL7qO5y0DpKY1VE2SpK09g+Ufo0UU36atwIAsO/MaTecBB6D17xQssnHQQoKtiGFIklVmiEXl/VJeHeFOA6xjaDTvHrl/jNxXf3LjPFIxEerWDQOGchWnkxSq7t/leJDVsmfIccNVI/RDaP3X2pvKiCpa2kVvEDuykHDFrc0y5IMy+xoAoClmxMqjcGTBvAGphOdgmBFqwOw+6i9Wl1WXeFbIPA+Xvm2c/Mx7sckBJaVcbGOzs7WELLEg1v1Ydzzx0kKRoX2/eqpnWgS6X1NM5zJXyVMB8QQzf5X03QOoaZ3YqwLwmqkjzUbuE3+zd+BDsewyvLxSIew7OVuL/O/cI4yY1Ez4YH7ziFdO7Tv+dt0+v509cGx9Mn'), 292 293 this.addEntry(dt + 'message', function() 294 { 295 var bg1 = new mxCell('', new mxGeometry(0, 0, 12, 12), s + 'ellipse;fillColor=#808080;strokeColor=none;'); 296 bg1.vertex = true; 297 var bg2 = new mxCell('', new mxGeometry(16, 18, 12, 12), s2 + 'message_1;fillColor=#ff5500;fontStyle=1;'); 298 bg2.vertex = true; 299 var edge1 = new mxCell('', new mxGeometry(0, 0, 0, 0), 'edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;strokeColor=#808080;strokeWidth=2;'); 300 edge1.geometry.relative = true; 301 edge1.edge = true; 302 bg1.insertEdge(edge1, false); 303 bg2.insertEdge(edge1, true); 304 305 return sb.createVertexTemplateFromCells([edge1, bg1, bg2], 28, 30, 'Message'); 306 }), 307 308 this.addEntry(dt + 'message', function() 309 { 310 var bg1 = new mxCell('', new mxGeometry(0, 0, 12, 12), s + 'ellipse;fillColor=#808080;strokeColor=none;'); 311 bg1.vertex = true; 312 var bg2 = new mxCell('', new mxGeometry(16, 18, 12, 12), s2 + 'message_2;fillColor=#00cc00;fontStyle=1;'); 313 bg2.vertex = true; 314 var edge1 = new mxCell('', new mxGeometry(0, 0, 0, 0), 'edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;strokeColor=#808080;strokeWidth=2;'); 315 edge1.geometry.relative = true; 316 edge1.edge = true; 317 bg1.insertEdge(edge1, false); 318 bg2.insertEdge(edge1, true); 319 320 return sb.createVertexTemplateFromCells([edge1, bg1, bg2], 28, 30, 'Message'); 321 }), 322 323 this.createVertexTemplateEntry(s2 + 'message_translator;fillColor=#c0f5a9;verticalLabelPosition=bottom;verticalAlign=top;', 324 150, 90, '', 'Message-Translator', null, null, this.getTagsForStencil(gn, 'message_translator', dt + '').join(' ')) 325 ]; 326 327 this.addPalette('eipMessaging Systems', 'EIP / Messaging Systems', expand || false, mxUtils.bind(this, function(content) 328 { 329 for (var i = 0; i < fns.length; i++) 330 { 331 content.appendChild(fns[i](content)); 332 } 333 })); 334 }; 335 336 Sidebar.prototype.addEipSystemManagementPalette = function(expand) 337 { 338 var s2 = "strokeWidth=2;outlineConnect=0;dashed=0;align=center;fontSize=8;verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.eip."; 339 var gn = 'mxgraph.eip'; 340 var dt = 'eip enterprise integration pattern system management '; 341 342 this.addPaletteFunctions('eipSystem Management', 'EIP / System Management', false, 343 [ 344 this.createVertexTemplateEntry(s2 + 'channel_purger;fillColor=#c0f5a9', 345 150, 90, '', 'Channel Purger', null, null, this.getTagsForStencil(gn, 'channel_purger', dt + '').join(' ')), 346 this.createVertexTemplateEntry(s2 + 'control_bus;fillColor=#c0f5a9', 347 60, 40, '', 'Control Bus', null, null, this.getTagsForStencil(gn, 'control_bus', dt + '').join(' ')), 348 this.createVertexTemplateEntry(s2 + 'detour;fillColor=#c0f5a9', 349 150, 90, '', 'Detour', null, null, this.getTagsForStencil(gn, 'detour', dt + '').join(' ')), 350 this.createVertexTemplateEntry(s2 + 'message_store;fillColor=#c0f5a9', 351 150, 90, '', 'Message Store', null, null, this.getTagsForStencil(gn, 'message_store', dt + '').join(' ')), 352 this.createVertexTemplateEntry(s2 + 'smart_proxy;fillColor=#c0f5a9', 353 70, 90, '', 'Smart Proxy', null, null, this.getTagsForStencil(gn, 'smart_proxy', dt + '').join(' ')), 354 this.createVertexTemplateEntry(s2 + 'test_message;fillColor=#c0f5a9', 355 150, 90, '', 'Test Message', null, null, this.getTagsForStencil(gn, 'test_message', dt + '').join(' ')), 356 this.createVertexTemplateEntry(s2 + 'wire_tap;fillColor=#c0f5a9', 357 150, 90, '', 'Wire Tap', null, null, this.getTagsForStencil(gn, 'wire_tap', dt + '').join(' ')) 358 ]); 359 }; 360})(); 361