BatchProcessJobDefinition
Represents the details of a Batch Management job definition.
Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.
This type extends Metadata and inherits its fields.
BatchProcessJobDefinition components have the suffix .batchProcessJobDefinition and are stored in the batchProcessJobDefinitions folder.
Introduced in API version 51.0.
To know the products and user permissions needed to access this type, See Supported Editions and Permissions for Batch Management.
- Type: int
- Required: Yes
- Description: Required. Number of records that each Batch Management job can process. Flow type Batch Management jobs can process up to 2000 records and Loyalty Program Process type Batch Management jobs can process up to 250 records.
- Type: BatchDataSource
- Required: Yes
- Description: Required. Source of information whose records must be processed by the Batch Management job.
- Type: string
- Required: No
- Description: Description of the Batch Management job, up to 255 characters.
-
Type: string
-
Required: No
-
Introduced: API version 55.0
-
Description:
API name of process that must be executed by the Batch Management job. - If the batch job’s type is Flow, enter the API name of an active flow that the batch job must execute.
- If the batch job’s type is Loyalty Program Process, enter:
- Transaction_Journals if you want the batch job to process Transaction Journal records by applying the applicable active loyalty program process of the type TransactionJournal.
- API name of an active loyalty process of the type TierProcessing if you want the batch job to run the loyalty program process to assess the tier of eligible members. The API name consists of the name of the process, the process type, and the name of the loyalty program separated by two consecutive underscores. For example, the process API name is
Update Member Tier__TierProcessing__Inner Circleif the process name is Update Member Tier, the process type is TierProcessing, and the loyalty program name is Inner Circle.
You can use database-based APEX classes that let you use flex queues in the Batch Management job, allowing to place more than 5 jobs in a queue. This functionality is applicable to all Industry Clouds that use managed packages. See Apex Flex Queue.
- If the batch job’s type is Loyalty Program Process, enter:
-
Type: string
-
Required: No
-
Description: API name of an active flow process that must be executed by the Batch Management job.
You can either specify the flow API name in the
executionProcessApiNamefield or in theflowApiNamefield.
- Type: string
- Required: No
- Description: Input variable of associated flow that is used by the batch job to uniquely identify records.
- Type: string
- Required: Yes
- Description: Required. Name of the Batch Management job, up to 80 characters.
- Type: string
- Required: Yes
- Description: Required. Name of the group for which the Batch Management job processes records.
- Type: int
- Required: Yes
- Description: Required. Number of times this Batch Management job must be rerun in case it fails. The maximum retry count is 3. Valid values are 1–3.
- Type: int
- Required: Yes
- Description: Required. Number of milliseconds after which the Batch Management job must be rerun in case it fails. Valid values are 1,000–10,000.
- Type: string
- Required: No
- Description: Indicates the status of the Batch Management job. Valid values are
ActiveandInactive.
- Type: string (enumeration of type string)
- Required: No
- Introduced: API version 55.0
- Description: The type of process that the Batch Management job must execute.
- Possible values:
- BulkUpdate
- Calc — Data Processing Engine
- ConsumptionOveragesCalculation
- DecisionTableRefresh
- DeepCloneSalesAgreement
- FlattenAccountIOUHierarchyBatchJob
- Flow
- EnergyUseRecordCreationBatchJob
- EntitlementCreationBatchJob
- HighScaleBreProcess
- IndustriesLSCommercial
- InvoiceDTPRunBatchJob
- InvoiceRecoveryRunBatchJob
- InvoiceRunBatchJob
- LifeSciProviderActivityGoalSharingBatchJob
- LoyaltyProgramProcess
- NetUnitRateCalculation
- NextGenCommitmentBatchProcessingJob
- ManagerProvisioning
- PbbToOptyConversion
- ProductCatalogCacheRefresh
- PromotionChannelPropagationBatchJob
- RatableSummaryCreation
- ServiceProcess
- StoreAssortmentPropagationBatchJob
- SummaryCreation
- WorkDotComToHRManagerProvisioning
Represents the source of information whose records must be processed by the Batch Management job.
- Type: string
- Required: Yes
- Description: Required. Criteria defined to filter the records.
- Type: string
- Required: No
- Description: Type of filter criteria that’s used to filter records for processing.
-
Type: DataSourceType (enumeration of type string)
-
Required: No
-
Introduced: API version 64.0
-
Description: Type of data source that’s used to create the batch job definition. Valid values are:
- SingleSobject
- MultiSobject
- File—Available in API version 67.0 and later.
- Type: BatchDataSrcFilterCriteria[]
- Required: No
- Description: Filter criterion that decides which records must be processed by the Batch Management job.
- Type: BatchDataSourceOrderField[]
- Required: No
- Description: Fields that are used to order the records before the records are added to a batch in a job.
- Type: string
- Required: No
-
Type: string
-
Required: Yes
-
Description: Required. API name of an object whose records must be processed by the batch job.
If the batch job type is Loyalty Program Process, the source object must be:
- TransactionJournal if the batch job is used to process transaction journals by applying the applicable loyalty program process.
- An object that stores the details of loyalty program members whose tier must be assessed by the loyalty program process specified in the executionProcessApiName field.
- Type: string
- Required: No
- Introduced: API version 57.0
- Description: API name of the source object field that uniquely identifies records for which the batch job is executed. This field is only applicable when the batch job’s type is Loyalty Program Process and a TierProcess type active loyalty program process is specified in the
executionProcessApiNamefield. Specify the API name of a field that is a lookup to the LoyaltyProgramMember object and uniquely identifies the members whose tier must be assessed.
Represents the fields that are used to group data.
- Type: string
- Required: Yes
- Introduced: API version 64.0
- Description: Required. Name of the object the field is associated with.
- Type: string
- Required: Yes
- Introduced: API version 64.0
- Description: Required. Name of the field that must be used to filter records.
- Type: string
- Required: Yes
- Introduced: API version 64.0
- Description: Required. Stores the path to a field in the object.
Represents the filter conditions that decide which records must be processed by the Batch Management job.
- Type: string
- Required: No
- Introduced: API version 64.0
- Description: Name of the object the field is associated with.
- Type: boolean
- Required: Yes
- Description: Required. Indicates whether the filter criteria is dynamic.
- Type: string
- Required: No
- Description: Data type of the input variable used as a filter.
- Type: string
- Required: Yes
- Description: Required. Name of the field that must be used to filter records.
- Type: string
- Required: No
- Introduced: API version 64.0
- Description: Stores the path to a field in the object.
- Type: string
- Required: Yes
- Description: Required. Value of the field that must be filtered. Specify the field if
dynamicValueis set tofalse.
- Type: string (enumeration of type string)
- Required: Yes
- Description: Required. Operator that is specified in the filter criteria.
- Possible values:
- equals
- excludes
- greaterThan
- greaterThanOrEqualTo
- in
- includes
- lessThan
- LessThanOrEqualTo
- GreaterOrEqual
- like
- notEquals
- notIn
- Type: int
- Required: Yes
- Description: Required. Sequence number used to refer the criteria in a filter.
The following is an example of a BatchProcessJobDefinition component.
The following is an example of a Flow object used in Metadata API.
The following is an example package.xml that references the previous definition.
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.