AnsweredAssumed Answered

Workflow - swimlanes broken?

Question asked by kbryd on Sep 15, 2008
Latest reply on Sep 16, 2008 by katenech
Hello

I am trying to setup simple workflow, I have followed documentation but still I am unable to do it right…My aim is to create a simple approval process with 3 steps:

* Reception of document
* Description of document
* Approval of document

Reception should be executed by user from group Office, and the remaining two steps by someone from the group Accounting, so I have created these two groups 'office' and 'accounting'.
The process itself was created in Eclipse, and here is it's source code:

<?xml version="1.0" encoding="UTF-8"?>

<process-definition
  xmlns="urn:jbpm.org:jpdl-3.2"
  name="Approval">

       <swimlane name="office">
           <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
      <pooledactors>#{people.getGroup('GROUP_office')}</pooledactors>
           </assignment>
       </swimlane>

       <swimlane name="accountant">
           <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
      <pooledactors>#{people.getGroup('GROUP_accounting')}</pooledactors>
           </assignment>
       </swimlane>

   <start-state name="start">
         <task name="kb:start" swimlane="office">
      </task>
      <transition name="Accept" to="Reception"></transition>
   </start-state>

        <task-node name="Reception">
      <task name="kb:reception" swimlane="office">
      </task>
      <transition name="Describe" to="Description"></transition>
   </task-node>
   
   <task-node name="Description">
      <task name="kb:description" swimlane="accountant">
      </task>
      <transition name="Approve" to="Approval"></transition>
   </task-node>

   <task-node name="Approval">
      <task name="kb:approval" swimlane="accountant" />
      <transition name="Approve" to="end"></transition>
   </task-node>

   <end-state name="end"></end-state>
</process-definition>


Nothing fancy…And now, when I start it, Alfresco asks me for the Workflow Assignee, who's that person? I have defined all swimlanes in the code, so I don't understand why I am asked for that Workflow Assignee, and what's important, which tasks will be executed by that person?
Second issue is that, when I start that process from the 'admin' account then I can see the first task kb:reception in my inbox and when I approve it it simply disappears from ALL users' inboxes (it should be routed to users from the 'office' group but it isn't). When I use workflow console to debug it I see that the workflow token is at the Description node but I can't see it in inbox…


definition: jbpm$47 , name: Approval , version: 33
workflow: jbpm$45 , active: true
path: jbpm$45-@ , node: Description


path: path
properties: 19
{}companyhome = workspace://SpacesStore/8c483d66-54f4-4553-aad9-1198ef4c9cd4
{http://www.alfresco.org/model/bpm/1.0}percentComplete = 0
{http://www.alfresco.org/model/bpm/1.0}assignee = workspace://SpacesStore/7ef8f373-b11d-46e2-9edb-25535a4d3cff
{http://www.alfresco.org/model/bpm/1.0}outcome = Describe
{http://www.alfresco.org/model/bpm/1.0}context = workspace://SpacesStore/8c483d66-54f4-4553-aad9-1198ef4c9cd4
{}workflowinstanceid = jbpm$45
{http://www.alfresco.org/model/bpm/1.0}workflowDescription = null
{http://www.meta.com/mds.model/1.0}nip = aaaa
{http://www.meta.com/mds.model/1.0}number = aaa
{}initiator = workspace://SpacesStore/7ef8f373-b11d-46e2-9edb-25535a4d3cff
{}cancelled = false
{http://www.alfresco.org/model/bpm/1.0}status = Completed
{http://www.alfresco.org/model/bpm/1.0}package = workspace://SpacesStore/42621a58-607f-4f63-a5b6-18bcf68cfd77
{http://www.alfresco.org/model/bpm/1.0}workflowPriority = 2
{http://www.meta.com/mds.model/1.0}deliverer_name =
{}initiatorhome = workspace://SpacesStore/8c483d66-54f4-4553-aad9-1198ef4c9cd4
{http://www.alfresco.org/model/bpm/1.0}packageActionGroup = add_package_item_actions
{http://www.alfresco.org/model/bpm/1.0}packageItemActionGroup = start_package_item_actions
{http://www.alfresco.org/model/bpm/1.0}workflowDueDate = null


The workspace://SpacesStore/7ef8f373-b11d-46e2-9edb-25535a4d3cff points to the admin account, so it looks like the task is still assigned to the admin account…

Can someone explain it to me?

Thanks in advance.

Outcomes