2 Replies Latest reply on Jul 31, 2006 3:05 PM by Ronald van Kuijk

    Swimlane in start

    Daniel Lipski Newbie

      I want to remeber process initiator and then assign some task only to such person. So I've created some smple process definition:

      <process-definition name="orderManagement">
       <swimlane name="creator" />
       <start-state name="start">
       <task swimlane="creator"/>
       <transition name="init" to="somewhere"></transition>

      And after invoking this code:
      InputStream is = new FileInputStream("processes/orderManagement/processdefinition.xml");
      ProcessDefinition def = ProcessDefinition.parseXmlInputStream(is);
      ProcessInstance pi = def.createProcessInstance();
      Token t = pi.getRootToken();

      I get such log:

      [org.jbpm.configuration.ObjectFactoryImpl] - adding object info 'jbpm.mail.address.resolver'
      [org.jbpm.jpdl.xml.JpdlXmlReader] - process xml warning: swimlane 'creator' does not have an assignment
      [org.jbpm.graph.def.GraphElement] - event 'process-start' on 'ProcessDefinition(orderManagement)' for 'Token(/)'
      [org.jbpm.graph.def.GraphElement] - event 'before-signal' on 'StartState(start)' for 'Token(/)'
       [org.jbpm.graph.def.GraphElement] - event 'node-leave' on 'StartState(start)' for 'Token(/)'
      [org.jbpm.graph.def.GraphElement] - event 'transition' on 'Transition(init)' for 'Token(/)'

      What is wrong ? It is very similar to example from documentaion(11.7).