Ticketers
A ticketer is a component that can match requests from client applications to conversational service instances. You can use a ticketer to make sure that a client request is handled by the correct service instance. Ticketers are transparent to client applications and DCS services.
A ticketer implements the ITicketer interface that is defined in the Microsoft.ConnectedIndustry.ProcessExecution.Common assembly provided with DCS. This interface exposes the following method.
public Guid RetrieveInstance(ServerContext context)
A ticketer receives the context object sent with the client request. You provide the logic that uses this information to determine the appropriate conversational service instance to handle the request. The method returns a globally unique identifier (GUID) that identifies the service instance to use. if two calls to the RetrieveInstance method return the same GUID, then the DCS runtime directs both client requests to the same service instance.
Note: |
|---|
| You can use the GetRunningWorkflowInformation operation in the WorkflowManagementService Web service (one of the DCS ManagementServices Web services) to retrieve information about service instances and the workflows that they are running. |
You can also use a ticketer to map requests from a single client application to a specific instance of a long-running service. For example, the context object provided by the client application can contain customer-specific information such as a customer ID. You can implement a ticketer that examines the customer ID and directs the request to the service instance that the customer used previously, even if the customer used a different instance of the client application on a different computer.
A ticketer is associated with one or more tasks that implement operations. You use the DCS Management Services console to deploy a ticketer and associate it with an operation.
Note: