"jainer" wrote : hi i've a problem that i have not to resolve.this is my xml 
code:
  | 
  |   | <?xml version="1.0" encoding="UTF-8"?>
  |   | <process-definition
  |   |   xmlns="http://jbpm.org/3/jpdl";  name="hello"> 
  |   |   <!-- SWIMLANES -->
  |   |    <swimlane name="ingeniero">
  |   |       <assignment expression="user(faber aristizabal)" 
class=""></assignment>
  |   |    </swimlane>
  |   |    <swimlane name="diseñador">
  |   |       <assignment expression="user(luis mantilla)" 
class=""></assignment>
  |   |    </swimlane>
  |   |    <swimlane name="secretaria">
  |   |       <assignment expression="user(luz marina)" class=""></assignment>
  |   |    </swimlane>
  |   |    <!--  -->
  |   |    <!-- NODES -->
  |   |    <start-state name="comenzar">
  |   |       <task name="enviar saludo" swimlane="secretaria">
  |   |          <controller>
  |   |             <variable name="saludo" 
access="read,write,required"></variable>
  |   |             <variable name="nombre" 
access="read,write,required"></variable>
  |   |             <variable name="apellido" 
access="read,write,required"></variable>
  |   |          </controller>
  |   |       </task>
  |   |       <transition name="to_tasknode" to="mostrar variables">
  |   |       </transition>
  |   |    </start-state>
  |   |    <task-node name="mostrar variables">
  |   |       <task name="mostrar variables" swimlane="ingeniero">
  |   |          <controller>
  |   |             <variable name="saludo" access="read"></variable>
  |   |             <variable name="nombre" access="read"></variable>
  |   |             <variable name="apellido" access="read"></variable>
  |   |             <variable name="otra revision" access="read,write,required" 
mapped-name="decision"></variable>
  |   |          </controller>
  |   |       </task>
  |   |       <transition name="to_decision" to="existe revision"></transition>
  |   |    </task-node>
  |   |    <decision name="existe revision">
  |   |         <handler class="com.hello.HelloActionHandler"/>
  |   |       <transition name="enviar al diseñador" to="revision diseñador"/>
  |   |       <transition name="terminar tarea" to="end"/>
  |   |    </decision>
  |   |    <task-node name="revision diseñador">
  |   |       <task name="muestra variables" swimlane="diseñador">
  |   |          <controller>
  |   |             <variable name="nombre" access="read"></variable>
  |   |             <variable name="apellido" access="read"></variable>
  |   |          </controller>
  |   |       </task>
  |   |       <transition name="terminar tarea" to="end"></transition>
  |   |    </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:
  | 
  | 
  |   | type 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=3944062#3944062

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


-------------------------------------------------------
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