Hi

I want to pass the signal from one state to java, but I get the error:


  | org.jboss.resteasy.spi.UnhandledException: 
java.lang.IllegalArgumentException: id to load is required for loading
  |     
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
  |     
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
  |     
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
  |     
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
  |     
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
  |     
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
  |     
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
  |     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  |     
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
  | 

Not covered, somebody could help me


  | <state g="438,14,92,52" name="verify">
  |       <on event="start">
  |       <timer duedate="1 minutes" repeat="10 seconds"/>
  |         <event-listener 
class="com.configuracion.eventos.VerificarReposicion">
  |           <field name="documento"><object expr="#{resReposicion}"/></field>
  |           <field name="caf"><object expr="#{txtCaf}"/></field>
  |             </event-listener>
  |       </on>
  |       <transition g="-15,-19" to="hello"/>
  |    </state>
  |    
  |    <java class="com.configuracion.dao.ReposicionDao" g="571,14,107,54" 
method="helloWorld" name="hello">
  |             <transition to="end"/>
  |    </java>
  | 

The NOTIFY method is as follows


  | public void notify(EventListenerExecution executionListener) throws 
Exception {
  |                 String respuesta = 
executionListener.getVariable("response")+"";
  |             if (processEngine == null) {
  |                     processEngine = Configuration.getProcessEngine();
  |                     executionService = processEngine.getExecutionService();
  |             }
  |             ProcessInstance processInstance = 
executionService.findProcessInstanceById(executionListener.getId());
  |             Execution execution = 
processInstance.findActiveExecutionIn("verify");
  |             System.out.println("===>"+execution.getId());
  | if(executionListener.getVariable("response").toString().equals("N")){
  |             processInstance = 
executionService.signalExecutionById(execution.getId());
  |             }
  |     }

Thanks

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269474#4269474

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269474
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to