[jBPM Users] - problem with forks, nodes (abnormally) keep active.
by paul.mcd
Hi all, I've got a rather complex workflow which involves several forks in hierarchy. You can take the code for reference.
The problem is when signaling the state "B.1.1", it's supposed to end this state and enter the next state "B.1.1.1"; but what really happens is "B.1.1.1" is activated and at the same time "B.1.1" still remains active.
This odd thing happen to "B.1.2" as well; and they keep active so the whole workflow can't finish.
I've tested on both jbpm4.0 and 4.1 and found no luck.
Any suggestions?
<?xml version="1.0" encoding="UTF-8"?>
|
| <process name="test_fork" xmlns="http://jbpm.org/4.0/jpdl">
|
| <start g="222,17,92,52">
| <transition g="-31,-22" name="to A" to="A"/>
| </start>
|
| <end g="172,848,48,48" name="end"/>
| <state g="211,100,92,52" name="A">
| <transition g="-31,-22" name="to B" to="B"/>
| </state>
| <state g="211,184,92,52" name="B">
| <transition g="-56,-22" name="to fork1" to="fork1"/>
| </state>
| <fork g="233,268,48,48" name="fork1">
| <transition g="-43,-22" name="to B.1" to="B.1"/>
| <transition name="to B.2" to="B.2" g="-43,-22"/>
| </fork>
| <state g="149,348,92,52" name="B.1">
| <transition g="-56,-22" name="to fork2" to="fork2"/>
| </state>
| <state g="273,348,92,52" name="B.2">
| <transition name="to B.2.1" to="B.2.1" g="-55,-22"/>
| </state>
| <fork g="140,432,92,52" name="fork2">
| <transition g="-55,-22" name="to B.1.1" to="B.1.1"/>
| <transition g="-55,-22" name="to B.1.2" to="B.1.2"/>
| </fork>
| <state g="16,516,92,52" name="B.1.1">
| <transition name="to B.1.1.1" to="B.1.1.1" g="-67,-22"/>
| </state>
| <state g="140,516,92,52" name="B.1.2">
| <transition g="-56,-22" name="to fork3" to="fork3"/>
| </state>
| <fork g="140,600,92,52" name="fork3">
| <transition g="-67,-22" name="to B.1.2.1" to="B.1.2.1"/>
| <transition g="-67,-22" name="to B.1.2.2" to="B.1.2.2"/>
| </fork>
| <state g="89,684,92,52" name="B.1.2.1">
| <transition g="-54,-22" name="to join1" to="join1"/>
| </state>
| <state g="213,684,92,52" name="B.1.2.2">
| <transition g="-54,-22" name="to join1" to="join1"/>
| </state>
| <join g="172,768,48,48" name="join1">
| <transition g="-46,-22" name="to end" to="end"/>
| </join>
| <state g="16,600,92,52" name="B.1.1.1">
| <transition g="90,771:-54,-22" name="to join1" to="join1"/>
| </state>
| <state g="279,432,92,52" name="B.2.1">
| <transition name="to B.2.1.1" to="B.2.1.1" g="-67,-22"/>
| </state>
| <state g="285,516,92,52" name="B.2.1.1">
| <transition g="354,801:-54,-22" name="to join1" to="join1"/>
| </state>
|
| </process>[img][/img]
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255311#4255311
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255311
15 years, 4 months
[jBPM Users] - Re: Deploying processes on Tomcat
by sebastian.s
Hello Ronald,
finally I managed to get everything working. As I mentioned already, it was not my day. :)
1) When you use the ant task demo.setup.tomcat to create the demo setup the ant task also brings up the hsqldb-server using the supplied batch file after the installation is done. So I was under the impression that starting Tomcat also starts the database but it is just the first time after installation like this. Think this is a difference to the JBoss AS setup.
2) Regarding binding the hsqldb-server to the actual ip address I changed the installation templates of the config files so the changes are promoted all over the setup, especially important for C:\jbpm-4.1\apache-tomcat-6.0.20\conf\server.xml where the JbpmConsoleRealm is declared together with a connection url to the database server. :)
3) Regarding the deployment I also deleted the line
<property name="hibernate.hbm2ddl.auto">create-drop</property> from my configuration file in the process project. Whenever I deployed the process the schema was dropped and re-created so I lost the example users I was using for my tests.
Have a nice day and thanks for your hints.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255306#4255306
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255306
15 years, 4 months
[Performance Tuning] - Scaling of a Seam app
by jb0ssn00b
Hello all,
I have experience in developing web applications with php and javascript for 10 years and have also 7 years of java experience.
Now I made my way to the JEE world and my interest is creation of scalable applications based on this technology.
I have developed a rather simple blog-like web application based on Seam 2.1 and RichFaces. General functions are viewing of a page, post a comment and do search. The output structure is highly dynamic i.e. 90% of HTML content is generated based on user input (not much to cache?). We have also an extensive usage of the reRender RichFaces property where it makes sense. We run JBoss 5.0.1 with mod_jk and Apache.
Now I want to proceed with a scaling step and I have thousands of questions, also regarding the system setup.
What we got now is a test system with 1 SATA drive, dual core CPU (2 Ghz) and 3GB of RAM; the DB system is MySQL. I have done some load tests using the linux tool 'siege' which pulls only a certain url and the cookie but not all the static content. I have for example concurrency problems with a limit to something between 2 and 8 concurrent users.
My general questions are:
- what would be the typical maximum request rate for this hardware configuration if using the described components? When should I think of a server with e.g. 4 or 8 GB RAM or additional machines for the database or for a clustering solution? First of all, which concurrency rates should be "normal" for what configuration?
- by tuning transaction isolation it seems rather hard to tune the server in a way so that there are no concurrency conflicts even on incrementing an item counter. What do you do, guys, to avoid that?? (or is that a question to Hibernate community?)
- after a level of concurrent requests exceeding 10 or 15 the server gives up, saying "cannot open jdbc connection" and does not recover from this state. Tuning db pool size does not help.
- does it make sense to upgrade to JBoss 5.1.0, Seam 2.2 and also JVM 6? (I mean, many folks are still happily running JBoss 4 and JVM 1.4 or not?)
- what books or tutorials are known to give an extensive assistance to these topics?
thank you very much in advance
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255298#4255298
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255298
15 years, 4 months
[jBPM Users] - Re: workflow design about wait states
by mmusaji
"kukeltje" wrote : I do not get your remark regarding "as expected"
Referring to me suggesting that I was unsure that the process was actually completing
"kukeltje" wrote :
| Small other question (which might not be related) why do you reassign processInstance a new value each time?
|
No reason other it was probably cut and paste from other unit tests.
"kukeltje" wrote :
| And you might try to change the interface of tow and three to ActivityBehaviour (since there is no 'waitForSignal' anymore. You can remove the signal method then and the 'takeDefaultTransition()' can be removed as well if there is just one outgoing transition.
|
I've done this just not repeat posted the unit test.
"kukeltje" wrote :
| Oh and make the error messages in the asserts more explicit (you can add a string as message, that way you can easily see in the logging which assert it was)
Good point. Will do this.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255283#4255283
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255283
15 years, 4 months