AnsweredAssumed Answered

Workflow - swimlanes broken?

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

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"?>


       <swimlane name="office">
           <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">

       <swimlane name="accountant">
           <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">

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

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

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

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

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
{}percentComplete = 0
{}assignee = workspace://SpacesStore/7ef8f373-b11d-46e2-9edb-25535a4d3cff
{}outcome = Describe
{}context = workspace://SpacesStore/8c483d66-54f4-4553-aad9-1198ef4c9cd4
{}workflowinstanceid = jbpm$45
{}workflowDescription = null
{}nip = aaaa
{}number = aaa
{}initiator = workspace://SpacesStore/7ef8f373-b11d-46e2-9edb-25535a4d3cff
{}cancelled = false
{}status = Completed
{}package = workspace://SpacesStore/42621a58-607f-4f63-a5b6-18bcf68cfd77
{}workflowPriority = 2
{}deliverer_name =
{}initiatorhome = workspace://SpacesStore/8c483d66-54f4-4553-aad9-1198ef4c9cd4
{}packageActionGroup = add_package_item_actions
{}packageItemActionGroup = start_package_item_actions
{}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.