Topic
  • 2 replies
  • Latest Post - ‏2011-02-01T11:27:42Z by SystemAdmin
PeterCrocker
PeterCrocker
3 Posts

Pinned topic How to specify ILOG JRules v.7.0.2 for datasource for WBE v.7.0?

‏2010-01-13T16:54:46Z |
From the "WebSphere Business Events 7.0 Announced" moved to this new thread:

How to specify ILOG JRules v.7.0.2 for Windows datasource for WBE v.7.0 for Windows?
My scenario:
1) Change ILOG JRules project as described in 'Scenario 1. WebSphere Business Events calls a rule in an existing rules project'
http://publib.boulder.ibm.com/infocenter/wbevents/v7r0m0/topic/com.ibm.wbe.integrating.doc/doc/integratingwbeandjrules.html
2) Deploy it on built-in Tomcat JRules execution server.
3) In WBE Design Data inserts WebSphere ILOG JRules data source. (WBE runs on WAS v.7.0.)
4) Change the Source property to : http://localhost:8080/DecisionService/ws/Test/1.0/PreTradeChecks/1.0. Then Apply.
5) Reload source -> Nothing....
It seems WBE even does not try to call http://localhost:8080/DecisionService/ws/Test/1.0/PreTradeChecks/1.0.

Note: Then I open http://localhost:8080/DecisionService/ws/Test/1.0/PreTradeChecks/1.0?WSDL in the browser - it displays.
<service name="DecisionServicePreTradeChecks">
<port name="DecisionServiceSOAPlocalhost" binding="tns:DecisionServiceSOAP">
<soap:address location="http://localhost:8080/DecisionService/ws/Test/1.0/PreTradeChecks/1.0"/>
</port>
</service>
Updated on 2011-02-01T11:27:42Z at 2011-02-01T11:27:42Z by SystemAdmin
  • PeterCrocker
    PeterCrocker
    3 Posts

    Re: How to specify ILOG JRules v.7.0.2 for datasource for WBE v.7.0?

    ‏2010-01-13T17:05:20Z  
    Hi,

    So far this looks like you have the ILOG JRules data source defined correctly. The next step is to use this data source within an intermediate objects. This is also described in the link you reference and then the following goes into more detail:
    http://publib.boulder.ibm.com/infocenter/wbevents/v7r0m0/index.jsp?topic=/com.ibm.wbe.appdev.doc/doc/retrievingdatafromawebsphereilogjrulesdatasourceusingmappedkeys.html

    The ILOG JRules decision service will only be called when subsequent filters or actions that require the data.

    Hope this helps,
    Peter
  • SystemAdmin
    SystemAdmin
    95 Posts

    Re: How to specify ILOG JRules v.7.0.2 for datasource for WBE v.7.0?

    ‏2011-02-01T11:27:42Z  
    Hi,

    So far this looks like you have the ILOG JRules data source defined correctly. The next step is to use this data source within an intermediate objects. This is also described in the link you reference and then the following goes into more detail:
    http://publib.boulder.ibm.com/infocenter/wbevents/v7r0m0/index.jsp?topic=/com.ibm.wbe.appdev.doc/doc/retrievingdatafromawebsphereilogjrulesdatasourceusingmappedkeys.html

    The ILOG JRules decision service will only be called when subsequent filters or actions that require the data.

    Hope this helps,
    Peter
    Hi,
    I follow all the instructions of section Integrating WebSphere ILOG JRules on the same WebSphere Application Server as WebSphere Business Events of the InfoCenter.

    The Rule Project is the PreTradeChecks that is described in the tutorial.
    I sent an event throught the Web Business Area but I read in the log file of the JRules RES this exception:

    Caused by: ilog.rules.engine.IlrUserRuntimeException: null object when invoking public boolean java.lang.String.equals(java.lang.Object)
    at condition part of rule 'CheckCustomerName.Bad_Clients'
    at call to 'Ruleflow#CheckCustomerName rule task body'
    at call to 'Ruleflow flow task body'
    at call to 'execute'

    It seems that the values that I passed with the event, defined in the Business Space, arrive empty to JRules.
    How can I fix this problem?
    And after how can I check the response of JRules?

    Thanks
    Federica