[jboss-jira] [JBoss JIRA] (DROOLS-1356) Advance PseudoClock in KIE-Server/Decision Server

Matteo Mortari (JIRA) issues at jboss.org
Fri Mar 3 11:32:00 EST 2017


    [ https://issues.jboss.org/browse/DROOLS-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13372469#comment-13372469 ] 

Matteo Mortari commented on DROOLS-1356:
----------------------------------------

I suggest to have actually two commands for advance.

The first one shall reflect existing API, this is a draft:
https://github.com/tarilabs/drools/blob/patch-pseudoclockcmds/drools-core/src/main/java/org/drools/core/command/runtime/PseudoClockAdvanceTimeCommand.java

The second one shall "compare and change" similar to java AtomicNumber as this command might be helpful given a kie-server is a remote CEP, this is a draft:
https://github.com/tarilabs/drools/blob/patch-pseudoclockcmds/drools-core/src/main/java/org/drools/core/command/runtime/PseudoClockCompareAndSetCommand.java

I have a concern as the {{`GetSessionClockCommand`}} was also existing at the time I drafted the commands above^, yet I carried on trying to roll my own to just get the value out:
https://github.com/tarilabs/drools/blob/patch-pseudoclockcmds/drools-core/src/main/java/org/drools/core/command/runtime/SessionClockGetCurrentTimeCommand.java
I'm not sure why.

> Advance PseudoClock in KIE-Server/Decision Server
> -------------------------------------------------
>
>                 Key: DROOLS-1356
>                 URL: https://issues.jboss.org/browse/DROOLS-1356
>             Project: Drools
>          Issue Type: Feature Request
>          Components: kie server
>    Affects Versions: 7.0.0.Beta2
>         Environment: JBoss BRMS 6.4.0, macOS 10.11.1, Oracle Hotspot 1.8.0_101
>            Reporter: Duncan Doyle
>            Assignee: Mario Fusco
>
> KIE-Server does not provide a command to advance the time of a pseudo-clock. This functionality is required (or at least, highly useful) when KIE-Server is used for CEP sessions.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list