Commit 16c7d5c1 authored by Christos Tranoris's avatar Christos Tranoris
Browse files

fix for #105

parent 799aa515
Loading
Loading
Loading
Loading
Loading
+19 −1
Changes for src/main/java/org/etsi/osl/tmf/so641/reposervices/ServiceOrderRepoService.java: 19 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -777,6 +777,18 @@ public class ServiceOrderRepoService {

					}

				} else {
					/**
					 * An order item the order does not carry yet: append it, so that an existing order
					 * can be amended with a new item. The item must arrive transient (no uuid), so that
					 * the uuid2 generator assigns it a fresh identifier. ServiceOrder.orderItem cascades
					 * PERSIST/MERGE and ServiceOrderItem.service cascades ALL, so the item's
					 * ServiceRestriction and its characteristics are persisted along with it.
					 */
					soiUpd.setUuid( null );
					so.addOrderItemItem( soiUpd );
					logger.info("Order item appended to service order " + id
							+ " (action=" + soiUpd.getAction() + ", state=" + soiUpd.getState() + ")");
				}
			}
		}
@@ -1155,7 +1167,13 @@ public class ServiceOrderRepoService {
		for (String lane : lanes.keySet()) {
			charvalue += "lane " + lanes.get(lane).name  + " {\r\n";
			for ( Note aNote : lanes.get(lane).boxes) {
				charvalue += aNote.getUuid() +" [label = \"" + aNote.getDateString() + "\r\n "+ aNote.getText()  +"\", color = \"#2596be\"]\r\n";
			    String txt = aNote.getText();
			    if ( txt.length()>40 )
			      txt = txt.substring(0, 40);
				charvalue += aNote.getUuid() +" [label = \"" + aNote.getDateString() + "\r\n " 
				    + txt 
				    +"\", color = \"#2596be\"]\r\n";
				
			}
			charvalue += "}\r\n";
		}