ProcessMiningForExternalData - Scoped, Global
The ProcessMiningForExternalData API contains a method that marks an external audit record for processing.
This external audit data may come for external systems such as SAP, SmartRecruiters, or Jira.
To access this API, the Process Mining for external data (sn_po_extdata) plugin must be installed and the calling entity must have the sn_process_optimization_admin role.
For additional information on external audit records and Process Mining, see Process Mining.
ProcessMiningForExternalData - scheduleCaseGeneration(String externalDataSysId)
Marks the specified record in the External dataset [sn_po_extdata_dataset] table for processing. Use this method to automate the processing of external audit data.
Before calling this method, the external audit data must have already been imported into the External dataset table.
You can choose your desired method of importing this data, such as by Integration Hub or Workflow Studio. You can schedule this import on some fixed interval such as weekly, monthly, or quarterly. For additional information, see Working with external datasets.
After the data is imported, you call this method to set the state field in the specified External dataset record to "Scheduled." This setting indicates that the specified external dataset record is ready for processing. When processed, the data within the external dataset record is used to create audit and case records. The names of these audit and case records appear in the associated External dataset record.
- Global:
SNC.ProcessMiningForExternalData.scheduleCaseGeneration(String externalDataSysId); - Scoped:
ProcessMiningForExternalData.scheduleCaseGeneration(String externalDataSysId);
| Name | Type | Description |
|---|---|---|
| externalDataSysId | String | Sys_id of the dataset record in the External dataset [sn_po_extdata_dataset] table to mark as ready to be processed. |
| Type | Description |
|---|---|
| message | Status of the method call. When successful, the message is always: External dataset is scheduled for processing. When an error occurs, the message describes why the call failed. |
| status | Status of the method call. Possible values:
|
The following code example shows how to call this method.
ProcessMiningForExternalData.scheduleCaseGeneration("o83ehu2yv918ehbu23eg928dg7jbcf52");
Output:
{
"status": "success",
"message": "External dataset is scheduled for processing"
}