[JBoss jBPM] - Re: Blocking call from Java to jBPM workflow
by hkapoor@ciber.com
I understand that processInstance.signal(); is a blocking call till first wait state, I apologize for incomplete post. I am looking for a call that blocks until the workflow is over. Use case is as follows:
BusinessProcess that I am implementing includes webservice orchestration (done through BPEL) and human intervention activities (done through jPDL). The need is to crisply segregate Webservice orchestration from workflow management, so that workflow engine can be changed without affecting orchestration and vice versa. For this the workflow has been wrapped as a SOAP service and is being used in orchestration. The requirement is such that business process does not finish until workflow is completed, that is why I am looking for a call that blocks until workflow ends, is there one ?.
Or can I implement this by creating a java class that sends out signal to start workflow and at the same time register a call back handler for end event. This call back handler when invoked sends response back to the invoker.
-Harshit
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211582#4211582
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211582
17 years, 2 months
[JBoss jBPM] - where to set the database properties while installing jbpm-i
by santoshkumarsamala
when I execute jbpm-installer-3.3.1GA, the wizard will run and I give the location of jboss and also in one of the screen i say that iam using mysql , then the wizard executes completely creating jbpm folder in jboss4.2.2./server/default/deploy/
when i open that newly created jbpm folder i am able to see a file called jbpm-mysql-ds.xml, it has three lines
| <xa-datasource-property name="URL">${jdbc.mysql.url}</xa-datasource-property>
| <user-name>${jdbc.mysql.username}</user-name>
| <password>${jdbc.mysql.password}</password>
|
>From where these three values will be configured, i couldnt find any file where i can configure these values, i have declared my self a file called mysql-ds.xml in deploy folder with following values
<datasources>
| <local-tx-datasource>
| <jndi-name>JbpmDS</jndi-name>
| <connection-url>jdbc:mysql://localhost:3306/jbpm</connection-url>
| <!-- The driver class -->
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <!-- The login and password -->
| <user-name>root</user-name>
| <password>welcome</password>
| </local-tx-datasource>
| </datasources>
but it gives me an error
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@ee96070 { url=file:/C:/jboss-4.2.2.GA/server/default/deploy/mysql-ds.xml }
| deployer: org.jboss.deployment.XSLSubDeployer@18f127c
| status: Deployment FAILED reason: Trying to install an already registered mbean: jboss.jca:service=DataSourceBinding,name=JbpmDS
| state: FAILED
| watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/mysql-ds.xml
| altDD: null
| lastDeployed: 1235063072861
| lastModified: 1235063072845
| mbeans:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.j2ee:service=EjbModule,module=jbpm-enterprise.jar
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.lang.NullPointerException); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.NullPointerException)))
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.j2ee:service=EjbModule,module=jbpm-enterprise.jar
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.lang.NullPointerException); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.NullPointerException)))
|
|
please help me to resolve this, iam breaking the head for the past 2 days
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211574#4211574
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211574
17 years, 2 months
[JBoss jBPM] - Re: getting error when JBPM installer -3.2.4.GA has executed
by santoshkumarsamala
my jbpm-mysql-ds contains the following entry, I have 5.0.51b mysql
<?xml version="1.0" encoding="UTF-8"?>
|
| <!-- The Hypersonic embedded database JCA connection factory config -->
|
| <!-- $Id: hsqldb-ds.xml 63175 2007-05-21 16:26:06Z rrajesh $ -->
|
| <datasources>
| <local-tx-datasource>
| <jndi-name>JbpmDS</jndi-name>
| <connection-url>jdbc:mysql://localhost:3306/jbpm</connection-url>
| <!-- The driver class -->
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <!-- The login and password -->
| <user-name>root</user-name>
| <password>welcome</password>
| </local-tx-datasource>
| <metadata>
| <type-mapping>MySQL</type-mapping>
| </metadata>
| </datasources>
Iam getting this error now
org.jboss.deployment.DeploymentException: type-mapping is not initialized: java:/JbpmDS was not deployed or type-mapping was not configured.
| at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.getTypeMapping(JDBCEntityMetaData.java:1103)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:427)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:368)
| at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)
| at org.jboss.ejb.EjbModule.startService(EjbModule.java:414)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211549#4211549
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211549
17 years, 2 months