Patent ID: 7647577

Claim:
A method comprising: A) using a flowchart editor for generating an equivalent tree diagram from a flowchart, comprising steps of: traversing the flowchart, wherein said flowchart comprises a main processing flow, a logic structure within said main processing flow, and a processing activity in said logic structure; forming a main tree corresponding to the main processing flow; transforming the logic structure in the flowchart to a sub tree comprising a branching node in the equivalent tree diagram; assembling the sub tree to the main tree; transforming a task required by the processing activity to a leaf node below the branching node in the sub tree; and decomposing the task represented by the leaf node to at least one sub task and setting each sub task as a child leaf node below the leaf node; modifying the leaf node to a sub-branching node of a type corresponding to an execution logic of the at least one sub task, wherein the execution logic comprises a loop logic structure and at least one of: a sequence logic structure and a split logic structure; and repeating the decomposing and modifying steps until the tasks represented by all the leaf nodes in the equivalent tree diagram cannot be further decomposed; B) using an equivalent tree diagram storing unit for storing the equivalent tree diagram generated by the flowchart; C) using an equivalent tree diagram editing unit for editing the equivalent tree diagram, comprising steps of: finding the at least one loop logic structure in the flowchart; selecting at least one node in the flowchart for editing, using a reorganization verifying unit for verifying validity of the editing, comprising: determining that the editing is valid when the at least one node corresponds to a sub tree in the equivalent tree diagram; determining that the editing is valid when the at least one node corresponds to a plurality of sub trees in the equivalent tree diagram and said plurality of sub trees have a same parent node in common; modifying the equivalent tree diagram; and D) using the equivalent tree diagram editing unit for modifying the flowchart according to the modified equivalent tree diagram.