[Minor] Allow not setting of State on Order and Action
This commit is contained in:
parent
4de7dfba85
commit
b76f90d7bd
|
@ -118,7 +118,8 @@ public class XmlModelSaxReader extends DefaultHandler {
|
||||||
Action action = new Action(actionId, actionName, actionType);
|
Action action = new Action(actionId, actionName, actionType);
|
||||||
action.setResourceId(actionResourceId);
|
action.setResourceId(actionResourceId);
|
||||||
action.setResourceType(actionResourceType);
|
action.setResourceType(actionResourceType);
|
||||||
action.setState(State.valueOf(actionState));
|
if (StringHelper.isNotEmpty(actionState))
|
||||||
|
action.setState(State.valueOf(actionState));
|
||||||
|
|
||||||
this.parameterizedElement = action;
|
this.parameterizedElement = action;
|
||||||
|
|
||||||
|
@ -150,10 +151,8 @@ public class XmlModelSaxReader extends DefaultHandler {
|
||||||
Date orderDate = ISO8601FormatFactory.getInstance().getDateFormat().parse(orderDateS);
|
Date orderDate = ISO8601FormatFactory.getInstance().getDateFormat().parse(orderDateS);
|
||||||
order.setDate(orderDate);
|
order.setDate(orderDate);
|
||||||
}
|
}
|
||||||
if (orderStateS != null) {
|
if (StringHelper.isNotEmpty(orderStateS))
|
||||||
State orderState = State.valueOf(orderStateS);
|
order.setState(State.valueOf(orderStateS));
|
||||||
order.setState(orderState);
|
|
||||||
}
|
|
||||||
this.parameterizedElement = order;
|
this.parameterizedElement = order;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue