English Boards > V3 Development
Rules Custom Constraint
JohnS:
--- Quote from: emre on July 02, 2013, 01:08:06 pm ---1. There might be a typo. Check Trailing spaces.
--- End quote ---
Done.
--- Quote from: emre on July 02, 2013, 01:08:06 pm ---2. Not every rules can access Ticket info. You can access Ticket data from rules related with tickets like "Ticket Closed, Ticket Created, Order Added, etc."
--- End quote ---
Rule I'm using is Order Added to Ticket
The process is
Customer is selected
- Update Ticket State, Statename Member, State Discount
- Order Added to Ticket, Constraint Ticket.IsInState("Discount"), and MenuItemGroupCode matches, give $ discount & tag item as discounted
JohnS:
Emre,
I still don't get what I'm doing wrong here.
I can set a Ticket State when I select a Member -> Discount: Member
But I cannot use - Ticket.IsInState("Member") as a constraint. The Rule always executes even when no Member has been selected.
What am I missing?
emre:
My bad. It looks like our script engine does not support overloaded methods. On next release it should work.
You'll be able to use:
Ticket.InState(StateName,State)
or
Ticket.IsInState(State)
Navigation
[0] Message Index
[*] Previous page
Go to full version