jboss-user
[Arriba] [Todas las Listas]

[jboss-Usuario] [jBPM] - Re: registerWorkItemHandler workItemName

To: User development <jboss-user@xxxxxxxxxxxxxxx>
Subject: [jboss-Usuario] [jBPM] - Re: registerWorkItemHandler workItemName
From: Tobias Wittur <do-not-reply@xxxxxxxxx>
Date: Thu, 15 Sep 2011 00:02:24 -0400
Auto-submitted: yes
Delivery-date: Thu, 15 Sep 2011 00:03:54 -0400
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <2-621803-3-88405-1313727262671-2-622283-3-88405-1314069814875.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-621803-3-88405-1313727262671.jivesbs.jivemailuser@http://community.jboss.org> <2-621803-3-88405-1313727262671-2-622117-3-2174-1314008617409.jivesbs.jivemailuser@http://community.jboss.org> <2-621803-3-88405-1313727262671-2-622283-3-88405-1314069814875.jivesbs.jivemailuser@http://community.jboss.org>
Reply-to: The JBoss User main mailing list <jboss-user@xxxxxxxxxxxxxxx>
Sender: jboss-user-bounces@xxxxxxxxxxxxxxx
Tobias *Wittur [*http://comunidad.*jboss.*org/Personas/*tob1cuando] creó la discusión

"*Re: *registerWorkItemHandler *workItemName"

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

--------------------------------------------------------------
Esteban,

dejado decir tengo #varios mensaje echa acontecimientos en un proceso. Aquellos son todo registrado a un genérico *sendTaskHandler.

 *https://*github.*com/*droolsjbpm/*jbpm/*blob/Maestro/*jbpm-*bpmn2/*src/principal/*java/*org/*jbpm/*bpmn2/*handler/*SendTaskHandler.*java *https://*github.*com/*droolsjbpm/*jbpm/*blob/Maestro/*jbpm-*bpmn2/*src/principal/*java/*org/*jbpm/*bpmn2/*handler/*SendTaskHandler.*java

Aun así, desde hay ninguna interfaz o la operación conectada, cómo  provoco un *suitable la acción para cada mensaje particular echa acontecimiento?

Cuando mostrado en esta prueba de unidad:
> *KnowledgeBase *kbase = *createKnowledgeBase("*BPMN2-*IntermediateThrowEventMessage.*bpmn2");
> *StatefulKnowledgeSession *ksession = *createKnowledgeSession(*kbase);
> *ksession.*getWorkItemManager().*registerWorkItemHandler("Envía Tarea", nuevo *SendTaskHandler());
> Cadena<de Mapa, Objeto> *params = nuevo *HashMap<Cadena, Objeto>();
> *params.Puesto("*x", "*MyValue");
> *ProcessInstance *processInstance = *ksession.*startProcess("*MessageIntermediateEvent", *params);
--------------------------------------------------------------

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

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

Tobias Wittur [http://community.jboss.org/people/tob1as] created the discussion

"Re: registerWorkItemHandler workItemName"

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

--------------------------------------------------------------
Esteban,

let's say I have several message throw events in one process. Those are all registered to a generic sendTaskHandler.

 https://github.com/droolsjbpm/jbpm/blob/master/jbpm-bpmn2/src/main/java/org/jbpm/bpmn2/handler/SendTaskHandler.java https://github.com/droolsjbpm/jbpm/blob/master/jbpm-bpmn2/src/main/java/org/jbpm/bpmn2/handler/SendTaskHandler.java

However, since there is no interface or operation connected, how would I trigger a suitable action for each particular message throw event?

As shown in this unit test:
> KnowledgeBase kbase = createKnowledgeBase("BPMN2-IntermediateThrowEventMessage.bpmn2");
> StatefulKnowledgeSession ksession = createKnowledgeSession(kbase);
> ksession.getWorkItemManager().registerWorkItemHandler("Send Task", new SendTaskHandler());
> Map<String, Object> params = new HashMap<String, Object>();
> params.put("x", "MyValue");
> ProcessInstance processInstance = ksession.startProcess("MessageIntermediateEvent", params);
--------------------------------------------------------------

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

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>
  • [jboss-Usuario] [jBPM] - Re: registerWorkItemHandler workItemName, Tobias Wittur <=