0 Replies Latest reply on Jul 30, 2007 8:16 AM by Wolfgang Hollweck

    createTaskInstance results in null token

    Wolfgang Hollweck Newbie

      I got an ActionHandler that is creating a TaskInstance dynamically.
      I tried this in several ways. E.g.:

       public void execute(ExecutionContext executionContext) throws Exception {
       Token token = executionContext.getToken();
       TaskMgmtInstance tmi = executionContext.getTaskMgmtInstance();
       Task task = tmi.getTaskMgmtDefinition().getTask("someTask");
       TaskInstance ti = tmi.createTaskInstance(task, executionContext);

      My problem is, that no matter which why I tried to create a TaskInstance the associated Token, TaskMgmtInstance, Create and Start Date are NULL.

      Anybody got a clue, what I'm doing wrong?