[jboss-user] [JBoss jBPM] - drools in jbpm-console

nl@ap do-not-reply at jboss.com
Thu Jan 29 02:37:44 EST 2009


Hi, 

is there a way to get the rulesActionHandler  example run in the jbpm-console? 

I'm getting the following error on starting an instance:

08:12:36,160 ERROR [GraphElement] action threw exception: Unable to resolve ObjectType 'Customer' : [Rule name=Determine Shipper, agendaGroup=MAIN, salience=0, no-loop=false]
  | Unable to resolve ObjectType 'Order' : [Rule name=Determine Shipper, agendaGroup=MAIN, salience=0, no-loop=false]
  | org.jbpm.action.Customerorg.jbpm.action.OrderRule Compilation error : [Rule name=Determine Shipper, agendaGroup=MAIN, salience=0, no-loop=false]
  | 	org/jbpm/action/Rule_Determine_Shipper_0.java (2:33) : Only a type can be imported. org.jbpm.action.Customer resolves to a package
  | 	org/jbpm/action/Rule_Determine_Shipper_0.java (2:109) : Only a type can be imported. org.jbpm.action.Order resolves to a package
  | 
  | org.drools.rule.InvalidRulePackage: Unable to resolve ObjectType 'Customer' : [Rule name=Determine Shipper, agendaGroup=MAIN, salience=0, no-loop=false]
  | Unable to resolve ObjectType 'Order' : [Rule name=Determine Shipper, agendaGroup=MAIN, salience=0, no-loop=false]
  | org.jbpm.action.Customerorg.jbpm.action.OrderRule Compilation error : [Rule name=Determine Shipper, agendaGroup=MAIN, salience=0, no-loop=false]
  | 	org/jbpm/action/Rule_Determine_Shipper_0.java (2:33) : Only a type can be imported. org.jbpm.action.Customer resolves to a package
  | 	org/jbpm/action/Rule_Determine_Shipper_0.java (2:109) : Only a type can be imported. org.jbpm.action.Order resolves to a package
  | 
  | 	at org.drools.rule.Package.checkValidity(Package.java:424)
  | 	at org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:394)
  | 	at org.jbpm.action.RulesActionHandler.readRule(RulesActionHandler.java:95)
  | 	at org.jbpm.action.RulesActionHandler.execute(RulesActionHandler.java:39)
  | 	at org.jbpm.graph.def.Action.execute(Action.java:122)

it looks like drools can't find any of the deployed beans, while it does find those if running in a standalone app. So I don't thing this is a drools problem.

Does anyone know how to resolve this problem?
BTW: I'm using jbpm-jpdl-3.2.3.

Thanks, 

Niels

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205454#4205454

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205454



More information about the jboss-user mailing list