Siebel Field Service Guide > Scheduling Using Siebel Scheduler > Reloading the ABS and Optimizer Caches >
Creating Workflows to Reload Data for Service Regions to the Appointment Booking System Cache
You can automatically reload service regions by using the predefined Server Requests business service to call the Appointment Booking Engine server component (alias ApptBook). You can set up a workflow process to submit the server job to ApptBook. For more information about setting up workflows, see Siebel Business Process Framework: Workflow Guide. For more information about creating repeating component jobs, see Siebel System Administration Guide. For more information about the various input arguments that the ABS methods use and about the values that the ABS methods return, see Methods for the ABS and About Calling the ABS and Optimizer Methods. You can also set up workflows to specifically handle the following situations:
CAUTION: When loading the ABS, use either Siebel eScript or a workflow process. Do not use the Appointment Booking Service business service for this purpose.
To create a workflow to automatically reload data for service regions
- Create a workflow process with the following steps:
- Start
- Business Service
- End
- To define the Business Service step, specify the Server Requests business service and SubmitRequests method.
CAUTION: You can use the Server Requests, Asynchronous Server Requests, or Synchronous Server Requests business services to submit a request to the Appointment Booking Engine. However when using any of these business services in Siebel eScript or in a workflow, you must provide an appropriate value for the Request Key input argument in the SubmitRequests method. The value of this input argument is the Service Region ID value of the activity. You can map each service region to a different process number. The business service must use the Request Key value to identify the correct ABS process to which to send each request. Without the Request Key input argument, the request might be sent to the wrong ABS process, causing the Appointment Booking Engine to return an error message. For more information, see Setting Up Server Key Mappings.
- Define the input arguments in the following table.
|
|
|
Appt.SvcRegnId |
Literal |
The required ROW_ID for the service region. |
Request Key |
Literal |
The required ROW_ID for the service region. |
Component |
Literal |
ApptBook. |
Method |
Literal |
ReloadServiceRegion. |
Mode |
Literal |
Sync or Async:
- Use Sync if you want the workflow process to wait for the ABS to finish.
- Use Async if you want the workflow process to submit requests to the ABS and then end the workflow without determining whether the ABS successfully reloaded the service region.
|
- Deploy and activate the workflow process.
- Create a new repeating component job, and select Workflow Process Manager as the Component/Job field value.
- Create a new job parameter, and specify Workflow Process Name in the Name field and the name of the workflow process (ReloadServiceRegion) in the Value field.
- Start the job.
A new instance of the job is created with a Queued status. When the start date arrives, the queued instance is executed.
|