drools flow - how to crate a human task form?
by gs76pl
hi,
What is the best way of creating some UI for human tasks with an input form?
I've a sample process with a human task that should update some values in
the process. I had a look into API of a task and the only thing i can find
there is 'content' which i'm not really sure about (is it the place where
for instance HTML UI should be created?) Is there any way to create this
form with some additional actions like : claim/fail etc?
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-flow-how-to-cr...
Sent from the Drools - User mailing list archive at Nabble.com.
12 years, 10 months
Rules Evaluation based on agenda
by Vis
Hi,
We have many agenda-group based rules defined in application and while
firing rules, we set specifc agend group based on different use cases to the
session.
In evaluation phase of rules, it not only evaluate rules related with agenda
set to the session but also other rules which are not belong to the same
agenda which is set to the session.
Now problem here is:
since some time we get error, if a inserted fact is used in other agenda
group and their nested objects are not initialized which are used in
condition, it throws errors and exit.
if Drools could provide filtering capablitiy at evaluation time like wise
AgendaFilter is provided to filter activated rules, it will be great. If
there is any workaround it will be a great help.
Thanks in advance
-V
--
View this message in context: http://drools.46999.n3.nabble.com/Rules-Evaluation-based-on-agenda-tp3674...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
rule dialect issue in local file stream Vs Guvnor
by domingo
I have one simple rule, just check the boolean attribute of the object and
print the value of the boolean, that simple rule. I am using java as my rule
dialect. I found something interesting while debugging.
1. When i read the drl file from the local file stream I found the
following...
getDialect ::: java
getConsequence :::
my.test.package.name.TestOne.Rule_boolean_test_rule_0DefaultConsequenceInvoker@b3a21684
2. when i read the same drl from the guvnor I found the following...
getDialect ::: mvel
getConsequence ::: org.drools.base.mvel.MVELConsequence@67bc67bc
Here is is my doubt...since i use the same rule file and 'java' as dialect
why the consequence and dialect are diffrence from ocal file stream.
If anyone clear this doubt will be greatly appreciated.
-----
with kind regards,
--
View this message in context: http://drools.46999.n3.nabble.com/rule-dialect-issue-in-local-file-stream...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
Global variable error message
by domingo
Hi,
Thanks for your attention,
I am using global in my rule file(drl), I did some experiment with globals
my finding as follows...
1. declare both rules engine and drl file ==> all fine working properly.
2. I intentionaly commented out the global declaration in drl file and set
the global in the rules engine, it gives very clear error message like
'Unexpected global [identifiername]' and rule file is not compiled ==> this
is also fine very clear what is happening.
3. I declare the globals in drl file and intentionally not set the globals
into rules engine ==> I am getting the following error
message..."org.drools.runtime.rule.ConsequenceException: rule: XXXXX VVVV
rule_1"
my question here is the same error why the error message is different and
test no 3 . the error message is not clear.
This makes more difficult in debugging.
Please let me know if other way of display the correct error messahe. I
completely check the drools-compiler test files not getting any help.
drools guru's please advise me.
-----
with kind regards,
--
View this message in context: http://drools.46999.n3.nabble.com/Global-variable-error-message-tp3673889...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
changeset.xml schema error
by domingo
I have some issues using changeset...
Experiment - 1
<change-set xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
drools-change-set-5.0.xsd'>
<add>
<resource source='classpath:dir1/dir2/filename.drl' type='DRL' />
</add>
</change-set>
when i use the above changeset (thanks to user forum)...the program works
fine no issues but i got the following warning messages...
(null: 1, 201): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 1, 201): cvc-elt.1: Cannot find the declaration of element
'change-set'.
(null: 1, 207): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 1, 285): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 1, 374): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 1, 446): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 1, 534): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
Question: how to get rid of this? I completely google the web including user
forum no answer.If it is available in the forum, my apologies for missing
that info...some one could forward me to that info location.
Experiment - 2
<change-set xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...'
>
<add>
<resource source='classpath:dir1/dir2/filename.drl' type='DRL' />
</add>
</change-set>
when i use the above changeset (grepcode drools-compiler 5.2.1
Final)...after 1 minute it gives the following error message and the thread
is open for ever...nothing happen.
INFO: KnowledgeDefinitionBuilder::::: changeset == <change-set
xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...'
> <add> <resource source='classpath:dir1/dir2/filename.drl' type='DRL' />
</add> </change-set>
(null: 1, 285): schema_reference.4:
Failed to read schema document
'http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...',
because 1) could not find the document; 2) the document could not be read;
3) the root element of the document is not <xsd:schema>.
(null: 1, 285): cvc-elt.1: Cannot find the declaration of element
'change-set'.
Question: I copied the schemaLocation from the src, why it is not working?
please advise me?
-----
with kind regards,
--
View this message in context: http://drools.46999.n3.nabble.com/changeset-xml-schema-error-tp3676510p36...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
Declarative fact model or Java?
by Stephen Masters
Hi folks,
I quite like the clean separation provided by maintaining a declarative fact model rather than a Java model. In particular to me, it seems to make it easier to manage rules in Guvnor separate from my runtime environment. However I can also see how maintaining a Java model simplifies some activities, avoiding having to map between and external Java model and an internal representation, and making it easy to modify facts from within a knowledge session.
Is there anybody out there who has experience doing a number of projects both ways, and has developed an opinion on whether one is preferable the other? Or is there perhaps more of a decision tree pertaining to which is better in particular situations?
And on a side-note, is there anything out there that helps with mapping between Java beans and declarative facts? I was wondering about hacking up some AOP aspects to enable me to annotate a Java model in a slightly JPA/ORM style to help with mapping/marshalling between the two.
Thanks for any thoughts.
Steve
stephen.masters(a)me.com
12 years, 10 months
Fusion historical data analysis
by MartinSimo
Dear drools Users
I'd like to evaluate drools for our next project, thus a newbie.
Trying to write a rule, which hits, if a threshold is reached 3 times in 100
seconds.
having:
kpi1 -- representing the timestamp of the event (as data are read from DB)
and kpi2 where the actual value is.
having rule:
...
@expires( 200s )
@timestamp( kpi1 )
...
$arrayList : ArrayList( size > 3) from collect(
LogEntry ( $kpi2 : kpi2 > 0.10) over window:time( 100s ) )
I have a test set of kpi2 20x each 5s over 0.1 and then 50x each 5s below
0.1.
The first time the rule hits its correct (after the first 3 ticks kpi2>0.1)
but it continues to hit till the end of the test set, even if the 100s
window didn't have any>0.1.
As I understood the @expires should have wiped the old data out of the
working mem. (tried to set @expire( 2s), but with same result)
Do I miss something?
Deployed in Jboss 5.1.0ga ESB 4.10, drools 5.2.0)
any help is appreciated
Martin
--
View this message in context: http://drools.46999.n3.nabble.com/Fusion-historical-data-analysis-tp36735...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
FireAllRules for all agenda
by Vis
Hi,
We are having huge set of rules categoried into different agends, based on
different functional behavior.
And session.fireAllRule works fine with respect to an agend.
But there is one more scenario where we need to fire all the rules
irrespective of any agenda group, even main agend also.
1. Does Drools provide any such API call like fireAllRules where all rules
can be fired irrespective of agenda?
2. If not, what is work around?
Thanks in adavance.
Thanks,
V
--
View this message in context: http://drools.46999.n3.nabble.com/FireAllRules-for-all-agenda-tp3674638p3...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months