1 workflowruntime. startruntime () Start WF runtime.
2 workflowruntime. createworkflow () returns the newly created WF workflow instance. This method prepares a scheduler and a scheduler work queue for the newly created WF workflow instance. When this method is returned, all activities in the WF workflow are in the initialized state.
3. workflowinstance. Start () notifies WF to start executing the WF workflow instance when it is running. This method adds the delegate of the active root node in the WF workflow to the scheduler work queue.
1. Create a Workflow
2. ForwardProgramThe loader sends a request to create a workflow prototype from the template.
3. Create a workflow instance
4. Point the metadata of the instance to the metadata of the prototype.
5. Create a scheduler
6. initialize the workflow instance
7. Create a workinstance object, bind the object to the workflow instance, scheduler, and AEC, and return the object to the caller.