The existing new rules template has some syntax issues. Here's the default rules implementation generated in tooling today:
package org.switchyard.quickstarts.remoteinvoker
import org.switchyard.Message
global Message message
rule "RulesComponent"System.out.println("service: CreditCheck, payload: " + message.content);
when
// insert conditional here
then
// insert consequence here
end
Change to this instead:
package org.switchyard.quickstarts.remoteinvoker
import org.switchyard.Message
global Message message
rule "RulesComponent"
when
then
System.out.println("service: CreditCheck, payload: " + message.getContent());
end
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira