Re: [rules-users] drools flow package issue

2009-11-23 Thread Kris Verlaenen
(XiaYuSubflowTest.java:32) ÔÚ2009-11-23£¬Kris Verlaenen kris.verlae...@cs.kuleuven.be дµÀ£º What do you mean by NoSuchMethod error is thrown ? Could you provide the full stack trace? In theory, you should simply be able to call any other process, whether it is in the same package or not. Kris

Re: [rules-users] Drools Flow 5.1 - How to get hold of WorkingMemory inside the WorkItemHandler

2009-11-23 Thread Kris Verlaenen
-users-boun...@lists.jboss.org] On Behalf Of Kris Verlaenen Sent: Sunday, November 22, 2009 8:29 PM To: Rules Users List; Vijay K Pandey Subject: Re: [rules-users] Drools Flow 5.1 - How to get hold of WorkingMemory inside the WorkItemHandler No, not really. But you can easily set

Re: [rules-users] Drools Flow 5.1 - Update JPA Entity - while workitem is in pending state - variable persistence strategy

2009-11-23 Thread Kris Verlaenen
You want to change the JPA entities themselves? Do you still have a reference to them? Simply changing them would probably work (or what is it you are trying to do)? Or you could look them up using the getVariable() method. In theory you could also use the setVariable() method but that is not

Re: [rules-users] Question on Rule Flow and Web Console

2009-11-25 Thread Kris Verlaenen
How about simply adding an XOR split node after the second node that checks the value of the parameter? Or adding a ruleset node there and they use rules to create this human task if necessary? A more advanced way to model this would be to use dynamic or ad-hoc processes. At this point you

Re: [rules-users] Flow (human task) and web apps

2009-11-25 Thread Kris Verlaenen
Quoting ramram8 ramram...@gmail.com: Concerning this point the JNDI seems to be a good idea but in case I cant use the JNDI is there any alternative Any solution that would allow an external application and console to share the same session would work. I used the XML dumper and changed the

Re: [rules-users] Drools Flow 5.1 - Update JPA Entity - while workitem is in pending state - variable persistence strategy

2009-11-25 Thread Kris Verlaenen
Quoting Vijay K Pandey vpan...@mdes.ms.gov: c)I would like to change it through Drools Process because that's where I have associated the JPA entities - I would not like to update it from outside. Not sure this is a problem. You merely create an association to these JPA entities

Re: [rules-users] Debuggin in Eclipse

2009-12-09 Thread Kris Verlaenen
Is your project a Drools project? You can convert existing projects to a Drools projects by right-clicking the project and selecting Convert to Drools Project. This will add the Drools library (which you can remove if you don't need it) and adds a Drools Builder. This builder is crucial as

Re: [rules-users] Human Task Work Item

2009-12-09 Thread Kris Verlaenen
What info does the work item contain that the task itself does not? Basically, the idea would be to put all data that the task needs (directly) as the content of the task (Content parameter), so the client can access it. Kris Citeren Todd Pagni todd.pa...@datacert.com: Thanks for the

Re: [rules-users] Debuggin in Eclipse

2009-12-09 Thread Kris Verlaenen
I am still able to stop at breakpoints in rules files by creating a drools project from scratch and Debug As - Drools application, but something about converting an existing project and debugging it. On Wed, Dec 9, 2009 at 6:52 AM, Kris Verlaenen kris.verlae...@cs.kuleuven.be

Re: [rules-users] Unable to see Rules Debugging info in Drools IDE

2009-12-14 Thread Kris Verlaenen
Created a screencast showing simple debugging at work. Could you try whether this works for you? http://people.redhat.com/kverlaen/Debug.swf Kris Quoting Pritam infinity2hea...@gmail.com: I don't see any debugging views enabled in debug drools application mode as described in the

Re: [rules-users] Starting ruleflow on event

2009-12-14 Thread Kris Verlaenen
The start node triggers based on a rule or an event are not yet exposed as properties in the graphical editor. You can already specify them in the XML though. Check out

Re: [rules-users] Human Task Work Item - Activation Time

2009-12-14 Thread Kris Verlaenen
We just try to follow what is defined in the WS-HumanTask specification. Could you check whether this is a limitation of the spec itself or whether we did not implement that feature correctly? Kris Quoting Vijay K Pandey vpan...@mdes.ms.gov: Hi, If a human task once in Reserved state

Re: [rules-users] Using work items in the Eclipse ruleflow editor

2009-12-14 Thread Kris Verlaenen
I created a screencast of how to define a domain-specific work item. Could you verify this works for you? http://people.redhat.com/kverlaen/DomainSpecificWorkItem.swf Kris Quoting bbking badillo.br...@gmail.com: I've been attempting to contribute my own work item following the instructions

Re: [rules-users] ProcessInstance Does Not Complete With User Task and Rule Task

2009-12-15 Thread Kris Verlaenen
Hi, I executed the process you provided and do not seem to have any problems with it. This is the output: ### Starting process ### ### Completing second work item ### Finished!!! Could you try your code with the latest snapshot releases? Kris Quoting nfox241 n...@dragonflyware.com: I

Re: [rules-users] UserTask Question?

2009-12-17 Thread Kris Verlaenen
We kept the set of properties that are supported for human tasks (name, actor, priority, etc.) small by default (for simplicity). But it should be straightforward to extend this with additional properties if you want to use more advanced features of the WS-HT service. Take a look at the

Re: [rules-users] Using work items in the Eclipse ruleflow editor

2009-12-17 Thread Kris Verlaenen
! My problem was that I had been creating a resources folder under root (which shows up as resources src folder in eclipse) rather than src/main/resources (which shows up as src/main/resources src folder in eclipse). Thanks again, BB Kris Verlaenen wrote: I created

Re: [rules-users] Problem calling rules from a flow

2009-12-22 Thread Kris Verlaenen
Strange, I just tried your code and it does seem to print out the Hello world statement when executing the rule. I attached the Eclipse project that I created from this, could you try this? It might be valuable to figure out the differences in the log files (I included mine in the zip file as

Re: [rules-users] drools flow persistence

2010-01-17 Thread Kris Verlaenen
Maxi, Which version of Drools are you using? I believe this was an issue with transaction managers that do not support nested transactions and that has already been fixed on trunk. Could you try out the latest snapshot to check whether the problem still exists?

Re: [rules-users] Unable to see Rules Debugging info in Drools IDE

2010-03-02 Thread Kris Verlaenen
I've recently created a screencast that shows you how to get the debug views working for the hello world example. Could you try doing the same thing as this screencast and let me know whether reproducing this still does give you empty debug views?

Re: [rules-users] Using DeadLines in Human Task

2010-03-02 Thread Kris Verlaenen
Caused by: java.lang.ClassNotFoundException: org.hibernate.PersistentObjectException You have this class on the client side as well? Anyway, this class contains some tests on how to use deadlines in human tasks:

Re: [rules-users] ClassCastException when debugging as a drools unit test with a ruleflow

2010-03-02 Thread Kris Verlaenen
That is strange ... Only thing I can image is that you are using the internal drools jars that are shipped as part of the eclipse plugin in the Drools JUnit case and not in the normal JUnit case. Could you try updating to the latest snapshot version of the Eclipse plugin (this will update your

Re: [rules-users] Drools Flow / Declarative process definition

2010-03-02 Thread Kris Verlaenen
Jaroslav, Yes, if you execute your processes in advanced mode, we are translating procedural constructs like sequence into a more declarative rule like the one you described as an example. Note we are currently not doing that for all procedural constructs (like branch / joins) but we plan to

Re: [rules-users] Process with subprocesses don't continue after finish work items in the subprocesses

2010-03-02 Thread Kris Verlaenen
Dirk, I tested out your example and I think this is working with the latest trunk, below is the output I received. Could you try your test case with the latest snapshot release, as this might be related to an issue that has already been fixed?

Re: [rules-users] gwt-console-drools - link 2 download

2010-03-04 Thread Kris Verlaenen
The GWT console is a separate project, you can find the source code here: http://anonsvn.jboss.org/repos/soag/bpm-console/trunk/ And more info here: http://community.jboss.org/wiki/bpmconsole Note that the drools build is currently using version 1.1.2, which can be found here:

Re: [rules-users] gwt-console-drools - link 2 download

2010-03-09 Thread Kris Verlaenen
Ram, Did you do changes to the gwt-console source code? (as the 2.0.1 artefacts are already published on the maven repo). Anyway, to use the latest version, simply update the 5 poms on the drools-process/drools-gwt-* projects and do a full build, this should generate the new drools-gwt-server

Re: [rules-users] XStream

2010-03-09 Thread Kris Verlaenen
Bertrand, You're probably missing the org.drools.runtime.pipeline.impl.XStreamTransformerProviderImpl class in your classpath? Make sure you add the drools-transformer-xstream-5.x.jar to your classpath. Kris - Original Message - From: Bertrand Grottier To:

Re: [rules-users] ClassCastException when debugging as a drools unit test with a ruleflow

2010-03-09 Thread Kris Verlaenen
I've just tried debugging a unit test with the latest snapshots and don't have any issues. So if you can reproduce so I can take a look, please let me know. Other than that, I can only recommend to take a fresh eclipse, install the latest snapshot plugin and create a new runtime (based on the

Re: [rules-users] How to add a SkinProvider for the Drools Flow Eclipse Plugin, since the SkinManager does not have any possiblities for adding one ?

2010-03-09 Thread Kris Verlaenen
Rob, At this point, you'll need to modify the existing one in the Eclipse plugin and simply add your own one. Ideally, this would need to be transformed into an Eclipse extension point, so you can use that to register your own skin providers as part of a separate, additional plugin. If

Re: [rules-users] gwt-console-drools - link 2 download

2010-03-09 Thread Kris Verlaenen
Ram, You actually need a combination of the gwt-console war (and you need the drools profile here, not the jbpm one), the gwt-console server war and the drools integration jar that links the console to our engine. The drools build system should do all that for you automatically though. I'm

Re: [rules-users] gwt-console-drools - link 2 download

2010-03-09 Thread Kris Verlaenen
Ram, Good, you seem to be able to open the user interface, so that's the first step. The error you are getting now is caused by a library conflict between the jars in the war and on your application server classpath. In this case, I assume the application war is containing a

Re: [rules-users] Persistence issue using Oracle

2010-03-11 Thread Kris Verlaenen
I have changed the default table and column names that were causing issues. https://jira.jboss.org/jira/browse/JBRULES-2448 If there are additional issues, please add a comment on this JIRA. Kris Quoting wytten dale.wyttenb...@gmail.com: The changes I made for Oracle were: 1. Add ojdbc5

Re: [rules-users] OutOfMemoryError with non-existence check in flow XOR split

2010-03-15 Thread Kris Verlaenen
Heath, This seems to be caused by an issue in persisting the current rule state when using a Not rule in a specific combination (and not specifically to your use of ruleflows). I have opened a JIRA for you and we will fix this asap. https://jira.jboss.org/jira/browse/JBRULES-2453 Kris

Re: [rules-users] Oryx exported BPMN not properly opened in Eclipse Drools.

2010-03-26 Thread Kris Verlaenen
Robert, I tried to open your file and it seems to open just fine in the latest version. If it only opens with a start node, do you also get an exception dialog when that happens? There will probably also be an exception trace in the error log, that might be useful. But I guess this might have

Re: [rules-users] marshal ActionNodeInstance

2010-03-26 Thread Kris Verlaenen
Heath, Actually, you shouldn't be marshaling an action node instance (hence the exception). The marshaling should only occur when the engine is not actively executing. But action nodes always execute immediately. So no action node instances should exist when you are marshaling. Are you

Re: [rules-users] how can we find next nodes from current node in rule flow

2010-03-26 Thread Kris Verlaenen
You could access this info through the process model as Mauricio showed, but this leads to a lot of pretty low-level code, which you might want to avoid in your process. Could you give an example of why you want to do that? Kris Quoting KiranP phadatareki...@gmail.com: suppose i have a rule

Re: [rules-users] Resuming the Flow: SESSION_ID, PROCESS_INSTANCE_ID, WORKITEM_ID

2010-03-26 Thread Kris Verlaenen
You should basically only know the workItemId. Whenever you have some task that needs to be executed externally (and could take some time), a new work item will be created. When that work is finished, the work item manager should be notified (using manager.completeWorkItem(workItem.getId(),

Re: [rules-users] Logging and BIRT

2010-04-08 Thread Kris Verlaenen
File logging is mostly for testing purposes. If you want to create a history log for reporting, take a look at the drools-bam module. This allows you create a logger that will create history information about the execution of your processes in a database, so that can be used as a data source

Re: [rules-users] Drools Flow: looking for a Fault Node / Handlerexample

2010-04-08 Thread Kris Verlaenen
There are some examples in the junit tests: http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/ProcessExceptionHandlerTest.java Kris - Original Message - From: Nol de Wit nolde...@gmail.com To: rules-users@lists.jboss.org

Re: [rules-users] Error When changing persistence from H2 to Oracle forTaskService

2010-04-08 Thread Kris Verlaenen
It is possible that the default mapping is not accepted by Oracle because it uses too long table names or keywords. Iùve recently submitted a fix for similar issues with drools-persistence-jpa (basically reduced column names manually). Could you maybe assist me in doing the same for the task

Re: [rules-users] How to do Exception Handling???

2010-04-08 Thread Kris Verlaenen
Miguel, I think your work item handler should not be throwing an exception, just because a java exception is low-level and linked to one specific implementation and we try to keep the processes a little higher-level. So what could you do then to model exceptional situations when executing a

Re: [rules-users] Resuming the Flow: SESSION_ID, PROCESS_INSTANCE_ID, WORKITEM_ID

2010-04-08 Thread Kris Verlaenen
Anatoly, I've not been able to check the user list for about a week, and it seems you have been wondering about this issue for a while, so let me try to summarize a little. I'm sure I won't be able to answer all questions in one email, but I'll give it a shot ;) First of all, your use case

Re: [rules-users] Flow with Rules (RuleFlowGroup): how to shareparameters/facts

2010-04-12 Thread Kris Verlaenen
Nol, Process variables are local to your process instance. Rules work based on data inserted in the session. So you should probably make sure your process inserts the data in the session at the appropriate time (e.g. using an action that does kcontext.getKnowledgeRuntime().insert(..). Kris

Re: [rules-users] Drools Flow: Skipping some LHS evaluations attime of insert

2010-04-12 Thread Kris Verlaenen
Another alternative would be to use an activation group, that way only one rule of that group will be able to fire. Kris - Original Message - From: Mauricio Salatino To: Rules Users List Sent: Wednesday, April 07, 2010 11:18 PM Subject: Re: [rules-users] Drools Flow:

Re: [rules-users] Logging and BIRT

2010-04-12 Thread Kris Verlaenen
in javadocs I downloaded. Thanks Amit 2010/4/8 Kris Verlaenen kris.verlae...@cs.kuleuven.be File logging is mostly for testing purposes. If you want to create a history log for reporting, take a look at the drools-bam module. This allows you create a logger that will create

Re: [rules-users] Resuming the Flow: SESSION_ID, PROCESS_INSTANCE_ID, WORKITEM_ID

2010-04-12 Thread Kris Verlaenen
42. Very interesting point about a shared session. I somehow automatically assumed that a StateFull session should probably not share it's state with multiple processes. So, I take it, we can have a single(ton?) stateful session to execute multiple processes without any issues? [I guess

Re: [rules-users] How to do Exception Handling???

2010-04-12 Thread Kris Verlaenen
The main problems I see when translating a java exception to a process exception automatically: - the exceptions are too low level, no business user understands NumberFormatException or ClassCastException, and the error could come from deep inside the invoked service - by making it automatic,

Re: [rules-users] errors with GWT-console

2010-04-12 Thread Kris Verlaenen
Guvnor was changed recently to add authentication when downloading packages. The console was not yet updated for this in 5.1.0.M1, so you'll need to update to the latest trunk. Luckily, there's now also an installation script that should simplify things as well. Take a look at

Re: [rules-users] DROOLS FLOW: Accessing the Map parameter object in a Java constraint evaluation function

2010-04-12 Thread Kris Verlaenen
If you add a map when starting a process, those values will be set as process variables. For example: [ a : SomeString; b : 3 ]. Simplest way to access these variables in a constraint is using a code constraint, something like: return SomeOtherString.equals(a); or return b 2; So you can just

Re: [rules-users] Drools IDE and Eclipse Helios

2010-07-14 Thread Kris Verlaenen
There were some minor changes necessary to get everything working for Helios, but the latest version should just work. Kris Quoting Mark Kremer m...@without-brains.net: I tried it and I was unable to edit some of the preferences, after searching on Google for a bit I found that the bug is

Re: [rules-users] WorkItemNodeInstance and the on exit action

2010-07-14 Thread Kris Verlaenen
Chris, Yes, we can only assure you the work item exists between it is triggered and completed (or aborted). So if you want to access any data related to it in an on-exit action or any further part of the process, it's probably best to simply map that data to a process variable. This will make

Re: [rules-users] Debug as within Eclipse

2010-07-14 Thread Kris Verlaenen
There was an issue where an update in the core prevented the .drl to show up. This should be fixed now, if you try the latest snapshot build. Kris Quoting fsauer fsa...@dsthealthsolutions.com: Hi, I am running 5.1 M2 on Galileo as well and when I create a breakpoint it actually stops

Re: [rules-users] DroolsFlow with foreach node stops execution of entire flow on empty collection

2010-07-21 Thread Kris Verlaenen
Ivan, You are correct, if the collection is empty, the process waieds for these elements to complete, even though there are none. I just committed a fix for this on trunk. Now, the for each node continues if the collection is empty (or null). Kris - Original Message - From:

Re: [rules-users] Implementing Timers With Drools PersistenceEnabled

2010-07-21 Thread Kris Verlaenen
Santosh, Based on your description, different processes should be started. Do you have a simple standalone example that shows this behaviour, so I can take a look? If not, using an audit logger might help in determining which rules are fired and which processes are being started. Kris

Re: [rules-users] Drools Flow 5.1 - latest snapshot -- Gateway (Diverge) : Split Node - Priority Does not Work

2010-07-21 Thread Kris Verlaenen
Vijay, This is a known limitation when using BPMN2. Check out the documentation, that describes which features are implemented already in the BPMN2 implementation: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch13.html Priorities

Re: [rules-users] java.lang.NoSuchMethodError on every Action node

2010-07-21 Thread Kris Verlaenen
Hi, This indeed seems to be related to a conflict of actions. I assume you are using the same knowledge builder for adding both the main and the sub process (as that is responsible for resolving possible conflicts)? If so, could you provide a simple, standalone example that demonstrates this

Re: [rules-users] Drools Flow 5.1 - latest snapshot -- Gateway(Diverge) : Split Node - Priority Does not Work

2010-07-21 Thread Kris Verlaenen
Santosh, I think you need to add it as part of a META-INF directory inside a source dir. There's a screencast that shows you how to get a simple example working, try following that and let me know if you still have issues with that: http://people.redhat.com/kverlaen/DomainSpecificWorkItem.swf

Re: [rules-users] Drools Flow - Human Task

2010-07-21 Thread Kris Verlaenen
How about simply reusing the human task node for this. Your process is then a simple sequence of 2 human task nodes. You can use the properties of the human task node (like name, description, content and input/output mapping to add the necessary information). Instead of using the default

Re: [rules-users] Timers' Week :)

2010-07-21 Thread Kris Verlaenen
I probably missed quite a few emails on the mailing list lately (sorry), but what's the exact problem with timers and persistence (and does it still exist in the latest trunk, as I know various improvements / bug fixes have been applied in the last few weeks as well)? There's a simple test

Re: [rules-users] java.lang.NoSuchMethodError on every Action node

2010-07-22 Thread Kris Verlaenen
Reto, This seems to be a conflict with similar actions in different processes overriding each other. I'll take a look at this and try to fix it asap, and keep you updated. Kris Quoting retoy reto.lampre...@allianz-suisse.ch: Hi Kris Here is a small project which demonstrates a similar

Re: [rules-users] Deserialization Error from Designer when Process Opened in Gunvor

2010-07-22 Thread Kris Verlaenen
Hi, Regarding the designer integration, it is probably important to know that Oryx is still using the BPMN2 beta 1 format, while Drools Flow has already updated to a more recent BPMN2 format. As a result, you probably can't open the processes that are generated by the Drools Flow graphical

Re: [rules-users] Wait state constriant

2010-07-22 Thread Kris Verlaenen
Reto, State nodes only support rule constraints. The reason is that a constraint in a wait state should be continuously evaluated (while the state is active), and the only way to do that efficiently is to use a rule for that (as that is basically what a rules engine is good at). I know the docs

Re: [rules-users] how to access process variables within wait state node timers?

2010-07-23 Thread Kris Verlaenen
Reto, You should have access to process variables and globals in your timer action. There's even a junit test that shows this, testTimerState (last one on link below):

Re: [rules-users] Drools Flow - users authentication.

2010-07-26 Thread Kris Verlaenen
There's a small section in the documentation about this: http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch14.html#d4e2489 If you use the installer, these files will be in the auth directory where you can then customize them. Sample

Re: [rules-users] how to access process variables within wait statenode timers?

2010-07-26 Thread Kris Verlaenen
Reto, I think this is because you don't notify the engine when the DroolsTimer object has been changed (using update). You should always notify the engine of any state changes (using update(..) if your rules depend on this state). Otherwise the engine will assume the state is still the same

Re: [rules-users] GWT Console - Drools Flow problems.

2010-07-27 Thread Kris Verlaenen
Tom, The first error is simply because you don't have a human task server running (so it can't find any human tasks). Some info on starting the human task service can be found here:

Re: [rules-users] Exception when use Human Task

2010-07-27 Thread Kris Verlaenen
It doesn't seem to be able to find a query, which should be defined in the orm.xml. Do you have the orm.xml file in your META-INF folder on your classpath? http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-process/drools-process-task/src/main/resources/META-INF/orm.xml Kris

Re: [rules-users] FW: Drools 5.1.0.M2 - WorkItemNodeInstance --Listeners can't get hold of WorkItem object

2010-07-27 Thread Kris Verlaenen
Vijay, I've taken a look and you are correct, the work item object should not be reset on completion as that way, listeners or on-exit actions might not have access to it anymore. I've used another approach to solve the issue that resulted in me adding this reset to -1. Let me know if this

Re: [rules-users] 401 error when attempting to get PKG for changeset.

2010-07-28 Thread Kris Verlaenen
Stephen, Something like this: 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

Re: [rules-users] Drools IDE Update site link for 5.1 CR1

2010-08-02 Thread Kris Verlaenen
We don't really expose an update site, but you can simply download the eclipse artefact and unzip in your eclipse folder. Since Drools is also part of JBoss Tools, you can use the nightly builds to get the latest snapshot release as well. http://www.jboss.org/tools/download/ Kris -

Re: [rules-users] Instructions for upgrading designer.war?

2010-08-06 Thread Kris Verlaenen
Han Ming, Here is the full list of changes that were made to the original war that is located here: http://www.intalio.org/public/maven2/com/intalio/bpms/web/designer/1.0.0.010/ Note that most of the changes in the src dir (as described below) were to get the import/export functionality of

Re: [rules-users] Drools 5 for process simulation

2010-08-06 Thread Kris Verlaenen
Jonathan, Drools supports a simulated clock (unified for rules and processes), so this should allow you to build a simulator. The code that Mark is referring to is just something built on top that allows you to define a simulation as a sequence of commands that are sent to the session at

Re: [rules-users] Edit global imports through eclipse plugin

2010-08-06 Thread Kris Verlaenen
Imports are always defined globally (i.e. at the process level). So simply opening up any expression editor and adding the imports there should allow you to add imports. Kris - Original Message - From: drooRam rajeshr...@yahoo.com To: rules-users@lists.jboss.org Sent: Thursday,

Re: [rules-users] MinaTaskClientHandler Reference Object

2010-08-06 Thread Kris Verlaenen
Why do you need that specific client? I think you should just create your own client if you want to do operations like complete and claim? Kris - Original Message - From: drooRam rajeshr...@yahoo.com To: rules-users@lists.jboss.org Sent: Thursday, August 05, 2010 8:05 PM Subject:

Re: [rules-users] Drools Flow inconsistancies

2010-08-24 Thread Kris Verlaenen
Paul, Do you use the same KnowledgeBuilder for adding all your processes to the KnowledgeBase? That should make sure that any potential conflict in generated java classes is resolved automatically. Kris - Original Message - From: paulB paul.bor...@sironahealth.com To:

Re: [rules-users] Question about BPMN2 and Drools

2010-09-05 Thread Kris Verlaenen
Cristiano, Drools Flow allows you to run executable BPMN2 processes. The example you are showing is actually a choreography, which describes the interaction between different actors, in this case probably a human actor using some kind of (web) application to send / receive data and an auctioning

Re: [rules-users] Drools FLow Persistence and Sessions

2010-09-07 Thread Kris Verlaenen
You yourself can decide how many sessions you want. Sessions are rather lightweight (so yes, you could simply create a new session for each process instance) and simply act as an independent processing unit. So then the question is, how many sessions do you normally need? Well, simple

Re: [rules-users] ProcessEventListener event order

2010-09-10 Thread Kris Verlaenen
Carlos, We are explicitly sending out before and after events to make sure you can figure out which events are the result of what other events. This allows us to recreate a tree-view of events (e.g. see the audit logger). The order you are seeing is normal, let me try to explain. If you have a

Re: [rules-users] WorkItem - meaning of abortWorkItem

2010-09-10 Thread Kris Verlaenen
The difference is that the workitem is set to state aborted instead of completed. And you could for example access the work item state in an on-exit action on the work item and do something in that case (throw an exception, set a process variable). It is correct however that the process

Re: [rules-users] Drools Flow Events Not Working

2010-09-20 Thread Kris Verlaenen
Hi, The process instance should automatically be reconnected to the session (= working memory) when it is reloaded from the database. It is a little unclear however, from you stacktrace, how you get a reference to your process instance after it has been restored. Particularly:

Re: [rules-users] GWT Console and WSHT Rendering

2010-10-16 Thread Kris Verlaenen
Forms are separately created using a template-based approach and looked up from the application classpath based on the task name. In this case, the Performance Evaluation.ftl form definition can be found in

Re: [rules-users] Can Drools Flow Persistence Work without JTA

2010-10-16 Thread Kris Verlaenen
Yes, we made the transaction manager pluggable, with a default implementation for JTA and Spring. You can take a look at the drools-persistence-jpa module, there is a org.drools.persistence.session.TransactionManager, that is the interface you would have to implement, with the

Re: [rules-users] Rule tasks and gwt-console

2010-10-16 Thread Kris Verlaenen
Juan, By default the gwt-console server instantiates one session that is reused for executing all process instances. This is however just one possible architecture. I think you can easily adapt the current code (take a look at DroolsFlowCommandDelegate in the drools-gwt-console module). 1)

Re: [rules-users] parallel folw execution

2010-10-20 Thread Kris Verlaenen
The process engine really doesn't add that much overhead to the actual work that needs to be performed by the process itself. If you're invoking a service that takes 2-3 seconds, you need to make sure you invoke the service asynchronously, so the engine can continue executing other process

Re: [rules-users] GWT Console and WSHT Rendering

2010-10-20 Thread Kris Verlaenen
Quoting Michael Anstis michael.ans...@gmail.com: What project can I find this under http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-process/drools-gwt-form/ On 16 October 2010 22:57, Kris Verlaenen kris.verlae...@cs.kuleuven.bewrote: Forms are separately created using

Re: [rules-users] GWT Console and WSHT Rendering

2010-10-20 Thread Kris Verlaenen
Sam, Yes, exactly like you said, if you use the FreeMarker templates, you have access to the task variable and the content, which is whatever you want it to be. If your content is a Map, we also allow access to all the values in the Map by using the key as a variable name (just to simplify your

Re: [rules-users] How do I persist at every node transition?

2010-10-20 Thread Kris Verlaenen
The engine will store the state of the process instance at any safe state. This means we won't store the state while we're still in the middle of processing it (as that means the state is still changing), but only once we're done processing that one trigger. So if you have a synchronous process

Re: [rules-users] Drools Flow Remote API ?

2010-10-25 Thread Kris Verlaenen
Drools allows remote clients to use exactly the same API by using a command approach. We have a client-side implementation of the drools session api that simply creates command objects that can be serialized and then transported from client to server using most communication channels. At server

Re: [rules-users] GWT Console and WSHT Rendering

2010-10-25 Thread Kris Verlaenen
This varies a little depending on which application server you are using, but assuming you're using JBoss AS: simply create a jar that contains all your form definitions and add the jar either to the server_installation_dir/default/lib folder or in the /WEB-INF/lib/ folder inside the

Re: [rules-users] Drools Flow BAM

2010-10-25 Thread Kris Verlaenen
Prafull, It all depends on how you want to store the data that you need to do BAM. You could consider the audit logger as an example of how you could do logging (although it might probably be better to not use XML logging for BAM, but rather use a database or feed the events directly into Drools

Re: [rules-users] Problems with globals in bpmn-flows

2010-10-28 Thread Kris Verlaenen
Bjorn, Unfortunately, the BPMN2 specification does not define anything that could be used to store globals (or imports for that matter). We've always held back a little on adding custom extensions to the BPMN2 spec but since it is stable now, I guess we will have no other choice. I'll be adding

Re: [rules-users] Flow Task implementation

2010-10-28 Thread Kris Verlaenen
The integration code for executing a custom work item is plain old Java. So anything you can implement or invoke using Java code can be used to implement a work item. So using EJBs in the integration code shouldn't be a problem. Kris borg wrote: How are pluggable working items implemented?

Re: [rules-users] Drools 5.1 Flow in a Clustered environment

2010-10-28 Thread Kris Verlaenen
Ken, In Drools, timers etc. are linked to a session (where the session can contain process instances, timers, data, rule evaluations, etc.). So, even if you are using Drools Flow in a clustered environment, where you could have a number of independent sessions running simultaneously, the

Re: [rules-users] Drools 5.1 Flow in a Clustered environment

2010-11-02 Thread Kris Verlaenen
On Oct 28, 2010, at 8:28 PM, Kris Verlaenen wrote: Ken, In Drools, timers etc. are linked to a session (where the session can contain process instances, timers, data, rule evaluations, etc.). So, even if you are using Drools Flow in a clustered environment, where you could have a number

Re: [rules-users] process-designer deserialization error

2010-11-03 Thread Kris Verlaenen
Alfredo, Yes, the GuvnorAPIServlet seems to be connecting hardcoded to http://localhost:8080/designer/bpmn2_0deserialization;. I'll see if I can update this to something better or at least configurable. Kris AlfredoLatini wrote: Hi, i have a problem with oryx process-designer and drools

Re: [rules-users] process-designer deserialization error

2010-11-03 Thread Kris Verlaenen
Hi, It is possible there are still issues between Oryx and Drools Eclipse plugin, as they are both using the same spec but not necessarily the same version (or interpreting the spec differently). First of all, I would recommend updating to the latest version of the Oryx designer

Re: [rules-users] UserTask parameters mapping and gwt-console

2010-11-03 Thread Kris Verlaenen
Juan, You're pretty close to the actual solution ;) The only problem is that you can't just map values to new work item parameters and expect them to show up in the task somehow. There is one parameter called Content that can be used to put in data that might be needed / relevant during task

Re: [rules-users] process-designer deserialization error

2010-11-07 Thread Kris Verlaenen
Hi, Yes, the NPE you are getting is because the package as defined in the process is not the same as the package in Guvnor. You can set the package of your process either by changing the XML file as you described, but there is also a package name property on the process (just click the

Re: [rules-users] Some Problem with drools-persistence-jpa Library

2010-11-07 Thread Kris Verlaenen
Hi, If you use persistence, you should use ksession.signalEvent(type, event, processInstanceId) instead of signaling the process instance itself. The reason is that, if you're using persistence, the state of the process instance is stored in the database after processing and the process

Re: [rules-users] [Drools Flow] checking Properties of supplied variables in constraints

2010-11-07 Thread Kris Verlaenen
Gregor, Is there a reason why you are using rule constraints in your process? It seems you are doing a simple evaluation of a process variable value, in which case a simple code constraint like: return reviewer.equals(ticket.getType()); should work, and you'll have less changes of seeing

Re: [rules-users] [Drools Flow] checking Properties of supplied variables in constraints

2010-11-08 Thread Kris Verlaenen
(using a normal Browser or a Download Manager) Regards Von: rules-users-boun...@lists.jboss.org [rules-users-boun...@lists.jboss.org] im Auftrag von Kris Verlaenen [kris.verlae...@cs.kuleuven.be] Gesendet: Montag, 08. November 2010 01:19 An: Rules

<    1   2   3   4   >