<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Thanks... I have just done some further investigations into the
    conditions because sometimes it works and sometimes it doesn't.<br>
    <br>
    I suspect that it is something to do with the order that the
    functions happen to get placed into the package.<br>
    If I have a function that calls another function that happens to
    have been placed into the package before it, then it works.
    Otherwise it does not.<br>
    <br>
    Unfortunately, I cannot affect the order so I am at the mercy of the
    Guvnor!<br>
    <br>
    I guess I'll just have to just put them all in one file and then
    factor them out when I get 5.1.<br>
    <br>
    Chris<br>
    <br>
    On 09/12/2010 17:16, Tihomir Surdilovic wrote:
    <blockquote cite="mid:4D010EE7.5080103@redhat.com" type="cite">I
      think I see the issue you are talking about. In 5.0.2 when
      declaring multiple functions (where one calls another) the package
      is not building (compilation errors). In BRMS 5.1 this is no
      longer the issue. A workaround for you in 5.0.2 looks to be to
      define all functions in a single function file in Guvnor (uploaded
      screenshot for you). With this my simple tests run fine.
      <br>
      <br>
      Hope this helps.
      <br>
      Thanks.
      <br>
      <br>
      <br>
      On 12/9/10 11:26 AM, Chris Selwyn wrote:
      <br>
      <blockquote type="cite">I am using Drools 5.0.2.
        <br>
        <br>
        What I didn't mention was that I am constructing my package in
        Guvnor.. so maybe it's a problem with Guvnor rather than the
        core.
        <br>
        <br>
        Chris
        <br>
        <br>
        On 09/12/2010 16:05, Tihomir Surdilovic wrote:
        <br>
        <blockquote type="cite">Hi Chris, can you tell me the supported
          5.0.x version you are using and
          <br>
          also show a simple test? I am not able to reproduce with
          supported bits
          <br>
          5.0.1, 5.0.2, and the very soon to be released brms 5.1 (
          <br>
          <a class="moz-txt-link-freetext" href="http://planet.jboss.org/post/jboss_enterprise_brms_5_1_saves_the_holiday_shopping_season">http://planet.jboss.org/post/jboss_enterprise_brms_5_1_saves_the_holiday_shopping_season</a>
          <br>
          ).
          <br>
          <br>
          Thanks.
          <br>
          On 12/9/10 10:20 AM, Chris Selwyn wrote:
          <br>
          <blockquote type="cite">I don't seem to be able to find how to
            call one function from another
            <br>
            function in Drools 5.0.
            <br>
            It works just fine in 5.1 but I am having to use 5.0 because
            my customer
            <br>
            requires me to use a supported version.
            <br>
            <br>
            Is this a known problem or is there really no way to do it?
            <br>
            <br>
            Chris Selwyn
            <br>
            _______________________________________________
            <br>
            rules-users mailing list
            <br>
            <a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
            <br>
            <a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
            <br>
            <br>
          </blockquote>
          _______________________________________________
          <br>
          rules-users mailing list
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
          <br>
          <a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
          <br>
          <br>
          <br>
          -----
          <br>
          No virus found in this message.
          <br>
          Checked by AVG - <a class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a>
          <br>
          Version: 10.0.1170 / Virus Database: 426/3304 - Release Date:
          12/08/10
          <br>
        </blockquote>
        <br>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <p class="avgcert" color="#000000" align="left">No virus found in
        this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 10.0.1170 / Virus Database: 426/3304 - Release Date:
        12/08/10</p>
    </blockquote>
  </body>
</html>