The pluggable workflow service is a workflow that can be used to create interactions and collect data from external data sources.
The pluggable workflow service provides external applicationsProgramOr the program communication mechanism generated by running workflow instances in components.
InWF3The number of response events of a workflow is limited.
Because of these restrictions, customers usually ask about scalable models so that any number of custom events can be used internally and externally to interact and respond to user processes.
In earlier versionsCodeCall this function of an external service.Web ServiceUpdate the specified running workflow instance by passing parameters.SharePoint Foundation 2010Has provided developers with an encoding method to listen to external events of the workflow, and no need to writeWeb Service.
The pluggable workflow service allows a workflow to be executed to a specified point and then waits for information about the external process.
Architecture
The following data streams are used to start the pluggable workflow service:
- Use the workflow code to start and load the workflow engine.
- The workflow engine reads the class and Assembly channels from the configuration file.
- Load these channels from GAC to start the workflow runtime.
Spworkflowservice is an abstract class that provides services to access basic functions and data. The pluggable workflow service inherits this class.
Use a pluggable service in a workflow to receive communication from an external transmission system.
For example, a company usesSharePoint FoundationA large-scale order processing system has been created. Each list item in the order list represents an order. Use a workflow to automatically implement the business process of the order item implementation process. Customers from all over the world directly submit orders to various carriers for data transmission. Recently, it has been difficult for transmission companies to promptly update and integrate information in the order details list. Therefore, it is necessary to automatically receive updates from the transmission company and constantly update the order information. The transmission company provides an automatic system to notify the customer of the status of delivery submission. By using pluggable services, developers can pause a workflow when the workflow waits for the sender to send a notification. When the workflow receives the submission status, the workflow can call the interface to update the status.SharePointList and continue the next step.
Development steps:
1. Custom workflow service.
2. Accept external events and call the appropriate function RESPONSE event processor and Web Service in the Custom workflow service, allowing you to re-start the appropriate workflow.