jboss-user
[Arriba] [Todas las Listas]

[jboss-Usuario] [jBPM] - Re: jbpm5 RULEFLOW la VARIABLE CAMBIÓ null

To: User development <jboss-user@xxxxxxxxxxxxxxx>
Subject: [jboss-Usuario] [jBPM] - Re: jbpm5 RULEFLOW la VARIABLE CAMBIÓ null
From: Luis Tamayo <do-not-reply@xxxxxxxxx>
Date: Mon, 05 Sep 2011 18:56:56 -0400
Auto-submitted: yes
Delivery-date: Mon, 05 Sep 2011 18:59:37 -0400
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <2-624526-3-90030-1314986746123-2-624867-3-2836-1315252721278.jivesbs.jivemailuser@http://community.jboss.org>
List-archive: <http://lists.jboss.org/pipermail/jboss-user>
List-help: <mailto:jboss-user-request@lists.jboss.org?subject=help>
List-id: The JBoss User main mailing list <jboss-user.lists.jboss.org>
List-post: <mailto:jboss-user@lists.jboss.org>
List-subscribe: <https://lists.jboss.org/mailman/listinfo/jboss-user>, <mailto:jboss-user-request@lists.jboss.org?subject=subscribe>
List-unsubscribe: <https://lists.jboss.org/mailman/listinfo/jboss-user>, <mailto:jboss-user-request@lists.jboss.org?subject=unsubscribe>
References: <2-624526-3-90030-1314986746123.jivesbs.jivemailuser@http://community.jboss.org> <2-624526-3-90030-1314986746123-2-624860-3-90030-1315249656722.jivesbs.jivemailuser@http://community.jboss.org> <2-624526-3-90030-1314986746123-2-624867-3-2836-1315252721278.jivesbs.jivemailuser@http://community.jboss.org>
Reply-to: The JBoss User main mailing list <jboss-user@xxxxxxxxxxxxxxx>
Sender: jboss-user-bounces@xxxxxxxxxxxxxxx
Luis *Tamayo [*http://comunidad.*jboss.*org/Personas/*luis.*tamayo] Creó la discusión

"*Re: *jbpm5 *RULEFLOW la VARIABLE CAMBIÓ *null"

para ver la discusión, visita: *http://comunidad.*jboss.*org/Mensaje/624869#624869

--------------------------------------------------------------
Sí soy

*ksession.*getWorkItemManager().*registerWorkItemHandler("Tarea humana", nuevo *CommandBasedWSHumanTaskHandler( *ksession ));
                    *ksession.*getWorkItemManager().*registerWorkItemHandler("*MiNotificacion", nuevo *EmailWorkItemHandler());

*EmailWorkItemHandler el código es:

importación *org.*drools.*runtime.Proceso.*WorkItem;
Importación *org.*drools.*runtime.Proceso.*WorkItemHandler;
Importación *org.*drools.*runtime.Proceso.*WorkItemManager;


Clase pública *EmailWorkItemHandler implementa *WorkItemHandler 

          #nom *void *executeWorkItem(*WorkItem *workItem, *WorkItemManager director) 
                    // #nom_de_nom de extracto
                    probar
                              #nom.Fuera.*println("================================>> *ingresa Un *executeWorkItem *EmailWorkItemHandler");
                              Cadena de = (Cadena) *workItem.*getParameter("De );"
                              Sistema.Fuera.*println("================================>> De + " de );
                              Cadena a = (Cadena) *workItem.*getParameter("A );"
                              //mensaje de Cadena = (Cadena) *workItem.*getParameter("Mensaje");



                              director.*completeWorkItem(*workItem.*getId(),*null);

                    } coge (Excepción *e)

                              #unknown{^*e.*printStackTrace();
                    }
          } 


}
--------------------------------------------------------------

Respuesta a este mensaje por ir a Comunidad
[*http://comunidad.*jboss.*org/Mensaje/624869#624869]

Empieza una discusión nueva en *jBPM en Comunidad
[*http://comunidad.*jboss.*org/Escoge-contenedor!Entrada.*jspa?*contentType=1&*containerType=14&contenedor=2034]

Luis Tamayo [http://community.jboss.org/people/luis.tamayo] created the discussion

"Re: jbpm5 RULEFLOW VARIABLE CHANGED null"

To view the discussion, visit: http://community.jboss.org/message/624869#624869

--------------------------------------------------------------
Yes I am

ksession.getWorkItemManager().registerWorkItemHandler("Human Task", new CommandBasedWSHumanTaskHandler( ksession ));
                    ksession.getWorkItemManager().registerWorkItemHandler("MiNotificacion", new EmailWorkItemHandler());

EmailWorkItemHandler code is:

import org.drools.runtime.process.WorkItem;
import org.drools.runtime.process.WorkItemHandler;
import org.drools.runtime.process.WorkItemManager;


public class EmailWorkItemHandler implements WorkItemHandler { 

          public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { 
                    // extract parameters
                    try {
                              System.out.println("================================>> ingresa a executeWorkItem EmailWorkItemHandler");
                              String from = (String) workItem.getParameter("From");
                              System.out.println("================================>> From " + from );
                              String to = (String) workItem.getParameter("To");
                              //String message = (String) workItem.getParameter("Message");



                              manager.completeWorkItem(workItem.getId(),null);

                    } catch (Exception e) {

                              e.printStackTrace();
                    }
          } 


}
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/624869#624869]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
*jboss-Usuario *mailing lista
*jboss-user@xxxxxxxxxxxxxxx
*https://listas.*jboss.*org/*mailman/*listinfo/*jboss-Usuario
_______________________________________________
jboss-user mailing list
jboss-user@xxxxxxxxxxxxxxx
https://lists.jboss.org/mailman/listinfo/jboss-user
<Anterior por Tema] Tema Actual [Siguiente por Tema>