rules
rules copied to clipboard
Confused about update_state
Dear Jesus, I'm using the update_state method in one of my systems and I realize if you do not include all the variables in the context update they are deleted. Is it correct?
For instance: (1) update_state('asistenciaAbordo', {'horaInicio': fechaDeInicio.hour, 'horaActual': fechaActual.hour, 'masDe8horas': 'si'}) (2) update_state('asistenciaAbordo', {'horaActual': fechaActual.hour})
The second update will clean the value of horaDeInicio and masDe8horas. Correct?
Are parcial (only some variables) updates possible?
Thantks in advance, Xabiel
Hi Xabiel, thanks for posting the question. Partial updates are not supported right now. I'm going to add this to the list of features to be implemented.
Gracias!
Enviado desde mi iPhone
El 7 jun 2020, a las 21:08, Jesus Ruiz [email protected] escribió:
Hi Xabiel, thanks for posting the question. Partial updates are not supported right now. I'm going to add this to the list of features to be implemented.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jruizgit/rules/issues/328#issuecomment-640264939, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGMNHLMLKODVAOWJX63XVPTRVPQUBANCNFSM4MHUG4WA.