Re: [jboss-user] [jBPM] - JPDL feature request
by Huisheng Xu
Huisheng Xu [http://community.jboss.org/people/rebody] replied to the discussion
"JPDL feature request"
To view the discussion, visit: http://community.jboss.org/message/536042#536042
--------------------------------------------------------------
Hi Alexei,
The schema of jPDL is included by the jBPM distribution file. You could get it from the http://sourceforge.net/projects/jbpm/files/。 http://sourceforge.net/projects/jbpm/files/。
As you can see in the .jpdl.xml, the latest version is 4.3, so you can find out there is a file named jpdl-4.3.xsd in the src directory.
The distribution file includes a Graphical Process Designer, it is a eclipse plugin, you could use it to design jPDL process definitions. You could find more information in the User Guide. http://docs.jboss.com/jbpm/v4/userguide/html_single/#graphicalprocessdesi... http://docs.jboss.com/jbpm/v4/userguide/html_single/#graphicalprocessdesi...
In my opinion, the season why jPDL didn't seperate the g="1,2,3,4" to x="1" y="1" w="1" h="1" is the transition could have more than one point in the g attribute, but I don't very clearly for that, maybe someone else could give us the reason of this.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/536042#536042]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 7 months
[Datasource Configuration] - three identical datasources, two available, one unavailable?!
by Sebastian Bayerlein
Sebastian Bayerlein [http://community.jboss.org/people/sebbay] created the discussion
"three identical datasources, two available, one unavailable?!"
To view the discussion, visit: http://community.jboss.org/message/536038#536038
--------------------------------------------------------------
Hello,
I am using JBoss 5.1.0 and configured three identical datasources with different JNDI-Names.
datasource RTBSDataSource:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<no-tx-datasource>
<jndi-name>RTBSDataSource</jndi-name>
<connection-url>jdbc:oracle:thin:@xxx:yyy:zzz</connection-url>
<use-java-context>false</use-java-context>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>USR</user-name>
<password>PWD</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>32</max-pool-size>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
</no-tx-datasource>
</datasources>
datasource B1TRANSLATION:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<no-tx-datasource>
<jndi-name>B1TRANSLATION</jndi-name>
<connection-url>jdbc:oracle:thin:@xxx:yyy:zzz</connection-url>
<use-java-context>false</use-java-context>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>USR</user-name>
<password>PWD</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>32</max-pool-size>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
</no-tx-datasource>
</datasources>
datasource CubeDataSource:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<no-tx-datasource>
<jndi-name>CubeDataSource</jndi-name>
<connection-url>jdbc:oracle:thin:@xxx:yyy:zzz</connection-url>
<use-java-context>false</use-java-context>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>USR</user-name>
<password>PWD</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>32</max-pool-size>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
</no-tx-datasource>
</datasources>
Has somebody an idea, why the datasources RTBSDataSource and CubeDataSource are in state 'available' and the datasource B1TRANSLATION is in state 'unavailable'?
When starting up JBoss, I get no errors.
Best regards,
sebbay
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/536038#536038]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 7 months
Re: [jboss-user] [jBPM] - task for multiple users
by Huisheng Xu
Huisheng Xu [http://community.jboss.org/people/rebody] replied to the discussion
"task for multiple users"
To view the discussion, visit: http://community.jboss.org/message/536037#536037
--------------------------------------------------------------
Hi Koen,
Yes, I think it is most likely put a dynamic fork/join into a task. But there is still some problem when we try to implement this feature.
In jBPM4, we could only create a task for one execution. Even if I implement a CustomActivity and create multiply task in one activity, there is no way to observe when and how the sub task was completed.
In the simplest scenario, the process designer could only decide the participants of the activity, when the process instance arrived the activity, we could create multiply task bye the participants. In the more complex scenario, the participants of the activity is also dynamic, the engine should decide who should be assigned a task in the runtime. Even more, there may be multiple strategy for task completion. For example, if all of participants approved, the process instance could continue. if 60 percent participants approved, or someone may have an absolutely reject vote, etc.
Now in order to implement features like this, I must make a lot of change of pvm. if you are interested in these, I could show the sample codes.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/536037#536037]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 7 months
[jBPM] - JPDL feature request
by Alexei none
Alexei none [http://community.jboss.org/people/Jump] created the discussion
"JPDL feature request"
To view the discussion, visit: http://community.jboss.org/message/536026#536026
--------------------------------------------------------------
My JBPM was shipped with following process definition
<?xml version="1.0" encoding="UTF-8"?>
<process name="Order" xmlns="http://jbpm.org/4.3/jpdl">
<start g="16,19,48,48">
<transition to="receive confirmation" />
</start>
<state name="receive confirmation" g="96,16,136,52">
<transition to="end" />
</state>
<end name="end" g="269,20,48,48"/>
</process>
So the first question is what is the version of jpdl above? Are there any UI editors for that version of jpdl? Are there any schemas?
And a small feature request: is it possible to split single attribute g="96,16,136,52" into 4 separate attributes x="96" y="16" width="136" height="52" ?
Why do I need it ? First of all, jpdl will be more obvious. Then I was going to create xslt to transform jpdl to svg with process image, but tokenizing g attribute requires some complicated logic (by the way, tokenize is only available fo xslt 2.0, for 1.0 you should use split). So, splitting g into separate attributes will simplify xslt a lot.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/536026#536026]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 7 months
[JBoss Web Services] - org.jboss.ws.WSException --> org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: Failed to parse source
by Amit Srivastava
Amit Srivastava [http://community.jboss.org/people/amitsriv99] created the discussion
"org.jboss.ws.WSException --> org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: Failed to parse source"
To view the discussion, visit: http://community.jboss.org/message/536016#536016
--------------------------------------------------------------
Hi,
I'm using JBoss 5.1.0.GA for the Web Service deployment. Please find attached the relevant code snippets in "Code snippets.txt".
Refer to the "Client code" section # 2 in the attached code snippet. The call seems to be failing some time after the Web Service method returns at the following line:
+System.out.println("Making the dynamic invocation of the Web Service method now...");
HelloResponseVO responseVO = (HelloResponseVO)call.invoke(params);
+
I'm getting the following exception when invoking the WebService method from the client:
*Note:* The problem seems to be only when the return type from the Web Service method is a complex type data (a POJO)Things are working fine when I use the primitive data types instead of POJOs.
Messages at client-side:
+ [java] Making the dynamic invocation of the Web Service method now...
[java] java.rmi.RemoteException: Call invocation failed; nested exception is:
[java] org.jboss.ws.WSException: org.jboss.ws.core.binding.BindingException: org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: Failed to parse source: fullGreetingMessage cannot appear in this position. Expected content of return is sequence: fullGreetingMessage? greetingMessage? name?
[java] at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:535)
[java] at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:275)
[java] at ae.co.etisalat.cbcm.stubbed.webservices.testclient.TestClientStubbedWS.callUsingJAX_RPC(Unknown Source)
[java] at ae.co.etisalat.cbcm.stubbed.webservices.testclient.TestClientStubbedWS.main(Unknown Source)
[java] Caused by: org.jboss.ws.WSException: org.jboss.ws.core.binding.BindingException: org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: Failed to parse source: fullGreetingMessage cannot appear in this position. Expected content of return is sequence: fullGreetingMessage? greetingMessage? name?
[java] at org.jboss.ws.core.soap.XMLContent.unmarshallObjectContents(XMLContent.java:249)
[java] at org.jboss.ws.core.soap.XMLContent.transitionTo(XMLContent.java:96)
[java] at org.jboss.ws.core.soap.SOAPContentElement.transitionTo(SOAPContentElement.java:140)
[java] at org.jboss.ws.core.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:172)
[java] at org.jboss.ws.core.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:261)
[java] at org.jboss.ws.core.EndpointInvocation.getReturnValue(EndpointInvocation.java:195)
[java] at org.jboss.ws.core.CommonClient.syncOutputParams(CommonClient.java:511)
[java] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:397)
[java] at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:516)
[java] ... 3 more+
Messages on the server console:
+13:32:04,291 INFO [DefaultEndpointRegistry] register: jboss.ws:context=Stubbed_WS,endpoint=HelloWS
13:32:04,447 INFO [TomcatDeployment] deploy, ctxPath=/Stubbed_WS
13:32:05,166 INFO [WSDLFilePublisher] WSDL published to: file:/D:/Amit/JBoss/server/standard/data/wsdl/Stubbed_WS.war/HelloWS.wsdl
13:32:05,275 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
13:32:05,291 WARNING [config] Unable to process deployment descriptor for context '/jmx-console'
13:32:05,291 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/jmx-console'
13:32:05,338 INFO [TomcatDeployment] deploy, ctxPath=/root
13:32:05,354 WARNING [config] Unable to process deployment descriptor for context '/root'
13:32:05,354 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/root'
13:32:05,385 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
13:32:05,400 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
13:32:05,400 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 24s:578ms
13:32:33,963 INFO [STDOUT] Inside HelloWS.getDetailedHelloMessage()
13:32:33,963 INFO [STDOUT] Sending the following message to client : Hello Maganwaa !!!
13:32:33,963 INFO [STDOUT] Exiting HelloWS.getDetailedHelloMessage()+
I have tried changing the occurrence modifiers wsdl without luck..
From:
+<xs:complexType name='helloResponseVO'>
<xs:sequence>
<xs:element minOccurs='0' name='name' type='xs:string'/>
<xs:element minOccurs='0' name='fullGreetingMessage' type='xs:string'/>
<xs:element minOccurs='0' name='greetingMessage' type='xs:string'/>
</xs:sequence>
</xs:complexType>+
To:
+<xs:complexType name='helloResponseVO'>
<xs:all>
<xs:element minOccurs='0' name='name' type='xs:string'/>
<xs:element minOccurs='0' name='fullGreetingMessage' type='xs:string'/>
<xs:element minOccurs='0' name='greetingMessage' type='xs:string'/>
</xs:all>
</xs:complexType>+
Any help in this regards will be highly appreciated.
Thanks in advance...
Amit Srivastava
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/536016#536016]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 7 months