2 Replies Latest reply on Oct 13, 2005 1:47 AM by James Depoorter

    Using multiple workflows simultaneously

    Ashwini Kumar Newbie

      I wish to use multiple workflows simultaneously. So an actor (USer) can have tasks assigned to him by multiple workflows. How do we distinguish between tasks assigned to a user between workflows?

      JbpmSession session = jbpmSessionFactory.openJbpmSession();
      session.beginTransaction();
      TaskMgmtSession taskMgmtSession = session.getTaskMgmtSession();
      List lst = taskMgmtSession.findTaskInstances(user.getName());
      session.close();

      Above code returns all the tasks assigned to a user. But I want to get only those tasks assigned to a user belonging to a particular workflow.

      Thanks,