Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Setting multiple variable values in a transaction
February 15, 2015
20:12, EET
Avatar
hbrackel
Member
Members
Forum Posts: 144
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

A probably common task on a server is to set multiple related variable values in some kind of transaction (setting all values to guarantee consistent reads by any client). Is there a way to perform such task with the current SDK without falling back to complex dataTypes? Can eventually read services or monitoredItem updates by held back until all related variable values have been updated?

Kind regards, Hans-Uwe

PS: I understand that the client would have to read both values using the same readService. To extend the question above, does the server provide some transactional or synchronization guarantee for reading/writing attributes within the same service call?

February 16, 2015
7:56, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

The complex data types are really meant for this, so there are currently no other means to synchronise variable values together. A good idea and I will need to give it some thinking if there would be a nice way to achieve this.

If you manage the data yourself with a custom node manager, then you of course get a full guarantee. Or you could perhaps use the IoManagerListener to intercept the read call yourself to do “manual” synchronisation. For subscriptions, though this is only possible via your own custom node manager, but that will not guarantee full synchronisation either.

March 7, 2016
6:42, EET
Avatar
Sebastian
New Member
Members
Forum Posts: 1
Member Since:
March 4, 2016
sp_UserOfflineSmall Offline

Hey, you wanted to give it some thinking, so is there any news on this topic? We have the same problem and want to avoid complex data types for the moment. It would be very helpful if at least multiple variables that are written within one write request were published at once.

Best regards
Sebastian

March 8, 2016
10:00, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Thanks for asking. We gave it a little bit of thinking now and there are some ideas how this might be possible. If you send an email to uajava-support, we can see how to work together to accomplish what you need.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
24 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: 729

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1