logic update users is problems

Нужна Ваша помощь по бизнес-логике

    Мне нужно создать обработчик который будет удалять неиспользованные данные после того как пользователь обновил информацию. Я создаю данный обработчик:
GenericUserEventHandler
И в методе afterUpdate (RunnerContext context, HashMap userValue, ExecutionResult<HashMap> result)

мне необходимо обратиться к result и userValue
Мой объект users содержит такие элементы как String objectId и List<UserData> userData
как мне вытянуть данные элементы из result и userValue.
И еще правильно ли я вытягиваю и удаляю из хранилища:
вытягиваю -

IDataStore&lt;Users&gt; dataStore = Backendless.Data.of(Users.class); 
Users currentUsers = dataStore.findById((String) userValue.get("objectId"));

удаляю -

Backendless.Data.of(UserData.class).remove(userData);

Буду очень признателен если поможете в кратчайшие сроки решить данную проблему

Reply URL

Hello,

Could you please rewrite your post in English? We have many users coming from different countries and we do not want to set the precedent that (free) support is available in other languages than English.

Hope you understand.

Regards,
Mark

We need your help for the business logic

• I need to create a handler that will remove unused data after the user has updated information. I am creating this handler:

GenericUserEventHandler

and in the method afterUpdate (RunnerContext context, HashMap userValue, ExecutionResult <HashMap> result)

I need to turn to userValue

My users object contains an element as a List <UserData> userData

as I pull the item from userValue.

And if I pull and removed from the repository correctly:

I pull -

1.IDataStore <Users> dataStore = Backendless.Data.of (Users.class);

Users currentUsers = dataStore.findById ((String) userValue.get ( “objectId”));

delete -

1.Backendless.Data.of (UserData.class) .remove (userData);

I would be very grateful if you help as soon as possible to solve this problem

Hi Dzmitry,

We don’t provide such kind of help on the support forum due to the Support Policy. Please refer to the documentation or consider buying a Single Incident Support pack.