Custom activity (1)
I think this section is the most important thing. This is a very important part of the business workflow platform.;Is also an important part of the template. We will talk about custom activities in the following aspects:
L Minimize occupancy time
L Data Exchange
L Lock Processing
L Maintain state consistency and integrity
L Stop an activity
The following are specific designs for custom audit activities
L Functional Logic Design
L Rollback and resubmit
L Cross-review implementation
Minimize occupancy time
in WWF technical details and Application Experience (1) I have talked about persistence. Although this section does not address technical issues, but it is related to the lock time. So I have to mention sqlworkflowpersistenceservice , its constructor has a parameter instanceownershipduration used to specify the time occupied. Too long occupation is harmful to timeliness processing. Therefore, we should minimize the value of instanceownershipduration .
In real life, each person's processing speed is different. Some processes are fast and some processes are slow.Some people may need to clean up water, go to the toilet or something during the processing ...... So we wantInstanceownershipdurationHow many values are suitable?It may be difficult for many people to choose.
At that time, I am here to mislead everyone! I thought so at the beginning. Is there any way to set it to a relatively small range (for example10 s. Here is a symptom. In a processing process, the computer has two aspects to do: one is to collect user input information, and the other is to submit data and perform corresponding automatic processing. For the first point, the time used is not accurately estimated, but for the second point, the time used is extremely limited (generally10 sEnough ). I think you may know what I'm talking about. That is, we are not responsible for collecting user information during workflow operation.
How can we achieve this? See the following section. To be continued