2 Replies Latest reply on Aug 2, 2007 4:12 PM by Pete Muir

    Conditional @CreateProcess

    Damian Harvey Master

      I'd like to launch a Business Process from a method if the outcome requires it (in my case it is missing data that needs supervisor attention). If I try to call a method that is annotated with @CreateProcess from another method, then the process is never launched. I can use


      If a process is launched this way it does not have access to the outjected variables so you have to use:
      @In BusinessProcessContext businessProcessContext;
      businessProcessContext.set("myVariable", "myValue");

      But what would be handy would be "ifOutcome" like @End has. Then it would be as simple as @CreateProcess(ifOutcome="error")

      Does this sounds reasonable or have I missed something?