[JBoss jBPM] - Job Executor-Asynchronous execution
by mandrita.ca
Hi,
I am using JBPM-jpdl suite 3.2.2.
These are some of the recent findings:
1. System.out.println("Job Executor Name" + obj.getName()); gives the actual Job Executor Name which it reads from default.jbpm.cfg.xml file showing that the Job Executor is up and running.
2. I configured a timer and the job executor is executing the timer action class as expected which is also getting reflected in the JBPM_JOB table as the version column value is increasing.
3. However when I follow the similar steps for asynchronous execution i find that there is no new entry in the JBPM_JOB table,but the SOP is giving me the Job Executor name in the asynch action class handler which shows that the executor is up and running.But no other tasks are getting exceuted after the asynch node except for if i write executioncontext.getNode().leave(executionContext).
Abruptly the process is ending without even raising exceptions if I am not including the above piece of code.
So how is the job executor handling the asynch messages? since asynch means a non-blocking process.
Thanks,
Mandrita.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114177#4114177
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114177
18 years, 4 months
[JBoss jBPM] - contiunous JBPM errors
by MattOwens
Hi,
I am writing a JBPM implmentation for a corporate system. Currently I am not deploying to an application server I am running the process locally as a set of unit tests. I am deploying the process definitions manually. Below is the code for the unit tests:
public class testProcessManager
{
@BeforeClass
public static void setup()
{
LBSJbpmInstance.createSchema();
}
@Test
public void testCreateDefinition()
{
JbpmContext context = JbpmConfiguration.getInstance().createJbpmContext();
try
{
URL u = this.getClass().getResource("/com/ProcessDefinition.xml");
File f = new File(u.getFile());
ProcessDefinition definition = ProcessDefinition.parseXmlReader(new FileReader(f));
context.getGraphSession().deployProcessDefinition(definition);
}
catch (FileNotFoundException e)
{
Assert.fail(e.getMessage());
}
finally
{
context.close();
}
}
@Test
public void testCreateInstance()
{
JbpmContext jbpmContext = JbpmConfiguration.getInstance().createJbpmContext();
try
{
ProcessDefinition processDefinition = jbpmContext.getGraphSession().loadProcessDefinition(1);
ProcessInstance processInstance = new ProcessInstance(processDefinition);
ContextInstance contextInstance = (ContextInstance) processInstance.getContextInstance();
contextInstance.createVariable("test", "test");
processInstance.signal();
jbpmContext.save(processInstance);
}
catch (Throwable t)
{
t.printStackTrace();
Assert.fail(t.getMessage());
}
finally
{
jbpmContext.close();
}
}
@AfterClass
public static void teardown()
{
JbpmConfiguration.getInstance().dropSchema();
}
}
This code throws the error: org.jbpm.JbpmException: closed JbpmContext in different order then they were created. This does not happen if i remove the processInstance.signal invocation.
Can anyone explain the nature of this error.
Thanks in advance
M
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114171#4114171
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114171
18 years, 4 months
[JBoss Seam] - Re: session timeout handling
by threeps
Thanks for your reply
I've tried your suggestion, it doesn't help my situation but i've left the code in (i'm sure i would have had conversation timeout problems at some point...).
I get the impression that the technique you speak of would only have an effect if a user was still able to follow a link - ie if the convo was ended and they clicke a link they would be redirected.
The problem here is more that the entire app goes 'dead' and nothing is clickable. It seems to happen after 10 minutes, even tho i have my tomcat session timeout set to 45 minutes, and conversation timeout set to 5 minutes (although this only applies to background conversations so the session timeout should take presidence)
any other input appreciated, cheers
-Rich
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114169#4114169
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114169
18 years, 4 months
[JBoss Seam] - Datasource problem with seam and jbpm
by Strategy
Hi all,
I´m using Seam together with jBPM.
jBPM integration worked, so i changed the database to mysql. I created a new database exclusive for jBPM entries.
But I´m also using another database, containing my application-based data. Using the application based database works fine, until i start my first buisness-process. Afterwards I get an exception.
Here´s my ds.xml:
| <datasources>
|
| <local-tx-datasource>
| <jndi-name>jboss_seamDatasource</jndi-name>
| <connection-url>jdbc:mysql://localhost/jboss</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <user-name>jboss</user-name>
| <password>jboss</password>
| </local-tx-datasource>
|
| <local-tx-datasource>
| <jndi-name>JbpmDS</jndi-name>
| <connection-url>jdbc:mysql://localhost/jbpm</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <user-name>root</user-name>
| <password></password>
| <metadata>
| <type-mapping>MySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
|
|
| </datasources>
|
and here is the error that occures:
| 11:45:04,723 WARN [loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@6d5eaf
| 11:45:04,756 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
| 11:45:04,757 ERROR [JDBCExceptionReporter] Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f57fde1:c9aa:4768f43c:7a status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f57fde1:c9aa:4768f43c:7a status: ActionStatus.ABORT_ONLY >))
| 12:39:42,507 ERROR [SeamPhaseListener] uncaught exception
|
Any usefull ideas ??
Thanks a lot,
Matthias
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114163#4114163
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114163
18 years, 4 months