1 Reply Latest reply on Feb 18, 2008 2:48 PM by mwohlf

    Process started by the application

    pebbels

      Hi guys,

      hope someone can help me:

      How is it done that a process is started when a particular user logges in.
      What I mean is that not the user has to start the process but maybe the application.

      Thanks Tina

        • 1. Re: Process started by the application
          mwohlf

          the following code works for me:

          ProcessInstance processInstance = new ProcessInstance(processDefinition);
          TaskMgmtInstance taskManagement = processInstance.getTaskMgmtInstance();
          TaskInstance taskInstance = taskManagement.createStartTaskInstance();
          

          but maybe there is a better way to do this :-/