为解决以XML方式存储的流程信息可视化问题,提出一个可视化框架。讨论如何用XML技术表示流程信息,如何将这种表示的流程信息可视化,即将它们转换为图形的方式展现;针对框架中的模块,提出两个算法,一个是从外部的XML文件中抽取流程信息,另一个是利用流程信息构建用于可视化显示的图模型;在两个开源Java类包JDOM和JGraphX的帮助下,实现一个原型系统,用一个完整流程信息的例子验证了原型的可用性。
To address the problem of visualizing the flow information stored in XML format,a framework was proposed.How to represent the flow information using XML and how to visualize this kind of information were discussed.Then two algorithms for the framework were given,one for extracting flow information from outside XML file,the other for constructing the graph model using the flow information.Graph model was sent to Java Swing framework for visualizing the flow information.Finally,with the help of two open source Java library packages JDOM and JGraphX,aprototype for the framework was implemented,and a flow information example was presented for validating the prototype.