----- Original Message -----From: mmquelo massiTo: Rules Users ListSent: Tuesday, January 15, 2008 11:58 AMSubject: [rules-users] Splitted Sentences in DSL...Hi guys,As u can notice in the http://labs.jboss.com/file-access/default/members/drools/images//templatebaseddsl2.png DSL pop-up Menu,we have got the sentence "Escalate the ticket" splitted into 3 different sub-sentences:1. Escalate2. Escalate the3. Escalate the ticketWhen I open "org.drools.examples.TroubleTicketWithDSL.dslr" from the "drools-examples/drools-examples-drl/src/main/rules/org/drools/examples"directory and i push "CTRL+SPACE" in Eclipse Europa 3.3, then the pop-up menu I get back shows just one of the sentences above.It just shows: "Escalate the ticket".I expected to see all the above sentences, as I saw in the JBoss Drools Features page ( http://labs.jboss.com/file-access/default/members/drools/images//templatebaseddsl2.png ).So.... Why Do I get a different menu with just one sentence?Is the .dsl file referred from the .drls in the "feature page" different from the following one?[condition][]There is a customer ticket with status of "{status}"=customer : Customer( ) ticket : Ticket( customer == customer, status == "{status}" )
[condition][]There is a "{subscription}" customer with a ticket status of "{status}"=customer : Customer(subscription == "{subscription}") ticket : Ticket( customer == customer, status == "{status}")
[consequence][]Log "{message}"=System.out.println("{message} ");
[consequence][]Escalate the ticket=ticket.setStatus("Escalate"); update(ticket);
[consequence][]Send escalation email=sendEscalationEmail( customer, ticket );One more question.I have got no idea on the "Object" column which accours in the DSL Editor.We have got "Language Expression", "", "Object" and "Scope".What does "Object" stand for?Thank You for any help you can give me.Massi
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users