2 Replies Latest reply on Jul 30, 2008 9:05 AM by kukeltje

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

    tom.baeyens

      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.