我实际上为项目使用注册实体。注册遵循电子商务的特定过程。
实际上我需要做的是:
为此,我创建了2个组件和一个规则:
这是我的“基本规则”:
{ "rules_schedule_registration_management_after_30_minutes" : {
"LABEL" : "Schedule registration management after 30 minutes",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"TAGS" : [ "Registration" ],
"REQUIRES" : [ "commerce", "rules", "registration" ],
"ON" : { "registration_insert" : [] },
"IF" : [
{ "NOT entity_exists" : { "type" : "registration", "property" : "state", "value" : "waitlist" } }
],
"DO" : [
{ "component_rules_setcron_30_minutes" : { "registration" : [ "registration" ] } }
]
}
}
这部分工作正常,但是我必须定义第二条规则,该规则涉及处于“等待列表”中且状态为“已完成”的注册。我必须:
我在这里完全被困住了。 谢谢您的帮助