is the following going to work? -- // Imports
import java.lang.Object; import java.lang.String; import com.myco.engine.Constants; import com.myco.engine.ExecContext; // Functions function boolean P1(ExecContext context) { return MyEngine.execute("A", "B", "C"); } public boolean P2(ExecContext context) { return MyEngine.execute("D", "E", "F"); } // First Rule: if (P1 AND P2) then return 'passed' rule "First Rule" when context : ExecContext eval ( P1(context) && P2(context) ) then context.setVerdict(Constants.PASSED) end // Second Rule: if (!(P1 AND P2)) then return 'failed' rule "Second Rule" when context : ExecContext eval ( !(P1(context) && P2(context)) ) then context.setVerdict(Constants.FAILED); end