hi i've a problem that i have not to resolve.this is my code xml:

<?xml version="1.0" encoding="UTF-8"?>
<process-definition
  xmlns="http://jbpm.org/3/jpdl";  name="hello"> 
  <!-- SWIMLANES -->
   
      
   
   
      
   
   
      
   
   <!--  -->
   <!-- NODES -->
   <start-state name="comenzar">
      
         
            
            
            
         
      
      
      
   </start-state>
   <task-node name="mostrar variables">
      
         
            
            
            
            <variable name="otra revision" access="read,write,required" 
mapped-name="decision">
         
      
      
   </task-node>
   
        
      
      
   
   <task-node name="revision diseƱador">
      
         
            
            
         
      
      
   </task-node>
   <end-state name="end"></end-state>
</process-definition>

and this is the java code:
package com.hello;

import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;

public class HelloActionHandler implements ActionHandler {

        private static final long serialVersionUID = 1L;
        
        public void execute(ExecutionContext context) throws Exception{
                decidir(context);
        }
        
        public String decidir(ExecutionContext context) throws Exception {
                
                context.setVariable("message", "Hello from ActionHandler");
                Object o = new Object();
                o = context.getVariable("decision");
                if ( o.toString().equals("si") )
                        return "enviar al diseƱador";
                else 
                        return "terminar tarea";
        }

}

And i've the next exception:
ype Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

javax.servlet.ServletException: Error calling action method of component with 
id taskform:transitionButton
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
        
org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
        org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
        org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
        
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

root cause

javax.faces.FacesException: Error calling action method of component with id 
taskform:transitionButton
        
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
        javax.faces.component.UICommand.broadcast(UICommand.java:106)
        javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
        javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
        
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
        
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
        
org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
        org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
        org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
        
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5 logs.


Any Question, thanx!!!!!!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944056


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to