The inlet code of the average OSWORKFLOW is as follows: Workflow WF = New BasicWorkflow ("MyuserName"); WF.Initialize ("MyWorkflow", 1, null; first line is an instance of a Workflow in memory, the second line is startup Process.
Workflow is an interface that represents OsWorkflow process, basically call all the features you want to call. Different according to the core implementation, there is BasicWorkflow, EJBWORKFLOW, SOAPWORKFLOW, OFBIZWORKFLOW, etc. to implement Workflow interface; true project development In, we can use IOC mode to inject specific implementations into our own code, we only need to pay attention to the interface provided by Workflow.
Code new BasicWorkflow ( "myusername") in "myusername" refers to the name of caller; concept of context in osworkflow in, caller will be stored in the context of the same, WorkflowContext an interface, respectively BasicWorkflowContext, different EJBWorkflowContext like. Implementation. WorkflowContext is referenced by different Workflow implementations.