2011/2/17 StormeHawke <span dir="ltr">&lt;<a href="mailto:Brian.Trezise@intellidata.net">Brian.Trezise@intellidata.net</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  
    
    
  
  
    Thanks, killing mvel got it, the error messages are almost making
    sense now.  Any idea why it would tell me the method keyset() is
    undefined for an object that extends HashMap?</blockquote><div><br>Yes: because it is. --- keyset != keySet<br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
    <br>
    On 2/17/2011 1:31 AM, Wolfgang Laun-2 [via Drools - Java Rules
    Engine] wrote:
    </div><blockquote type="cite"><div class="im"> There is a semicolon missing after break in line 39.
      <br>
      <br>
      The drools.inse in the error message is very strange. Are you
      <br>
      compiling other rules as well?
      <br>
      <br>
      Don&#39;t use dialect &quot;mvel&quot; when you aren&#39;t using mvel.
      <br>
      -W
      <br>
      <br></div><div><div></div><div class="h5">
      On 17 February 2011 00:37, StormeHawke &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=2516479&amp;i=0&amp;by-user=t" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt; wrote:
      </div></div><div><div><div></div><div class="h5"><br>
        &gt;
        <br>
        &gt;
        <br>
        &gt; Esteban wrote:
        <br>
        &gt;&gt;
        <br>
        &gt;&gt; shouldn&#39;t that be: inputType.toString() //No capital i
        ??
        <br>
        &gt;&gt;
        <br>
        &gt;
        <br>
        &gt; Yes it should, thanks for catching that.  Unfortunately
        there must still be
        <br>
        &gt; more problems because I&#39;m still getting the error.  I&#39;m
        thrown by the fact
        <br>
        &gt; that it&#39;s telling me I&#39;ve got an unterminated string
        literal, it&#39;s not
        <br>
        &gt; making sense:
        <br>
        &gt;
        <br>
        &gt;
        <br>
        &gt; Error: Unable to build expression for &#39;consequence&#39;:
        [Error: unterminated
        <br>
        &gt; string literal]
        <br>
        &gt; [Near : {... }
        <br>
        &gt;                };
        <br>
        &gt;
        <br>
        &gt;                drools.inse ....}]
        <br>
        &gt;                  ^
        <br>
        &gt; [Line: 43, Column: 4] &#39;         PriceResult result = new
        <br>
        &gt; PriceResult($priceRequest.getClient(),
        $priceRequest.getRequestedPn());
        <br>
        &gt;                for(InputType inputType :
        $priceDataRecord.keyset())
        <br>
        &gt;                {
        <br>
        &gt;                        String label =
        inputType.getPropertyName();
        <br>
        &gt;                        Object value =
        $priceDataRecord.get(inputType);
        <br>
        &gt;                        ValueType valueType = null;
        <br>
        &gt;                        String valueDisplay = null;
        <br>
        &gt;                        switch(inputType)
        <br>
        &gt;                        {
        <br>
        &gt;                                //Don&#39;t add ID and PN to the
        result - ID is unnecessary and PN is
        <br>
        &gt; included as a separate property
        <br>
        &gt;                                case ID:
        <br>
        &gt;                                case PN:
        <br>
        &gt;                                        break;
        <br>
        &gt;
        <br>
        &gt;                                case PACKAGE_UNIT:
        <br>
        &gt;                                        valueType =
        ValueType.INTEGER;
        <br>
        &gt;                                        valueDisplay =
        value.toString();
        <br>
        &gt;                                        break;
        <br>
        &gt;
        <br>
        &gt;                                case MOQ_1:
        <br>
        &gt;                                case MOQ2:
        <br>
        &gt;                                        valueType =
        ValueType.INTEGER;
        <br>
        &gt;                                        valueDisplay =
        value.toString();
        <br>
        &gt;                                        break
        <br>
        &gt;
        <br>
        &gt;                                case PRICE_1:
        <br>
        &gt;                                case PRICE_2:
        <br>
        &gt;                                        valueType =
        ValueType.BIG_DECIMAL;
        <br>
        &gt;                                        valueDisplay =
        value.toString();
        <br>
        &gt;                                        break;
        <br>
        &gt;
        <br>
        &gt;                                case LEAD_TIME:
        <br>
        &gt;                                        valueType =
        ValueType.DOUBLE;
        <br>
        &gt;                                        valueDisplay =
        value.toString();
        <br>
        &gt;                                        break;
        <br>
        &gt;
        <br>
        &gt;                                default:
        <br>
        &gt;                                        throw new
        IllegalArgumentException(&quot;InputType &quot; + inputType.toString()
        <br>
        &gt; + &quot; is not defined for &quot; +
        $priceRequest.getClient().getName());
        <br>
        &gt;                        }
        <br>
        &gt;
        <br>
        &gt;                        if(valueType != null)
        <br>
        &gt;                        {
        <br>
        &gt;                                PriceValue priceValue = new
        PriceValue(label, value, valueType,
        <br>
        &gt; valueDisplay);
        <br>
        &gt;                                result.put(label,
        priceValue);
        <br>
        &gt;                        }
        <br>
        &gt;                }
        <br>
        &gt;
        <br>
        &gt;                insert(result);
        <br>
        &gt; &#39; : [Rule name=&#39;someclient-default rule&#39;]
        <br>
        &gt;
        <br>
        &gt; --
        <br>
        &gt; View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Unterminated-String-Literal-error-tp2513857p2514050.html?by-user=t&amp;by-user=t" rel="nofollow" link="external" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Unterminated-String-Literal-error-tp2513857p2514050.html</a><br>

        &gt; Sent from the Drools - User mailing list archive at
        Nabble.com.
        <br>
        &gt; _______________________________________________
        <br>
        &gt; rules-users mailing list
        <br></div></div>
        &gt; <a href="http://user/SendEmail.jtp?type=node&amp;node=2516479&amp;i=1&amp;by-user=t" rel="nofollow" link="external" target="_blank">[hidden email]</a>
        <br><div class="im">
        &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
        &gt;
      </div></div>
      <br>
      _______________________________________________
      <br>
      rules-users mailing list
      <br>
      <a href="http://user/SendEmail.jtp?type=node&amp;node=2516479&amp;i=2&amp;by-user=t" rel="nofollow" link="external" target="_blank">[hidden email]</a>
      <br><div class="im">
      <a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
      <br>
      <br>
      </div><hr color="#cccccc" noshade size="1">
      <div style="color: rgb(68, 68, 68); font-family: tahoma,geneva,helvetica,arial,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">

        <div style="font-weight: bold;">If you reply to this email, your
          message will be added to the discussion below:</div>
        <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Unterminated-String-Literal-error-tp2513857p2516479.html?by-user=t" rel="nofollow" link="external" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Unterminated-String-Literal-error-tp2513857p2516479.html</a>
      </div>
      <div style="color: rgb(102, 102, 102); font-family: tahoma,geneva,helvetica,arial,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; margin-top: 0.4em;">

        To unsubscribe from Unterminated String Literal error, <a href="http://drools-java-rules-engine.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&amp;node=2513857&amp;code=QnJpYW4uVHJlemlzZUBpbnRlbGxpZGF0YS5uZXR8MjUxMzg1N3wtMjA3MDc3MTQ0MA==&amp;by-user=t" rel="nofollow" link="external" target="_blank">click
          here</a>. </div>
    </blockquote>
  


<br><hr align="left" width="300">
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Unterminated-String-Literal-error-tp2513857p2519731.html" target="_blank">Re: Unterminated String Literal error</a><div><div></div>
<div class="h5"><br>
Sent from the <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.html" target="_blank">Drools - User mailing list archive</a> at Nabble.com.<br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>