2 Replies Latest reply on Jul 30, 2008 9:05 AM by Ronald van Kuijk

    Can't post replies [was How to Create Task without Process I

    Tom Baeyens Master

      it is in the scope and it is already supported:

      public void testTaskInstanceUnrelatedToAProcess() {
      TaskInstance taskInstance = new TaskInstance("do laundry", "someoneelse");
      session.save(taskInstance);
      long id = taskInstance.getId();

      newTransaction();

      taskInstance = (TaskInstance) session.load(TaskInstance.class, new Long(id));
      assertNotNull(taskInstance);
      assertEquals("do laundry", taskInstance.getName());
      assertEquals("someoneelse", taskInstance.getActorId());
      }

      is that what you need ?

      regards, tom.