[JBoss Seam] - Missing objects in Business Process context
by damianharvey
I have a problem with jBPM 3.1.4 in Seam 1.3.0 when outjecting objects to the Business Process context.
I have a String containing a Booking number that I am outjecting when I persist an Booking in my EntityHome:
@Out(required=false, scope=ScopeType.BUSINESS_PROCESS)
| String bookingNumber; I launch a jBPM process on the persist method:
@Override @Transactional @CreateProcess(definition="approveBooking")
| public String persist() {...
|
I have a table that displays the pooledTaskInstanceList:
<rich:dataTable
| value="#{pooledTaskInstanceList}">
| <rich:column>
| <f:facet name="header">
| <h:outputText value="Booking"/>
| </f:facet>
| <h:outputText value="#{task.variables['bookingNumber']}"/>
| </rich:column>...
|
The problem is that this String is routinely missing from several of the rows in the table. Now in the JBPM_VARIABLEINSTANCE table I can see *all* of these values (ie. including the missing ones).
>From my testing it looks like it has to do with conversations. If I logout and log back in before creating a subsequent order, then the order number is fine. If I try to create an order directly after creating a previous one, then only the pooledTaskInstanceList only displays the number from the latest to be created.
Does anyone know what would cause this behaviour? Can someone recommend good breakpoint for debug to watch the value of the Business Process variables?
Also should I be seeing these outjected variables on the Seam Debug page? They aren't currently there.
Thanks,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066922#4066922
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066922
18Â years, 11Â months
[JBossWS] - Re: trying to access a webservice - not working from either
by rodgerca
Thanks for that - when I get up to speed I will treat newbies as well as you have treated me.
The link you gave me tells me to add the following files to my JBOSS_HOME/lib directory.
jboss-jaxrpc.jar
jboss-saaj.jar
jaxb-api.jar
jaxws-api.jar
I did that, but unfortunately I got the same error. I then decided to revert to JDK5 and the whole thing worked fine last night (was using demo code that I downloaded from a website)
Came into work early this morning, really happy that I was going get round to writing the address lookup web service that was due in last Friday.
But I am getting a bunch of errors again. I think it is because the return type on my web service is a complex type;-
Exception in thread "main" org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://session.address.cmmgroup.com/}getAddressByPostCode
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.processDocElement(JAXRPCMetaDataBuilder.java:627)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildParameterMetaDataDoc(JAXRPCMetaDataBuilder.java:886)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.setupOperationsFromWSDL(JAXRPCMetaDataBuilder.java:214)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:217)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:134)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
at org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImpl.java:111)
at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
at com.cmmgroup.address.client.RunAddressAsWebService.main(RunAddressAsWebService.java:27)
I'm not clear from the other forums if there is a resolution to this as I am already using the latest version of JBossWs.
My mood has changed from one of despair to hysteria....I am both laughing and crying at regular intervals.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066915#4066915
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066915
18Â years, 11Â months