Skip to content
Snippets Groups Projects
Commit 57cdff80 authored by FrankR's avatar FrankR
Browse files

added orderpicker-init configuration

moved ProtoJsonMap into devkit
Orderpicker-extension can create protobuf-datastructure of suitable monitoringRequest
parent e19f9a01
Branches
No related tags found
No related merge requests found
{"frames": [{"id": "cobot1_door_zone", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 2.0,"y": 0.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 4.0, "y": 4.0, "z":6.0}]}, {"id": "cobot1_window_zone", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 2.0,"y": 4.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 4.0, "y": 4.0, "z":6.0}]}, {"id": "robolab_east", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 4.0,"y": 2.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 8000000.0, "y": 100000000.0, "z":6000000.0}]}, {"id": "robolab_west", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": -4.0,"y": 2.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 8.0, "y": 10.0, "z":6.0}]} ]} {"frames": [{"id": "cobot1_door_zone", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 2.0,"y": 0.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 6.0, "y": 4.0, "z":6.0}]}, {"id": "cobot1_window_zone", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 2.0,"y": 4.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 6.0, "y": 4.0, "z":6.0}]}, {"id": "robolab_east", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 4.0,"y": 2.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 4.0, "y": 4.0, "z":4.0}]}, {"id": "robolab_west", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": -4.0,"y": 2.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 8.0, "y": 10.0, "z":6.0}]} ]}
{"refSystems": [{"id": "ROOT"}, {"id": "CETI_ROOT", "position": {"refSystemId": "ROOT", "point": {"x": 3.05,"y": 2.08,"z": 0.0}, "accuracy": 1.0}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0}}]} {"refSystems": [{"id": "ROOT"}, {"id": "CETI_ROOT", "position": {"refSystemId": "ROOT", "point": {"x": 3.05,"y": 2.08,"z": 0.0}, "accuracy": 1.0}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0}}]}
{"objectConfigs": [{"agentId": "turtlebot", "sensorId": "UWB_2", "agentType": "ROBOT", "sensorType": "UWB"}, {"agentId": "turtlebot", "sensorId": "UWB_1", "agentType": "ROBOT", "sensorType": "UWB"}, {"agentId": "turtlebot", "sensorId": "98:CD:AC:26:2D:18", "agentType": "ROBOT", "sensorType": "RFID_SCANNER"}, {"agentId": "turtlebot", "sensorId": "handy1", "agentType": "ROBOT", "sensorType": "IMU"}]} {"objectConfigs": [{"agentId": "turtlebot", "sensorId": "UWB_2", "agentType": "ROBOT", "sensorType": "UWB"}, {"agentId": "turtlebot", "sensorId": "UWB_1", "agentType": "ROBOT", "sensorType": "UWB"}, {"agentId": "turtlebot", "sensorId": "98:CD:AC:26:2D:18", "agentType": "ROBOT", "sensorType": "RFID_SCANNER"}, {"agentId": "turtlebot", "sensorId": "handy1", "agentType": "ROBOT", "sensorType": "IMU"}]}
{"pois": [{"id": "UWB_BEACON_1", "description": "Beacon_Position", "data": {"type" : "UWB"}, "position": {"refSystemId": "ROOT", "point": {"x": 3.1,"y": 0.5,"z": 0.0}, "accuracy": 1.0}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }, {"id": "UWB_BEACON_2", "description": "Beacon_Position", "data": {"type" : "UWB"}, "position": {"refSystemId": "ROOT", "point": {"x": -0.3,"y": 4.5,"z": 0.0}, "accuracy": 1.0}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0}}, {"id": "83221710", "description": "RFID_TAG", "data": {"type" : "NFC"}, "position": {"refSystemId": "ROOT", "point": {"x": 2.1,"y": 0.4,"z": 0.5}, "accuracy": 0.1}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }, {"id": "31762128", "description": "RFID_TAG", "data": {"type" : "NFC"}, "position": {"refSystemId": "ROOT", "point": {"x": 2.2,"y": 3.4,"z": 0.5}, "accuracy": 0.1}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }]} {"pois": [{"id": "UWB_BEACON_1", "description": "Beacon_Position", "data": {"type" : "UWB"}, "position": {"refSystemId": "ROOT", "point": {"x": 3.1,"y": 0.5,"z": 0.0}, "accuracy": 1.0}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }, {"id": "UWB_BEACON_2", "description": "Beacon_Position", "data": {"type" : "UWB"}, "position": {"refSystemId": "ROOT", "point": {"x": -0.3,"y": 4.5,"z": 0.0}, "accuracy": 1.0}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0}}, {"id": "83221710", "description": "RFID_TAG", "data": {"type" : "NFC"}, "position": {"refSystemId": "ROOT", "point": {"x": 2.1,"y": 0.4,"z": 0.5}, "accuracy": 0.1}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }, {"id": "31762128", "description": "RFID_TAG", "data": {"type" : "NFC"}, "position": {"refSystemId": "ROOT", "point": {"x": 2.2,"y": 3.4,"z": 0.5}, "accuracy": 0.1}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }, {"id": "885", "description": "Beacon_Position", "data": {"type" : "UWB"}, "position": {"refSystemId": "ROOT", "point": {"x": 0,"y": 0,"z": 0.97}, "accuracy": 0.01}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }, {"id": "2934", "description": "Beacon_Position", "data": {"type" : "UWB"}, "position": {"refSystemId": "ROOT", "point": {"x": 4.24,"y": 1.33,"z": 1.0}, "accuracy": 0.01}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }, {"id": "3383", "description": "Beacon_Position", "data": {"type" : "UWB"}, "position": {"refSystemId": "ROOT", "point": {"x": 1.25,"y": 5.89,"z": 1.06}, "accuracy": 0.01}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }, {"id": "1107", "description": "Beacon_Position", "data": {"type" : "UWB"}, "position": {"refSystemId": "ROOT", "point": {"x": 4.24,"y": 5.83,"z": 1.05}, "accuracy": 0.01}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }]}
{"monitoringRequests": [{"frameIds": ["cobot1_door_zone", "cobot1_window_zone"], "monitoringTaskId": "RobolabMonitoringCeti", "serializationType": "protobuf"}, {"frameIds": ["cobot1_door_zone", "cobot1_window_zone", "robolab_east", "robolab_west"], "monitoringTaskId": "RobolabMonitoringFrontend", "serializationType": "json"}]} {"monitoringRequests": [{"frameIds": ["cobot1_door_zone", "cobot1_window_zone"], "monitoringTaskId": "RobolabMonitoringCeti", "serializationType": "protobuf"}, {"frameIds": ["cobot1_door_zone", "cobot1_window_zone"], "monitoringTaskId": "RobolabMonitoringFrontend", "serializationType": "json"}]}
\ No newline at end of file \ No newline at end of file
{"frames": [{"id": "box_1", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 0.0,"y": 4.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 0.6, "y": 1.0, "z":15.0}]}, {"id": "box_2", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 0.8,"y": 4.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 0.6, "y": 1.0, "z":15.0}]}, {"id": "box_3", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 1.6,"y": 4.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 0.6, "y": 1.0, "z":15.0}]}, {"id": "box_4", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 2.4,"y": 4.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 0.6, "y": 1.0, "z":15.0}]}, {"id": "box_5", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 3.2,"y": 4.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 0.6, "y": 1.0, "z":15.0}]}, {"id": "box_6", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 4.0,"y": 4.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 0.6, "y": 1.0, "z":15.0}]}, {"id": "shipmentBin_1", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 0.8,"y": 3.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 0.6, "y": 1.0, "z":15.0}]}, {"id": "shipmentBin_2", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 1.6,"y": 3.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 0.6, "y": 1.0, "z":15.0}]}, {"id": "shipmentBin_3", "space": [{"position": {"refSystemId": "ROOT", "point": {"x": 2.4,"y": 3.0,"z": 0.0}, "accuracy": 0.0}, "orientation": {"x": 1.0,"y": 0.5,"z": 1.0, "w": 1.5}, "x": 0.6, "y": 1.0, "z":15.0}]} ]}
{"refSystems": [{"id": "ROOT"}, {"id": "CETI_ROOT", "position": {"refSystemId": "ROOT", "point": {"x": 3.05,"y": 2.08,"z": 0.0}, "accuracy": 1.0}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0}}]}
{"objectConfigs": [{"agentId": "Employee_1", "sensorId": "UWB_1", "agentType": "ROBOT", "sensorType": "UWB"}
{"pois": [{"id": "885", "description": "Beacon_Position", "data": {"type" : "UWB"}, "position": {"refSystemId": "ROOT", "point": {"x": 0,"y": 0,"z": 0.97}, "accuracy": 0.01}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }, {"id": "2934", "description": "Beacon_Position", "data": {"type" : "UWB"}, "position": {"refSystemId": "ROOT", "point": {"x": 4.24,"y": 1.33,"z": 1.0}, "accuracy": 0.01}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }, {"id": "3383", "description": "Beacon_Position", "data": {"type" : "UWB"}, "position": {"refSystemId": "ROOT", "point": {"x": 1.25,"y": 5.89,"z": 1.06}, "accuracy": 0.01}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }, {"id": "1107", "description": "Beacon_Position", "data": {"type" : "UWB"}, "position": {"refSystemId": "ROOT", "point": {"x": 4.24,"y": 5.83,"z": 1.05}, "accuracy": 0.01}, "orientation": {"x": 0.0,"y": 0.0,"z": 0.0, "w": 0.0} }]}
{"monitoringRequests": [{"frameIds": ["box_1", "box_2", "box_3", "box_4", "box_5", "box_6", "shipmentBin_1", "shipmentBin_2", "shipmentBin_3"], "monitoringTaskId": "RobolabMonitoringOPExtension", "serializationType": "json"}]}
\ No newline at end of file
...@@ -10,7 +10,7 @@ import ipos.project.DataModellntegration.iPos_Datamodel.*; ...@@ -10,7 +10,7 @@ import ipos.project.DataModellntegration.iPos_Datamodel.*;
import ipos.project.DataModellntegration.iPos_Datamodel.impl.PositionEventImpl; import ipos.project.DataModellntegration.iPos_Datamodel.impl.PositionEventImpl;
import ipos.project.UseCaseController.Administration; import ipos.project.UseCaseController.Administration;
import ipos.project.UseCaseController.PositionMonitoring; import ipos.project.UseCaseController.PositionMonitoring;
import ipos.project.mapper.ProtoJsonMap; import ipos.project.devkit.utility.ProtoJsonMap;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.eclipse.emf.common.util.EList; import org.eclipse.emf.common.util.EList;
import org.eclipse.paho.client.mqttv3.MqttMessage; import org.eclipse.paho.client.mqttv3.MqttMessage;
......
...@@ -11,7 +11,7 @@ import ipos.project.UseCaseController.Administration; ...@@ -11,7 +11,7 @@ import ipos.project.UseCaseController.Administration;
import ipos.project.UseCaseController.PositionMonitoring; import ipos.project.UseCaseController.PositionMonitoring;
import ipos.project.config.mqtt.Handler; import ipos.project.config.mqtt.Handler;
import ipos.project.config.mqtt.MqttListener; import ipos.project.config.mqtt.MqttListener;
import ipos.project.mapper.ProtoJsonMap; import ipos.project.devkit.utility.ProtoJsonMap;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.eclipse.paho.client.mqttv3.MqttMessage; import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
......
...@@ -2,13 +2,10 @@ package ipos.project.SensorValueIntegration; ...@@ -2,13 +2,10 @@ package ipos.project.SensorValueIntegration;
import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.InvalidProtocolBufferException;
import ipos.models.GenericSensor; import ipos.models.GenericSensor;
import ipos.models.SimpleScene;
import ipos.models.SimpleScene.IposPosition; import ipos.models.SimpleScene.IposPosition;
import ipos.project.DataModellntegration.SimpleSceneIntegration.api.MqttRequestHandler;
import ipos.project.DataModellntegration.SimpleSceneIntegration.service.impl.ExternalPubServiceImpl; import ipos.project.DataModellntegration.SimpleSceneIntegration.service.impl.ExternalPubServiceImpl;
import ipos.project.SensorValueIntegration.api.MqttPositionHandler; import ipos.project.SensorValueIntegration.api.MqttPositionHandler;
import ipos.project.UseCaseController.Administration; import ipos.project.devkit.utility.ProtoJsonMap;
import ipos.project.mapper.ProtoJsonMap;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.annotation.JmsListener; import org.springframework.jms.annotation.JmsListener;
......
...@@ -3,10 +3,7 @@ package ipos.project.SensorValueIntegration.api; ...@@ -3,10 +3,7 @@ package ipos.project.SensorValueIntegration.api;
import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.InvalidProtocolBufferException;
import ipos.models.GenericSensor; import ipos.models.GenericSensor;
import ipos.models.GenericSensor.SensorPositionEvent; import ipos.models.GenericSensor.SensorPositionEvent;
import ipos.models.SimpleScene;
import ipos.models.SimpleScene.IposPosition;
import ipos.models.GenericSensor.SensorEventWrapper; import ipos.models.GenericSensor.SensorEventWrapper;
import ipos.project.DataModellntegration.SimpleSceneIntegration.service.impl.ExternalPubServiceImpl;
import ipos.project.DataModellntegration.iPos_Datamodel.IMU; import ipos.project.DataModellntegration.iPos_Datamodel.IMU;
import ipos.project.DataModellntegration.iPos_Datamodel.NFC; import ipos.project.DataModellntegration.iPos_Datamodel.NFC;
import ipos.project.DataModellntegration.iPos_Datamodel.PositionEvent; import ipos.project.DataModellntegration.iPos_Datamodel.PositionEvent;
...@@ -14,7 +11,7 @@ import ipos.project.SensorValueIntegration.Service.GenericSensorTransformer; ...@@ -14,7 +11,7 @@ import ipos.project.SensorValueIntegration.Service.GenericSensorTransformer;
import ipos.project.UseCaseController.PositionMonitoring; import ipos.project.UseCaseController.PositionMonitoring;
import ipos.project.config.mqtt.Handler; import ipos.project.config.mqtt.Handler;
import ipos.project.config.mqtt.MqttListener; import ipos.project.config.mqtt.MqttListener;
import ipos.project.mapper.ProtoJsonMap; import ipos.project.devkit.utility.ProtoJsonMap;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.eclipse.paho.client.mqttv3.MqttMessage; import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
......
package ipos.project.mapper; package ipos.project.devkit.utility;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import com.google.protobuf.AbstractMessage.Builder; import com.google.protobuf.AbstractMessage.Builder;
import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.InvalidProtocolBufferException;
......
...@@ -5,6 +5,7 @@ import ipos.project.devkit.cef.ComplexEventFilter; ...@@ -5,6 +5,7 @@ import ipos.project.devkit.cef.ComplexEventFilter;
import ipos.project.devkit.cef.ZoneSequenceRecognition; import ipos.project.devkit.cef.ZoneSequenceRecognition;
import ipos.project.devkit.iposext.IPosExtension; import ipos.project.devkit.iposext.IPosExtension;
import ipos.project.iposextension.orderpicker.frontend.FETable; import ipos.project.iposextension.orderpicker.frontend.FETable;
import org.apache.logging.log4j.LogManager;
import java.util.Map; import java.util.Map;
...@@ -18,14 +19,18 @@ import java.util.Map; ...@@ -18,14 +19,18 @@ import java.util.Map;
* progress of the picker and detect errors. * progress of the picker and detect errors.
*/ */
public class OFBizOrderPicker { public class OFBizOrderPicker {
private static org.apache.logging.log4j.Logger LOG = LogManager.getLogger();
IPosExtension ofbizOpIposExt = new OFBizOrderPickerExt(this); IPosExtension ofbizOpIposExt = new OFBizOrderPickerExt(this);
void handlePicklist(Picklist picklist){ void handlePicklist(Picklist picklist){
FETable feTable = transformPicklistIntoFeTable(); FETable feTable = transformPicklistIntoFeTable();
publishFeTableToFeApp(feTable); publishFeTableToFeApp(feTable);
try {
ofbizOpIposExt.configureIpos(new OFBizOrderPickerArgs.OFBizOrderPickerConf(picklist)); ofbizOpIposExt.configureIpos(new OFBizOrderPickerArgs.OFBizOrderPickerConf(picklist));
}catch (RuntimeException e){
LOG.info("Picklist could not be handled: " + e.getMessage());
e.printStackTrace();
}
((OFBizOrderPickerExt) ofbizOpIposExt).setupCef(picklist.getPicklistId()); ((OFBizOrderPickerExt) ofbizOpIposExt).setupCef(picklist.getPicklistId());
} }
......
package ipos.project.iposextension.orderpicker; package ipos.project.iposextension.orderpicker;
import com.google.protobuf.InvalidProtocolBufferException;
import ipos.models.SimpleScene; import ipos.models.SimpleScene;
import ipos.project.DataModellntegration.iPos_Datamodel.PositionEvent; import ipos.project.DataModellntegration.iPos_Datamodel.PositionEvent;
import ipos.project.DataModellntegration.iPos_Datamodel.ZoneDescriptor; import ipos.project.DataModellntegration.iPos_Datamodel.ZoneDescriptor;
...@@ -8,12 +9,15 @@ import ipos.project.devkit.cef.ComplexEventFilter; ...@@ -8,12 +9,15 @@ import ipos.project.devkit.cef.ComplexEventFilter;
import ipos.project.devkit.cef.ZoneSequenceRecognition; import ipos.project.devkit.cef.ZoneSequenceRecognition;
import ipos.project.devkit.iposext.IPosArguments; import ipos.project.devkit.iposext.IPosArguments;
import ipos.project.devkit.iposext.IPosExtension; import ipos.project.devkit.iposext.IPosExtension;
import ipos.project.devkit.utility.ProtoJsonMap;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public class OFBizOrderPickerExt extends IPosExtension { public class OFBizOrderPickerExt extends IPosExtension {
protected static String OP_MONITORINGREQUEST = "{\"monitoringRequests\": [{\"frameIds\": [\"box_1\", \"box_2\", \"box_3\", \"box_4\", \"box_5\", \"box_6\", \"shipmentBin_1\", \"shipmentBin_2\", \"shipmentBin_3\"], \"monitoringTaskId\": \"RobolabMonitoringOPExtension\", \"serializationType\": \"json\"}]}";
private static org.apache.logging.log4j.Logger LOG = LogManager.getLogger(); private static org.apache.logging.log4j.Logger LOG = LogManager.getLogger();
Map<String, ComplexEventFilter> cefs; // One ComplexEventFilter is responsible for one picklist Map<String, ComplexEventFilter> cefs; // One ComplexEventFilter is responsible for one picklist
...@@ -63,10 +67,11 @@ public class OFBizOrderPickerExt extends IPosExtension { ...@@ -63,10 +67,11 @@ public class OFBizOrderPickerExt extends IPosExtension {
@Override @Override
public SimpleScene.IposConfigWrapper prepareConfigWrapper(IPosArguments.IPosConfigData iposConfigData) { public SimpleScene.IposConfigWrapper prepareConfigWrapper(IPosArguments.IPosConfigData iposConfigData) {
if(iposConfigData instanceof OFBizOrderPickerArgs.OFBizOrderPickerConf){ try {
return ProtoJsonMap.fromJson(OP_MONITORINGREQUEST, SimpleScene.IposConfigWrapper.class);
} catch (InvalidProtocolBufferException e) {
throw new RuntimeException("Warning: Monitoring-request could not be parsed (JSON) and translated into Protobuf-data structures: ");
} }
return null;
} }
public void setupCef(String picklistId){ public void setupCef(String picklistId){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment