[
https://issues.jboss.org/browse/JBRULES-3704?page=com.atlassian.jira.plug...
]
Ramakrishna v updated JBRULES-3704:
-----------------------------------
Steps to Reproduce:
drl file contains
declare Student
@role(event)
@expires(1m)
end
declare OrderScheduled
@role(event)
@timestamp(timestamp)
end
rule 'Schedule Order - order id 123'
dialect "mvel"
when
$created:OrderCreated($orderId:orderId,$timestamp:timestamp ) from entry-point
"time stream"
not Student() from entry-point "time stream"
then
System.out.println("Student Event expire at "+new Date());
end
I am inserting both OrderScheduled and Student facts .After 1 minute Student Event expires
and rule fired.Its working fine.
My problem is i want to add expire time dynamically.
If we could set this expiration time dynamically for each event then that would be helpful
us to go with this approach. pls provide me the solution .
Thanks in advance
was:
drl file contains
declare Student
@role(event)
@expires(1m)
end
declare OrderScheduled
@role(event)
@timestamp(timestamp)
end
rule 'Schedule Order - order id 123'
dialect "mvel"
when
$created:OrderCreated($orderId:orderId,$timestamp:timestamp ) from entry-point
"time stream"
not Student() from entry-point "time stream"
then
System.out.println("Student Event expire at "+new Date());
end
I am inserting both OrderScheduled and Student fact events both.After 1 minute Student
Event expires and rule fired.Its working fine.
My problem is i want to add expire time dynamically. pls provide me the solution .
Thanks in advance
Unable to set value to @expire tag dynamically
-----------------------------------------------
Key: JBRULES-3704
URL:
https://issues.jboss.org/browse/JBRULES-3704
Project: JBRULES
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core
Affects Versions: 5.5.0.Final
Environment: Linux, Java
Reporter: Rakesh m v
Assignee: Mark Proctor
Labels: new_and_noteworthy
Original Estimate: 3 days
Remaining Estimate: 3 days
declare Student
@role(event)
@expires(1m)
end
This way I used @expires tag in Rules from drl file for expiration of Student fact after
1minute.
Now I want to set the @expires time value dynamically for Student fact, How can i achieve
this ?
Please provide me a solution.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira