在com.opensymphony.workflow.loader包下,有许多形形色色的Descriptor,他们以AbstractDescriptor为根,遍地开花。
图1:
从上图可以看到AbstractDescriptor的子嗣不是一般的多啊,但不要被他们所吓倒!
窥一斑而知全豹
OSWorkflow把定义在XML中的流程,根据DTD文件中定义好的各种XML元素,抽象出了很多种Descriptor,因此我们才得以见到如此多的Descriptor,这里也包括我们之前提到的WorkflowDescriptor,他可是XML流程文件中的根节点,也是最复杂的Descriptor,我们就从他开始。
The main workflow element. A workflow includes a set of meta properties that are global, as well as global registers
and trigger functions. It also defines a set of initial actions that are available to kick off the workflow.
The global actions are actions that can be executed from any step. They are available to all steps.
common-actions are actions that can be reused in steps. They a