Custom Activity ( II ) Data Exchange
to make custom activities universally available, therefore, the data sources required for the activity must follow certain standards. However, this is difficult to achieve. In terms of custom audit activities, it may need data in three aspects (actually more):
L specifies the list of persons used for review when designing a workflow, specifies who can participate in this audit activity. Here is a technical point, that is, how to implement the custom attribute editor.
L the current user information is obtained when the workflow instance is running, based on the current user-defined audit activity, you can determine whether the person can perform this activity, that is, whether the person exists in the user list. If not, the activity is interrupted. For more information about how to interrupt the activity, see Article .
L data required for executing an activity. Business workflow platform design (4) ," minimizing the time of possession "refers to separating the collection of user data from the workflow to save time of possession, data should also be separated from the workflow. The workflow is not responsible for storing and querying the data, but the custom audit activity will apply the data for processing to determine whether the activity is going to proceed to the next step; or continue to wait for the review of other users; or it is rejected (it can be modified and submitted for review again); or it is not adopted (it cannot be submitted for review again ).
the data acquisition path is uncertain, the User List data may be used to directly access the database, or access Web Service , or through the configuration file ...... In addition, do we require users to adopt a unified storage format. All of these are uncertain. So how to integrate with the application system? Let's customize an interface for the application system to implement it.
We need to implement such isolation, otherwise the versatility of this activity will be greatly reduced. However, if each activity has its own different data needs, this situation is also complicated. The best way is to configure them in a centralized manner. We have a corresponding configuration file for each design. It would be a good choice to put the content in it.
To be continued.