[jBPM] - Best way for implement this process
by John Sawyer
John Sawyer [http://community.jboss.org/people/mcsawyer] created the discussion
"Best way for implement this process"
To view the discussion, visit: http://community.jboss.org/message/541387#541387
--------------------------------------------------------------
I need to implement the next process:
At first the process explote to five states, this 5 states does the same (but are different because represents each one a unit).
- check if exists some file, if not, send and email and go to sleep 1 day, if exists we can leave this state.
When 5 states are completed, we need to send an email to notify and this is all.
==============
I test this... first i'm trying only with one state....
<?xml version="1.0" encoding="UTF-8"?>
<process name="WeekSignature" xmlns=" http://jbpm.org/4.3/jpdl http://jbpm.org/4.3/jpdl">
<start g="16,60,48,48" name="start1">
<transition name="to CGC" to="CGC" g="-39,-18"/>
</start>
<end g="672,60,48,48" name="end1"/>
<state g="176,100,92,52" name="CGC">
<on event="bucle">
<timer duedate="10 seconds" repeat="30 seconds"/>
<event-listener class="main.java.GuardianListener">
<field name="subunidad"><string value="CGC"/></field>
<field name="email"><string value="xxx@xxx"/></field>
</event-listener>
</on>
<transition name="to state1" to="state1" g="-49,-18"/>
</state>
<state g="380,58,92,52" name="state1">
<transition g="-72,-18" name="to end1" to="end1"/>
</state>
</process>
=================
And in notify in event-listener i use (for complete the state...)
executionService().signalExecutionById(execution.getId());
====================
I think that this is not the best way for do this.. and when i put fork and join, the signal doesn't work and the process remain blocked.
how can i reorganice this process?
I use jbpm 4.3
thank you
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/541387#541387]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
[jBPM] - Swimlanes don´t work
by David Caicedo
David Caicedo [http://community.jboss.org/people/david.caicedo] created the discussion
"Swimlanes don´t work"
To view the discussion, visit: http://community.jboss.org/message/541332#541332
--------------------------------------------------------------
Hi Guys,
I´m trying an example , and I´m setting swinlanes like this:
<swimlane name="*solicitante*">
<assignment expression="group(solicitante)"></assignment>
</swimlane>
<swimlane name="oficial1">
<assignment expression="group(oficial1)"></assignment>
</swimlane>
<swimlane name="oficial2">
<assignment expression="group(oficial2)"></assignment>
</swimlane>
<swimlane name="jefeOficial">
<assignment expression="group(jefeOficial)"></assignment>
</swimlane>
After that I do an assigment, for example
<start-state name="Ingreso de Solicitud">
<task name="Ingreso de Solicitud" swimlane="*solicitante*">
<controller>
<variable access="read,write,required" name="nombre"></variable>
<variable access="read,write,required" name="apellido"></variable>
<variable access="read,write,required" name="direccion"></variable>
<variable access="read,write,required" name="cedula"></variable>
<variable access="read,write" name="telefono"></variable>
<variable access="read,write" name="tarjetaCreditoTipo"></variable>
<variable access="read,write" name="tarjetaCreditoNumero"></variable>
</controller>
</task>
<transition to="Aprobacion de 1er Nivel"></transition>
</start-state>
Then I inserted a user and a group into jbpm_id_user, jbpm_id_group and jbpm_id_membership
Finally changed web.xml
<auth-constraint>
<role-name>*solicitante*</role-name>
</auth-constraint>
and
<security-role>
<role-name>*solicitante*</role-name>
</security-role>
When the process is started another roles can see this task, but the task is assigned to *solicitante*, how can I set to only the role solicitante can see this task?
Regards
David
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/541332#541332]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months