9:30, EET
September 21, 2018
Hallo
Euromap 83 defines an Event ParameterChangeLogType which is a subtype of LogbookEventType (subtype of BaseEventType) which has a component User of type UserType. The UserType has the mandatory properties Id, Name and IsPresent.
We observe the following behaviour: if a ParameterChangeLogType is triggered UaExpert (used as test client) does not show the properties Id, Name and IsPresent of the user.
But when we change the method com.prosysopc.ua.EventData.addComponentFields(UaNode, List) slightly, everything works as expected.
Here the changed method body (one statement added, see // <== added):
private void addComponentFields(UaNode node, List basePath) { final UaReference[] components = node.getReferences(Identifiers.HasComponent, false); if (logger.isDebugEnabled()) { logger.debug("addComponentFields: components=" + Arrays.toString(components)); } for (UaReference r : components) { final UaNode targetNode = r.getTargetNode(); List browsePath = new ArrayList(); if (basePath != null) { browsePath.addAll(basePath); } browsePath.add(targetNode.getBrowseName()); if (targetNode instanceof UaVariable) { final UaVariable targetVariable = (UaVariable) targetNode; final Variant value = getVariableValue(targetVariable); if ((value != null) && !value.isEmpty()) { setFieldValue(browsePath, value); } addPropertyFields(targetVariable, browsePath); } else { addPropertyFields(targetNode, browsePath); // <== added addComponentFields(targetNode, browsePath); } } }
Do we have a problem with the Euromap model or is this a bug in the prosys Java SDK?
Regards,
Manfred
12:23, EET
April 3, 2012
Hi,
Based on what I know about that model currently, it requires UA 1.04, i.e. in practice needs future SDK 4.0.0 in order to work. However your case is a bit special so I would prefer to continue via mail in this case. Additionally given that the source code is only available for the source-edition customers, preferably issues related to it should not be posted on the forum.
However thank you for reporting this. That might be an actual bug in the SDK, as UserType is an ObjectType. It is possible that that is the first Object InstanceDeclaration an EventType has had, which would fail direct Properties below it (as they have reference HasProperty).
Most Users Ever Online: 1919
Currently Online:
61 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 737
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6450
Newest Members:
fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerleyModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1