2 Replies Latest reply on Oct 5, 2005 12:38 PM by jobryan

    TaskNode

    jobryan

      I need to build my ProcessDescription from code. However, however I have been unable to add a TaskNode

      I can add everything except a TaskNode. For example:

      ProcessDefinition processDefinition = new ProcessDefinition();

      Node fork = processDefinition.addNode(new Fork("fork"));

      Node decision = processDefinition.addNode(new Decision("large"));

      Any advice on how best to add TaskNode to a ProcessDescription would be greatly appreciated.

        • 1. Re: TaskNode
          aguizar

          I'm sure you tried processDefinition.addNode(new TaskNode("tasks")), right? What doesn't work?

          • 2. Re: TaskNode
            jobryan

            Because TaskNode implements Parsable, it will generate a compile error.

            public class TaskNode extends Node implements Parsable
            { .. }

            The other classes only "extend Node" and do not implement the Parsable interface

            Should I modify the jbpm framework to fix this problem?