Drools flow and BPEL (Drools 5.0.0.M5)
by Umesh Wankhede
Hi
I am trying to evaluate various features (rules and workflow) of Drools
5.0. What I understand from docs (drools-docs-flow.pdf - page 5) is that
the Drools flow engine is based on generic process engine that allows
the execution of different process languages like RuleFlow, BPEL,
OSWorkflow, etc. Although I am able to do PoC (Proof of Concept) with
RuleFlow, there isn't any documentation/samples available for using BPEL
as process language. Also I don't find any more information on blogs, etc.
If anyone has done something similar, please let me know, or any
pointers would help.
Thanks
Umesh
Legal Notice: This transmission, including any attachments, is confidential, proprietary, and may be privileged. It is intended solely for
the intended recipient. If you are not the intended recipient, you have received this transmission in error and you are hereby advised that any
review, disclosure, copying, distribution, or use of this transmission, or any of the information included therein, is unauthorized and strictly
prohibited. If you have received this transmission in error, please immediately notify the sender by reply and permanently delete all copies of
this transmission and its attachments
16 years, 11 months
Jar
by Femke De Backere
Hi!
Yesterday I tried to jar my Drools application. At first I got a few
errors trying to jar (error opening zip file) in the version CR1.
Finally I tried a downgrade to M5, and the jar seemed to be created
correctly (using the export function of eclipse). But when I tried to
run the jar, something went wrong, my application doesn't run as it
should. How can I make een runnable jar of my Drools application?
Thx,
Femke
16 years, 11 months
Rule Compilation error : The Field ... is not visible
by Ashish Soni
Hi All ,
I am sure there must be a silly mistake but i am not able to find out ,
please help me as what is wrong in below rule
package Test
import com.abc.api.document.Document
import com.abc.api.line.LineItem
rule "split line item"
when
$item : LineItem( grossAmount > 1000 )
then
modify( $item ) { grossAmount=500 };
end
11:35:23,318 ERROR [] Rule Compilation error : [Rule name='split line item']
Test/Rule_split_line_item_0.java (7:565) : *The field
LineItem.grossAmount is not visible*
Thanks,
Ashish
16 years, 11 months
Guvnor, database and rule language
by Anu@work
I am trying to use drools to evaluate the following rule:
Given a telephone number, if the telephone number already exists in database
and has a balance > 0, set isAllowed = false. I cannot figure out how to
write the rule.
This is my object
public class Customer implements Serializable {
private static final long serialVersionUID = 1L;
private String tn;
private Double balance;
private Boolean isAllowed;
// getters/ setters
}
Can anyone help me with the rule below? The TN is set in the input fact. Is
the query below correct? It looks incorrect.
global org.hibernate.Session hibernateSession;
when
cust1:Customer()
cust2:Customer() from hibernateSession.createQuery("Select * from
Customers Where TN = :tn and balance >
0).setProperties({"tn":cust1.getTn()})list()
then
cust1.setIsAllowed(false);
--
View this message in context: http://www.nabble.com/Guvnor%2C-database-and-rule-language-tp22810206p228...
Sent from the drools - user mailing list archive at Nabble.com.
16 years, 11 months
stack overflow in work items
by Garrett Conaty
My scenario is a rule that is firing over a collection. For each item
in that collection a ruleflow starts to handle it. Right now the
ruleflow just uses the log workitem to log the steps. When there are
~600 items in the collection I'm getting stack overflows. Granted the
processes could be optimized (I'd really like to take each thing in
the collection that matched and start a process for the set of them).
Still is there a limit to the number of active processes with work
items?
java.lang.StackOverflowError
at java.lang.Long.valueOf(Long.java:547)
at
org
.drools
.workflow.core.impl.NodeContainerImpl.getNode(NodeContainerImpl.java:44)
at
org
.drools
.workflow
.core.impl.WorkflowProcessImpl.getNode(WorkflowProcessImpl.java:47)
at
org
.drools
.workflow
.core
.impl.WorkflowProcessImpl.internalGetNode(WorkflowProcessImpl.java:51)
at
org
.drools
.workflow.instance.impl.NodeInstanceImpl.getNode(NodeInstanceImpl.java:
90)
at
org
.drools
.workflow
.instance
.impl
.ExtendedNodeInstanceImpl
.getExtendedNode(ExtendedNodeInstanceImpl.java:24)
at
org
.drools
.workflow
.instance
.impl
.ExtendedNodeInstanceImpl.triggerEvent(ExtendedNodeInstanceImpl.java:41)
at
org
.drools
.workflow
.instance
.impl
.ExtendedNodeInstanceImpl
.internalTrigger(ExtendedNodeInstanceImpl.java:28)
at
org
.drools
.workflow
.instance
.node
.EventBasedNodeInstance.internalTrigger(EventBasedNodeInstance.java:30)
at
org
.drools
.workflow
.instance
.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:80)
at
org
.drools
.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:
111)
at
org
.drools
.workflow
.instance
.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:141)
at
org
.drools
.workflow
.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:
128)
at
org
.drools
.workflow
.instance
.impl
.ExtendedNodeInstanceImpl
.triggerCompleted(ExtendedNodeInstanceImpl.java:37)
at
org
.drools
.workflow
.instance
.node
.EventBasedNodeInstance.triggerCompleted(EventBasedNodeInstance.java:96)
at
org
.drools
.workflow
.instance
.node
.EventBasedNodeInstance.triggerCompleted(EventBasedNodeInstance.java:77)
at
org
.drools
.workflow
.instance
.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:
192)
at
org
.drools
.workflow
.instance
.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:
244)
at
org
.drools
.workflow
.instance
.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:222)
at
org
.drools
.workflow
.instance
.impl
.WorkflowProcessInstanceImpl
.signalEvent(WorkflowProcessInstanceImpl.java:258)
at
org
.drools
.process
.instance
.impl
.DefaultWorkItemManager.completeWorkItem(DefaultWorkItemManager.java:96)
at com.jsi.inactivity.DroolsTest$1.executeWorkItem(DroolsTest.java:40)
16 years, 11 months
How to clone object inside a rule
by Ashish Soni
Hi All ,
I want to clone/copy one object inside a rule depends on some condition ,
Please let me know how i can do that ?
Regards,
Ashish
16 years, 11 months
Facing severe issues while using Persistence
by Umesh Wankhede
Hi
While using workflow persistence feature (with human task component), I
am having quite a few problems. When I use default db (H2), I get
ConstraintViolationException [1]. Since I have to ultimately integrate
with Oracle, I modify the config files to point to Oracle. But with that
I started getting lot of other issues, like invalid column names (size,
date), invalid table name (Comment), SQLGrammarException, etc[2] (This
is serious problem, if you use Oracle!)
I am struggling for quite a few days to get this work, but no success,
any help would be greatly appreciated.
I am attaching the source code also[3].
[1]db-h2-errors.log
[2] db-oracle-errors.log
[3] RuleFlowTest.java, ruleflow.rf
Regds
Umesh
Legal Notice: This transmission, including any attachments, is confidential, proprietary, and may be privileged. It is intended solely for
the intended recipient. If you are not the intended recipient, you have received this transmission in error and you are hereby advised that any
review, disclosure, copying, distribution, or use of this transmission, or any of the information included therein, is unauthorized and strictly
prohibited. If you have received this transmission in error, please immediately notify the sender by reply and permanently delete all copies of
this transmission and its attachments
16 years, 11 months
Writing rules using java from template
by Meny Kobel
Hi,
Any updates regarding this subject?
I have the same problem and can't find a solution.
Like newbie I need to read varying rules from DB and transform them to
drools language.
Thanks,
Meny
16 years, 11 months