How to set-up value of PSEUDO time in "BusinessRulesProcessor" action ?

Solution Unverified - Updated -

Issue

  • I have used BusinessRuleProcessor as one action in our ESB flow where I have set ruleClockType as PSEUDO.
<action class="org.jboss.soa.esb.actions.BusinessRulesProcessor"
    name="business_rule_processor">
    <property name="ruleSet" value="drl/sample.drl" />
    <property name="ruleReload" value="false" />
    <property name="stateful" value="true" />
    <property name="object-paths">
        <object-path esb="body.fetchDetails" />
    </property>
    <property name="ruleFireMethod" value="FIRE_UNTIL_HALT" />
    <property name="ruleClockType" value="PSEUDO" />
    <property name="ruleEventProcessingType" value="STREAM" />
        .....
    </property>
</action>

Here is the snippet of the class FetchDetails where I have a field time . I wish to set the pseudo time according the value for time as stored in body.logEntry .

    package sample.test;
    import java.io.Serializable;
    import java.util.Date;
    import java.util.HashMap;

    public class FetchDetails implements Serializable{

                ......
        private Long time;
        private String hostName;
        private String hostIP;

        public FetchDetails(){

        }
        .....

Can you please advice how to achieve it?

Environment

  • JBoss Enterprise Business Rules Management System Platform (BRMS)
    • 5.1.0
  • JBoss Enterprise Service Oriented Architecture Platform (SOA-P)
    • 5.1.0
    • 5.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In