[JBossWS] - Re: JBoss 4.0.5 and JBoss 4.2 CR1 plus JBossWS 1.2 - Does it
by patel_123
i am getting following error can anybody tell what would be cause,
Caused by: org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://wb1-329:8080}validateUser
at org.jboss.ws.deployment.JSR109MetaDataBuilder.buildParameterMetaDataDoc(JSR109MetaDataBuilder.java:451)
at org.jboss.ws.deployment.JSR109MetaDataBuilder.setupOperationsFromWSDL(JSR109MetaDataBuilder.java:200)
at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaDataInternal(JSR109ClientMetaDataBuilder.java:208)
at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:126)
at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:82)
at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96)
at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
at client.UserBean.loginUser(UserBean.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057275#4057275
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057275
18Â years, 10Â months
[JBoss jBPM] - Re: JBPM Decision node implementation with Decision handler
by dabd
"nageshreddy1981" wrote : Hi,
|
| I am new to JBPM.
| I am trying to implement decision node in process definiton.
| where can i find the examples for the decision node with the decision handler implemetation.
| Can anybody provide me with examples or links on the same.
|
| Thanks in advance
I'm a newbie too but here's what I did:
Implement the interface DecisionHandler and implement the 'decide' method which returns the appropriate transition.
public class MyDecisionHandler implements DecisionHandler {
|
| /**
| * Comment for <code>serialVersionUID</code>
| */
| private static final long serialVersionUID = 1L;
|
|
|
| public String decide(ExecutionContext executionContext) throws Exception {
| String lower = (String) executionContext.getContextInstance().getVariable("lower");
| String upper = (String) executionContext.getContextInstance().getVariable("upper");
|
| if ((Integer.parseInt(upper) - Integer.parseInt(lower)) > 10) {
| return "yes";
| }
| else {
| return "no";
| }
|
| }
|
Currently you can't use the GPD to associate the handler to the decision node, so you have to edit the process definition XML by hand like this:
<decision name="checkDiff">
| <transition name="yes" to="doSomething">
| </transition>
| <transition name="nao" to="doSomethingElse"></transition>
| <handler class="com.decisions.MyDecisionHandler"></handler>
| </decision>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057263#4057263
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057263
18Â years, 10Â months
[JBoss jBPM] - Re: JBPM Decision node implementation with Decision handler
by dabd
"nageshreddy1981" wrote : Hi,
|
| I am new to JBPM.
| I am trying to implement decision node in process definiton.
| where can i find the examples for the decision node with the decision handler implemetation.
| Can anybody provide me with examples or links on the same.
|
| Thanks in advance
I'm a newbie too but here's what I did:
Implement the interface DecisionHandler and implement the 'decide' method which returns the appropriate transition.
public class MyDecisionHandler implements DecisionHandler {
/**
* Comment for serialVersionUID
*/
private static final long serialVersionUID = 1L;
public String decide(ExecutionContext executionContext) throws Exception {
String lower = (String) executionContext.getContextInstance().getVariable("lower");
String upper = (String) executionContext.getContextInstance().getVariable("upper");
if ((Integer.parseInt(upper) - Integer.parseInt(lower)) > 10) {
return "yes";
}
else {
return "no";
}
}
Currently you can't use the GPD to associate the handler to the decision node, so you have to edit the process definition XML by hand like this:
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057262#4057262
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057262
18Â years, 10Â months