<?xml version="1.0" encoding="UTF-8" standalone="no"?> <diagram program="umlet" version="11.4"> <zoom_level>10</zoom_level> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>620</x> <y>970</y> <w>230</w> <h>60</h> </coordinates> <panel_attributes>中转设备/4G打印机接收打印任务 分配各个打印机执行</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.custom.InitialState</type> <coordinates> <x>720</x> <y>20</y> <w>20</w> <h>20</h> </coordinates> <panel_attributes>i</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>700</x> <y>0</y> <w>50</w> <h>140</h> </coordinates> <panel_attributes>lt=<-</panel_attributes> <additional_attributes>30;120;30;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>680</x> <y>120</y> <w>100</w> <h>40</h> </coordinates> <panel_attributes>初始化服务</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>700</x> <y>130</y> <w>50</w> <h>70</h> </coordinates> <panel_attributes>lt=<-</panel_attributes> <additional_attributes>30;50;30;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>680</x> <y>180</y> <w>100</w> <h>40</h> </coordinates> <panel_attributes>获取门店信息</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>700</x> <y>190</y> <w>50</w> <h>70</h> </coordinates> <panel_attributes>lt=<-</panel_attributes> <additional_attributes>30;50;30;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>650</x> <y>240</y> <w>170</w> <h>40</h> </coordinates> <panel_attributes>获取门店中转设备信息</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>650</x> <y>300</y> <w>170</w> <h>40</h> </coordinates> <panel_attributes>获取门店打印机信息</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>700</x> <y>250</y> <w>50</w> <h>70</h> </coordinates> <panel_attributes>lt=<-</panel_attributes> <additional_attributes>30;50;30;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>630</x> <y>430</y> <w>210</w> <h>80</h> </coordinates> <panel_attributes>根据配置的入队规则 为每个打印机生成打印任务队列 任务状态为:PREPRINT 记录更新日志</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>700</x> <y>370</y> <w>50</w> <h>80</h> </coordinates> <panel_attributes>lt=<-</panel_attributes> <additional_attributes>30;60;30;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>800</x> <y>730</y> <w>130</w> <h>40</h> </coordinates> <panel_attributes>等待中转设备 轮询打印队列</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>580</x> <y>600</y> <w>150</w> <h>150</h> </coordinates> <panel_attributes>lt=<. 推送</panel_attributes> <additional_attributes>50;130;50;50;130;50</additional_attributes> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>720</x> <y>600</y> <w>186</w> <h>150</h> </coordinates> <panel_attributes>lt=<- 轮询</panel_attributes> <additional_attributes>150;130;150;50;30;50</additional_attributes> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>650</x> <y>850</y> <w>170</w> <h>80</h> </coordinates> <panel_attributes>更新已推送的打印 任务状态为:PRINTING 记录更新日志 </panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>600</x> <y>740</y> <w>150</w> <h>130</h> </coordinates> <panel_attributes>lt=<.</panel_attributes> <additional_attributes>130;110;130;80;30;30</additional_attributes> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>700</x> <y>740</y> <w>190</w> <h>130</h> </coordinates> <panel_attributes>lt=<-</panel_attributes> <additional_attributes>30;110;30;80;170;30</additional_attributes> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>700</x> <y>900</y> <w>50</w> <h>90</h> </coordinates> <panel_attributes>lt=<.</panel_attributes> <additional_attributes>30;70;30;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>650</x> <y>1060</y> <w>170</w> <h>80</h> </coordinates> <panel_attributes>更新打印任务 状态为:PRINTED 记录更新日志 任务弹出队列 </panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>700</x> <y>1000</y> <w>50</w> <h>80</h> </coordinates> <panel_attributes>lt=<.</panel_attributes> <additional_attributes>30;60;30;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.Decision</type> <coordinates> <x>710</x> <y>530</y> <w>40</w> <h>40</h> </coordinates> <panel_attributes/> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>700</x> <y>480</y> <w>50</w> <h>70</h> </coordinates> <panel_attributes>lt=<- </panel_attributes> <additional_attributes>30;50;30;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.Decision</type> <coordinates> <x>710</x> <y>630</y> <w>40</w> <h>40</h> </coordinates> <panel_attributes/> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>660</x> <y>540</y> <w>132</w> <h>110</h> </coordinates> <panel_attributes>lt=<- Stop = false</panel_attributes> <additional_attributes>70;90;70;30</additional_attributes> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>720</x> <y>520</y> <w>406</w> <h>750</h> </coordinates> <panel_attributes>lt=<- Stop = true</panel_attributes> <additional_attributes>50;730;350;730;350;30;30;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.FinalState</type> <coordinates> <x>710</x> <y>1350</y> <w>20</w> <h>20</h> </coordinates> <panel_attributes>i</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>1000</x> <y>80</y> <w>100</w> <h>40</h> </coordinates> <panel_attributes>POS生成订单</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>980</x> <y>170</y> <w>150</w> <h>70</h> </coordinates> <panel_attributes>根据菜品生成打印任务 初始任务状态为:INIT 记录更新日志</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>1020</x> <y>90</y> <w>50</w> <h>100</h> </coordinates> <panel_attributes>lt=<-</panel_attributes> <additional_attributes>30;80;30;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.Systemborder</type> <coordinates> <x>940</x> <y>50</y> <w>230</w> <h>260</h> </coordinates> <panel_attributes/> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>700</x> <y>280</y> <w>300</w> <h>170</h> </coordinates> <panel_attributes>lt=<-</panel_attributes> <additional_attributes>30;150;30;130;280;130;280;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>670</x> <y>1230</y> <w>100</w> <h>40</h> </coordinates> <panel_attributes>关闭服务</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>690</x> <y>1240</y> <w>50</w> <h>140</h> </coordinates> <panel_attributes>lt=<-</panel_attributes> <additional_attributes>30;120;30;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>640</x> <y>360</y> <w>190</w> <h>40</h> </coordinates> <panel_attributes>获取状态为非 PRINTERED的打印任务</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>700</x> <y>310</y> <w>50</w> <h>70</h> </coordinates> <panel_attributes>lt=<-</panel_attributes> <additional_attributes>30;50;30;30</additional_attributes> </element> <element> <type>com.umlet.element.custom.Systemborder</type> <coordinates> <x>1200</x> <y>550</y> <w>280</w> <h>460</h> </coordinates> <panel_attributes>对外服务接口: 1、获得中转设备的全部打印队列 2、打印成功 3、获取打印模板 建队规则: 一级规则 1、菜品类别 2、菜品 3、厨师? 二级规则: 1、压力均衡 2、优先级 打印机只限于后厨打印?</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.custom.Systemborder</type> <coordinates> <x>1220</x> <y>50</y> <w>230</w> <h>260</h> </coordinates> <panel_attributes/> <additional_attributes/> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>1280</x> <y>80</y> <w>100</w> <h>40</h> </coordinates> <panel_attributes>POS请求补打</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.custom.State</type> <coordinates> <x>1260</x> <y>170</y> <w>150</w> <h>70</h> </coordinates> <panel_attributes>生成打印任务 初始任务状态为:INIT 记录更新日志</panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>1300</x> <y>90</y> <w>50</w> <h>100</h> </coordinates> <panel_attributes>lt=<-</panel_attributes> <additional_attributes>30;80;30;30</additional_attributes> </element> <element> <type>com.umlet.element.UseCase</type> <coordinates> <x>530</x> <y>730</y> <w>210</w> <h>40</h> </coordinates> <panel_attributes>lt=. 为每个打印机推送打印队列 </panel_attributes> <additional_attributes/> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>880</x> <y>110</y> <w>620</w> <h>50</h> </coordinates> <panel_attributes>lt=:</panel_attributes> <additional_attributes>30;30;600;30</additional_attributes> </element> <element> <type>com.umlet.element.Relation</type> <coordinates> <x>700</x> <y>280</y> <w>670</w> <h>170</h> </coordinates> <panel_attributes>lt=<-</panel_attributes> <additional_attributes>30;150;30;130;650;130;650;30</additional_attributes> </element> </diagram>