[jBPM Users] - Re: How to signal subprocess?
by cmjhingeniero
Hi
I have a state that has an event that is consumed until the flag reaches a certain value. When you reach this value need to turn to another task. As I do this, some examples in java
| <state g="438,14,92,52" name="verificar repo">
| <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 to="enviar email"/>
| </state>
|
| <mail g="562,14,107,54" name="enviar email">
| <to addresses="carlosj(a)audifarma.com.co"/>
| <subject>Prueba</subject>
| <text>Prueba</text>
| <transition to="fin_1"/>
| </mail>
|
| public void notify(EventListenerExecution execution) throws Exception {
| ProcessInstance processInstance = executionService.findProcessInstanceById("Pendientes-1");
| String respuesta = execution.getVariable("respuesta")+"";
| if (respuesta.equals(null)) {
| respuesta = new String();
| execution.setVariable("respuesta", respuesta);
| }
| ReposicionDao reposicion = new ReposicionDao();
| respuesta = reposicion.verificarCarguePorReposicion(documento, caf);
| execution.setVariable("respuesta", respuesta);
|
| if(execution.getVariable("respuesta").toString().equals("N")){
| executionService.signalExecutionById(processInstance.getId(),"enviar email");
| }
| }
|
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267864#4267864
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267864
15 years, 2 months
[jBPM Users] - Re: jbpm-console
by dejanmr
"sebastian.s" wrote : P.S.: Please quote me correctly next time. :)
Is this good enogh? Sorry for previous post, this forum has very nice feature - you can not edit or remove post once you have submitted it. So, if you submit something by mistake, no way to fix it.
"sebastian.s" wrote :
| It could be that the console does not use the custom IdentitySession since the BPM-console is not jused used exclusively for jBPM.
This probably is the cause. Thank for the answer. Too bad they did not use standard way of log in to application (like in gwt-console-server-jbpm where it is easy to customize), but they own approach, which makes customization hard to people not familiar with gwt.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267772#4267772
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267772
15 years, 2 months