BackgroundTask 2.5 CreateBackgroundTaskWithStartAfter
Creates a new background task which can only be started after the configured date time is passed
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
| psAuthContext | String | InOut | Deprecated proprietary authentication context only used by .ASMX web services based on internal username/password authentication. Claims based security standards drive all the WCF .SVC web services, making this parameter redundant. |
| psEventType | String | In | The type of the event (e.g PUBLISH) |
| pbInputData | Blob | In | The input data for the background task |
| plOutProgressId | Long | InOut | The unique identifier of the new event. |
| psHashId | String | In | The string with the hashId, this will be used to skip older background task for the same action. For instance, synchronizing the same language object only once to SDL LiveContent. |
| plOutTaskId | Long | Out | The unique identifier of the new background task. |
| pdStartAfter | Date | In | A date limiting the background task that will be retrieved based on the last modification date of the background tasks |
Note that:
- The following fields are set automatically:
- The initial status is set to "Pending'"
- The userid is set to the current user
- The creation date and modification date are initialized to the current UTC date (and time)
- The trackingid is set to the progressid
- The current attempt is set to "1"
- Normally the event log is already started via EventMonitor.StartEvent, however if no progressId is provided a new event log record will be created with the following parameters:
- psEventType: The provided psEventType
- psDescription: The provided psEventType
- plParentProgressId: 0, so indicating that there is no parent event
- piMaximumProgress: 1