rules icon indicating copy to clipboard operation
rules copied to clipboard

Confused about update_state

Open xabiel opened this issue 5 years ago • 2 comments

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

xabiel avatar Apr 14 '20 10:04 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.

jruizgit avatar Jun 07 '20 19:06 jruizgit

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.

xabiel avatar Jun 07 '20 19:06 xabiel