Patent ID: 7640532

Claim:
A computer-implemented method for mapping source code to a workflow, said method comprising: annotating, by said computer, said source code, including comments within said source code, with keywords to provide annotated source code, wherein said source code comprises methods and classes; said keywords are semantically related to said methods and said classes of said source code; said keywords represent a business requirement; said source code is annotated with each of said keywords that match any of said methods or said classes of said source code; and a code fragment of said source code is annotated with one or more of said keywords extracted from a comment corresponding to said code fragment; generating, by said computer, a call graph of said source code, wherein: said call graph represents one or more trees, each of said one or more trees having nodes; and each of said nodes corresponding to a code fragment associated with a method or class; inputting user-selected keywords into said computer; determining, by said computer, matched nodes from each of said nodes matching one or more of said user-selected keywords; using said call graph to determine, by said computer, all traces including any of said matched nodes, wherein each of said traces corresponds to a workflow described by at least one of said user-selected keywords; and identifying, by said computer, a workflow corresponding to that trace having a maximum number of said user-selected keywords that best represents a business requirement described by said user-selected keywords.