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: 135
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: 1010
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: 1010
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: 518

Currently Online:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 683

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1