[JBoss jBPM] - Confusing regarding unit test
by sebastian.s
Good morning!
I am a bit confused regarding a process and a unit test of mine. This is my process:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process key="task_types" name="task_types" xmlns="http://jbpm.org/4.0/jpdl">
| <start g="95,26,48,48" name="start1">
| <transition g="-26,-29" name="to state1" to="state1"/>
| </start>
| <state g="209,39,92,52" name="state1">
| <transition g="-51,-21" name="to java1" to="java1"/>
| </state>
| <java class="JavaClass" g="212,124,92,52" method="printMessage" name="java1">
| <transition g="-50,-21" name="to task1" to="task1"/>
| </java>
| <task g="215,210,92,52" name="task1">
| <transition g="-68,-12" name="to custom1" to="custom1"/>
| </task>
| <custom class="CustomClass" g="214,290,92,52" name="custom1">
| <transition g="-48,-21" name="to end1" to="end1"/>
| </custom>
| <end g="395,303,48,48" name="end1"/>
| </process>
|
This is the part of my unit test:
| public void testWaiteStateAndJavaTask() {
| ProcessInstance processInstance = executionService.startProcessInstanceByKey("task_types");
| Execution execution = processInstance.findActiveExecutionIn("state1");
| assertNotNull(execution);
| String executionId = execution.getId();
| executionService.signalExecutionById(executionId);
| Set<String> activities = processInstance.findActiveActivityNames();
| System.out.println(activities.toString());
|
| }
|
Execution log:
| 08:38:57,350 FIN | [ProcessDefinitionImpl] creating new execution for process 'task_types'
| 08:38:57,413 FIN | [DefaultIdGenerator] generated execution id task_types.1
| 08:38:57,413 FIN | [ExecuteActivity] executing activity(start1)
| 08:38:57,413 FIN | [ExecuteActivity] executing activity(state1)
| 08:38:57,491 FIN | [Signal] signalling activity(state1), signalName=null
| 08:38:57,507 FIN | [ExecuteActivity] executing activity(java1)
| Methodenaufruf in JavaClass erfolgt.
| 08:38:57,507 FIN | [ExecuteActivity] executing activity(task1)
|
| [state1]
|
Calling activities.toString() returns [state1]. I expected [task1] rather than state1 when calling findActiveActivityNames(). Can somebody shed some light on this?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250297#4250297
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250297
16 years, 10 months
[JBossWS] - Error: org.jboss.util.NotImplementedException: getTextConten
by anoop10
Hi,
I was trying to write a SOAP client program using Servlet. When the service method called, I am getting the following error.
16:05:02,236 ERROR [STDERR] org.jboss.util.NotImplementedException: getTextContent
16:05:02,237 ERROR [STDERR] at org.jboss.ws.core.soap.NodeImpl.getTextContent(NodeImpl.java:611)
16:05:02,237 ERROR [STDERR] at org.mobicents.slee.resource.http.LdapSearchServlet.service(LdapSearchServlet.java:85)
16:05:02,237 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
16:05:02,237 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
16:05:02,238 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
16:05:02,238 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
16:05:02,238 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
16:05:02,238 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
16:05:02,238 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
16:05:02,238 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
16:05:02,239 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
16:05:02,239 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
16:05:02,239 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
16:05:02,239 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
16:05:02,239 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
16:05:02,239 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
16:05:02,240 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
16:05:02,240 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
16:05:02,240 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
16:05:02,240 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
16:05:02,240 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
The code I have written in Servelt is
SOAPMessage responseSM = connection.call(sm, endpoint);
SOAPPart soapPart = responseSM.getSOAPPart();
SOAPEnvelope soapEnv = soapPart.getEnvelope();
SOAPBody soapBody = soapEnv.getBody();
out.println(soapBody.getFirstChild().getFirstChild().getTextContent());
I am using the above code to print value of a text node and getting the above exception on runtime.
I am using JBOSS 4.2.3GA and JDK 1.6.
Please help me to solve this issue.
Thanks
Anoop
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250290#4250290
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250290
16 years, 10 months