I tried to write the correct rule, but the action still fires three times, and I see it print slot three times in the console.
However, I deleted the relevant rule without any effect on the results.Is the problem caused by me not being trained on Actions
Hello, It seems like you’re calling action_getSexByName three times: once in slot mappings, then twice in your rule. To prevent the action from running multiple times, remove it from slot mappings and the rule, and only call it once within the name_form using the FormAction class, which will execute it in a controlled manner.
Sorry, I tried deleting rules and slots. Action does only run once, but the first time Action cannot obtain the value of slot. I don’t know how to use FormAction, detailed operation not found in the document
This is my project file：GitHub