We know, OsWorkflow system to
We see the code of XMLWorkflowFactory: WorkflowConfig C = (WorkflowConfig) Workflows.get (Name); if (c == null) {Throw new factoryException ("Unknown Workflow Name /" Name "/");} IF (c.descriptor! = null) {if (reload) {file file = new file (c.url.getfile ()); if (file.exists () && (file.lastmodified ()> c.lastmodified)) {C.lastmodified = file.lastmodified (); loadingWorkflow (c);}}} else {loadingWorkflow (c);} return c.descriptor
Everyone should see the above code, it uses the Flyweight mode, but adds an intermediate layer WorkflowConfig; the AgileFlow engine is also using the parsing of the process definition is also this mode, which can determine the user's definition in real time. Modify and make a corresponding response.