@@ -235,7 +235,6 @@ function clearSession!!(dfg::CloudGraphsDFG)::Nothing
235
235
236
236
# Clearing history
237
237
dfg. addHistory = Symbol[]
238
- empty! (dfg. labelDict)
239
238
return nothing
240
239
end
241
240
@@ -249,7 +248,6 @@ function clearRobot!!(dfg::CloudGraphsDFG)::Nothing
249
248
250
249
# Clearing history
251
250
dfg. addHistory = Symbol[]
252
- empty! (dfg. labelDict)
253
251
return nothing
254
252
end
255
253
@@ -263,7 +261,6 @@ function clearUser!!(dfg::CloudGraphsDFG)::Nothing
263
261
264
262
# Clearing history
265
263
dfg. addHistory = Symbol[]
266
- empty! (dfg. labelDict)
267
264
return nothing
268
265
end
269
266
284
281
DANGER: Copies the source to a new unique destination.
285
282
"""
286
283
copySession! (sourceDFG:: CloudGraphsDFG ):: CloudGraphsDFG = copySession! (sourceDFG, nothing )
287
-
288
-
289
- function getUserData (dfg:: CloudGraphsDFG ):: Dict{Symbol, String}
290
- propVal = _getNodeProperty (dfg. neo4jInstance, [dfg. userId, " USER" ], " data" )
291
- return JSON2. read (String (base64decode (propVal)), Dict{Symbol, String})
292
- end
293
- function setUserData! (dfg:: CloudGraphsDFG , data:: Dict{Symbol, String} ):: Bool
294
- count = _setNodeProperty (dfg. neo4jInstance, [dfg. userId, " USER" ], " data" , base64encode (JSON2. write (data)))
295
- return count == 1
296
- end
297
- function getRobotData (dfg:: CloudGraphsDFG ):: Dict{Symbol, String}
298
- propVal = _getNodeProperty (dfg. neo4jInstance, [dfg. userId, dfg. robotId, " ROBOT" ], " data" )
299
- return JSON2. read (String (base64decode (propVal)), Dict{Symbol, String})
300
- end
301
- function setRobotData! (dfg:: CloudGraphsDFG , data:: Dict{Symbol, String} ):: Bool
302
- count = _setNodeProperty (dfg. neo4jInstance, [dfg. userId, dfg. robotId, " ROBOT" ], " data" , base64encode (JSON2. write (data)))
303
- return count == 1
304
- end
305
- function getSessionData (dfg:: CloudGraphsDFG ):: Dict{Symbol, String}
306
- propVal = _getNodeProperty (dfg. neo4jInstance, [dfg. userId, dfg. robotId, dfg. sessionId, " SESSION" ], " data" )
307
- return JSON2. read (String (base64decode (propVal)), Dict{Symbol, String})
308
- end
309
- function setSessionData! (dfg:: CloudGraphsDFG , data:: Dict{Symbol, String} ):: Bool
310
- count = _setNodeProperty (dfg. neo4jInstance, [dfg. userId, dfg. robotId, dfg. sessionId, " SESSION" ], " data" , base64encode (JSON2. write (data)))
311
- return count == 1
312
- end
0 commit comments