I am having the same problem, and I could not fix it doing what jeffcwang said.
I am using JBoss jBPM 3.2.2. When I execute the websale example the swimlane task
assignment don't work well.
I am runing the websale using jBPM Console Administrator, when I run the websale example,
show in the tasks table "Assigned To manager" for example, but all users can see
and modify the open task.
I created a very simple process, in this process There are 4 tasks and I generated a form
for each task, like the code below (file forms.xml):
<?xml version="1.0" encoding="UTF-8"?>
|
| <forms>
| <form task="criar" form="criar.xhtml"/>
| <form task="preencher" form="preencher.xhtml"/>
| <form task="aprovar" form="aprovar.xhtml"/>
| <form task="relatorio" form="relatorio.xhtml"/>
| </forms>
Each task was assigned for one user, using swimlane, like the code below
(processdefinition.xml):
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2"
name="request">
|
|
| <swimlane name="gerente">
| <assignment actor-id="admin"></assignment>
| </swimlane>
|
| <swimlane name="funcionario">
| <assignment actor-id="manager"></assignment>
| </swimlane>
|
| <swimlane name="usuario">
| <assignment actor-id="user"></assignment>
| </swimlane>
|
|
| <start-state name="Funcionario Envia Documento">
| <task name="criar"></task>
| <transition to="Usuario Assina e Preenche"></transition>
| </start-state>
|
|
| <task-node name="Usuario Assina e Preenche">
| <task swimlane="usuario" name="preencher"></task>
| <transition to="Gerente Confere e Valida"></transition>
| </task-node>
|
| <task-node name="Gerente Confere e Valida">
| <task name="aprovar" swimlane="gerente"></task>
| <transition to="Funcionario Recebe Documento"
name="Aprovado"></transition>
| <transition to="Usuario Assina e Preenche" name="Nao
Aprovado"></transition>
| </task-node>
|
| <task-node name="Funcionario Recebe Documento">
| <task name="relatorio"
swimlane="funcionario"></task>
| <transition to="Fim"></transition>
| </task-node>
|
|
| <end-state name="Fim"></end-state>
|
| </process-definition>
Only the first task was not assigned for anyone, like jeffcwang said.
I did not implemented nothig with java, I just did like I said and generate 4 forms:
criar.xhtml, preencher.xhtml, aprovar.xhtml and relatorio.xhtml. Only xml and xhtml
files.
The process work well in the jBPM Console Admin but the swimlane task assignment
don'tt work. Like in the websale example, in the tasks table appear, for example,
"Assigned To admin", but any kind of user can modify the task.
Any idea? I am very new with jBPM, am I forgeting something? I need to do some java
implementation in this case, like a actionhandler?
Thank you in advance!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151862#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...