[EJB/JBoss] - More info....
by jonathanztaub
As part of my development, I drop/create the database a lot of times, this means that I'm getting rid of JBoss' JMS related tables as well. If there was bad data in there, for whatever reason (dead message queue perhaps), it would have been gone. However, I still see the log messages.
This caused me to think that maybe there is something on the local file system that JBoss creates and perhaps the problem stems from bad/corrupt data that happened while doing initial development and testing.
So I deleted the entire %JBOSS_HOME%\server\default directory and unzipped it from the distribution zip again - the warning message is gone now.
This could just be a coincidence, but I'll know in the upcoming days, depending on whether I see the message or not.
Unfortunately, I zapped the entire directory for good and cannot differentiate it with the current "clean" copy that I have.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168343#4168343
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168343
17 years, 8 months
[JBoss jBPM] - End process with running subprocess
by kadlecp
Hello,
I have following scenario.
I have process that sometimes creates subprocess. The subprocess has several async actions (I call ESB service). The super process checks result value of the subprocess and according that value the superprocess continues.
I sometimes want to end superprocess prematurely with possible running subprocess. And that causes problems. The superprocess instance receives end, it ends root token and after that it ends the subprocess instance. After the subprocess instance ends, subprocess signals token of the superprocess which has been ended already, and that is wrong.
I have made following change to the org.jbpm.graph.exe.ProcessInstance
I have changed method ProcessInstance.end() slightly.
| public void end() {
| // if the subproces does not exist, end root token
| if (rootToken.getSubProcessInstance() == null) {
| rootToken.end();
| .... the code is unchanged
| } else
| // if subprocess instance exists, only end subprocess. The subprocess will signal this process later
| rootToken.getSubProcessInstance().end();
| }
|
It is important that I check result value of sub process (I have special variable). If the subprocess is ended prematuraly, I read the result value (it's not set) and the superprocess can do what ever action I can. And moreover I can be sure that subprocess ends before the super process.
What do you think? It could be new feature request...
Regards
Pavel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168338#4168338
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168338
17 years, 8 months