Examples
As an example, the new to used conversion gets being explained.
private void ConfigureBookingWorkflow()
{
// Define a new WcsVisitorScope, that matches for all bookings.
var scope = new WcsVisitorScope
{
FromCostunitId = "*",
FromWorkplaceId = "*",
ToCostunitId = "*",
ToWorkplaceId = "*"
};
var newToUsedVisitor = new NewToUsedVisitor(scope);
newToUsedVisitor.OnBeforeAction = (br) => { Debug.WriteLine("On before visitor call."); };
newToUsedVisitor.OnAfterAction = (br) => { Debug.WriteLine("On after visitor call."); };
// Activate the visitor and attach it to the Booking Workflow.
workflowManager.ActiveVisitors.Add(newToUsedVisitor);
}