04-24-2015 03:50 AM
<startEvent id="start" activiti:initiator="employeeName">
<extensionElements>
<activiti:formProperty id="startDate" name="First day of holiday (dd-MM-yyy)" type="date" datePattern="dd-MM-yyyy hh:mm" required="true" />
</extensionElements>
</startEvent>
<serviceTask>
…
<dataInputAssociation>
…
<assignment>
<from>${startDate}</from>
<to>${dataInputOfNotifyNewVacationRequest.startDate}</to>
</assignment>
</dataInputAssociation>
</serviceTask>
RuntimeService.startProcessInstanceById(id, variables)
where variables
contains the property startDate
initialized with a java.util.Date.startDate
of the web-service request is defined as xsd:date
.
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.cxf.databinding.AbstractWrapperHelper.createWrapperObject(AbstractWrapperHelper.java:99)
at org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(WrapperClassOutInterceptor.java:101)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:355)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:341)
at org.activiti.engine.impl.webservice.CxfWebServiceClient.send(CxfWebServiceClient.java:38)
at org.activiti.engine.impl.webservice.WSOperation.safeSend(WSOperation.java:74)
at org.activiti.engine.impl.webservice.WSOperation.sendFor(WSOperation.java:62)
at org.activiti.engine.impl.bpmn.webservice.Operation.sendMessage(Operation.java:50)
at org.activiti.engine.impl.bpmn.behavior.WebServiceActivityBehavior.execute(WebServiceActivityBehavior.java:75)
…
dataInputAssociation
of the service task ? How to do this conversion ?activiti-cxf
manage conversion of java.util.Date to XMLGregorianCalender ?activiti-cxf
be configured to generate java.util.Date instead of XMLGregorianCalendar ?dataInputAssociation
, but I don't know how to this. Have you an example ?activiti-cxf
to generate java.util.Date instead of XMLGregorianCalendar to avoid data conversion, simplifying the process definition, reducing performance overhead.04-24-2015 08:53 AM
04-24-2015 09:02 AM
04-24-2015 09:17 AM
05-07-2015 03:10 AM
05-07-2015 09:25 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.