[rules-users] http://localhost:8080/jbpm-console do not work

2012-05-09 Thread bardelman
hi,  
I have downloaded jbpm-install and installed jbpm by “ant  install.demo”.

After I execute “ant start.demo”, however I can’t access
http://localhost:8080/jbpm-console..

i checked if the server is running on http://localhost:8080/ and found the
jboss AS welcome page working.

i also found a similar problem on https://community.jboss.org/thread/160213
but still didn t find the problem neither in the server log.

windows 7, 32bits.
mozilla firefox.

cheers!

--
View this message in context: 
http://drools.46999.n3.nabble.com/http-localhost-8080-jbpm-console-do-not-work-tp3973819.html
Sent from the Drools: User forum mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Creating a business process programatically, Jbpm5 tutorials for beginners

2012-05-08 Thread bardelman
Hi,

i m a jbpm5 beginner and i m reading the  Drools Developer's Cookbook
-[Packt Publishing, Jan 2012] and on its chapter 9 :jBPM5: Managing
,Business Processes there is a sample project for Creating a business
process manually (creating-process-using-the-api) in i which there is an
EventNode instanciation :

 

EventNode eventNode = new EventNode();

eventNode.setName(EventNode);

eventNode.setId(2);

eventNode.setScope(external);

EventTypeFilter eventFilter = new EventTypeFilter();

eventFilter.setType(eventType);

eventNode.addEventFilter(eventFilter);

 

 

i want to understand what the eventNode.setScope(external); means and
also about filters.

i googled for the jbpm-flow-builder API but didnt find any documentation.

i dont know where to find some tuorials for these stuffs..

 

thnx for help !

--
View this message in context: 
http://drools.46999.n3.nabble.com/Creating-a-business-process-programatically-Jbpm5-tutorials-for-beginners-tp3971577.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] drools 5.0's RuleFlow drools 5.2's jbpm5

2012-05-05 Thread bardelman
Hi, 
i m planning to learn jbpm5 and i ve 2 books :
-Drools-JBoss-Rules-5.0-Developers-Guide :which is about the version 5.0 of
drools. in this book, there is a chapter about the Drools flow.

-The second book is the Drools Developper Cookbook(2012), here there is a
chapter about the jbpm5 in which it s said :jBPM5 is the new brand name of
the Drools process engine that was previously known as 
Drools Flow.

As i want to optimize my learning curve for this framework(i mean for jbpm5)
i want to know if it is useful to read from the first book ? is it still
useful  the Drools flow of the version 5.0 ? sorry for my bad english ..!!

--
View this message in context: 
http://drools.46999.n3.nabble.com/drools-5-0-s-RuleFlow-drools-5-2-s-jbpm5-tp3964263.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Logical assertions the KnowledgeBaseConfiguration insertion modes.

2012-04-28 Thread bardelman
Hi , 
i ve read that when the same fact is logically inserted into a session by
more rules, only one equal instance  will be physically present in the
session.

On the other hand, i learned that Drools supports two fact insertion modes
:equality and identity.Identity (which is the default) means that no two
objects with the same JVM object reference can be inserted into the
knowledge session.

what if the equality mode is set and the logical assertion is used ? does
these modes only concerns the non logical assertion and not the logical?


i ve found in an exemple in the Drools-JBoss-Rules-5.0-Developers-Guide,
that each logically inserted fact has a counter which is incremented every
time an equal fact is inserted. Does this counter belongs to the drools
specification ?




--
View this message in context: 
http://drools.46999.n3.nabble.com/Logical-assertions-the-KnowledgeBaseConfiguration-insertion-modes-tp3946385.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Setting variables in a stateless session

2012-04-26 Thread bardelman
hi folks, this is a simple question ,
i just want to understand how is it possible that a stateless session have a
setGlobal() method as it does not maintain a state. What's the point ?!
i  also have some confusion between a request scope and a stateless
session scope i think it s the same..
 

--
View this message in context: 
http://drools.46999.n3.nabble.com/Setting-variables-in-a-stateless-session-tp3940652p3940652.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] setting global variables in session : the Command interface VS the RuleContext. What is the difference ?

2012-04-23 Thread bardelman
hi ,
i m new in drools, i m reading the Drools-JBoss-Rules-5.0-Developers-Guide
book in which i found a validation rule example on its chapter 3. In this
exemple, global variables were set into the session with two methods shown
in this code :

...
session = knowledgeBase.newStatelessKnowledgeSession();
session.setGlobal(reportFactory, reportFactory);
session.setGlobal(inquiryService, inquiryService);
...

and these variables qualified as immutables, were called from the
RuleContext

public static void error(RuleContext drools,
  Object... context) {
 KnowledgeRuntime knowledgeRuntime = drools
.getKnowledgeRuntime();
ValidationReport validationReport = (ValidationReport)
knowledgeRuntime.getGlobal(validationReport);
ReportFactory reportFactory = (ReportFactory)
knowledgeRuntime.getGlobal(reportFactory);
...

and for other variables(or facts ) the Command interface was used instead :

 ListCommand commands = new ArrayListCommand();
commands.add(CommandFactory.newSetGlobal(
validationReport, report));
commands.add(CommandFactory
.newInsertElements(getFacts(customer)));
session.execute(CommandFactory
.newBatchExecution(commands));

i m looking for accuracy in understanding when and which to use each method.

thanks for help 

--
View this message in context: 
http://drools.46999.n3.nabble.com/setting-global-variables-in-session-the-Command-interface-VS-the-RuleContext-What-is-the-difference-tp3931886p3931886.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users