mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-09 00:42:46 +08:00
Rename skill directory and frontmatter name from `explaining-batch-data-transform` to `data-cloud-bdt-expert` per internal PR reviewer feedback. A noun-form name (identifies the skill by what it's about) is clearer than a gerund-form name (describes what it does) for user-facing plugin/skill identity. - skills/explaining-batch-data-transform/ -> skills/data-cloud-bdt-expert/ - SKILL.md frontmatter `name:` updated - tests docstring path updated No behavior change. All 92 tests pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
62 lines
1.9 KiB
JSON
62 lines
1.9 KiB
JSON
{
|
|
"version": "66.0",
|
|
"nodes": {
|
|
"LOAD_ORDERS": {
|
|
"action": "load",
|
|
"sources": [],
|
|
"parameters": {
|
|
"dataset": {"name": "ssot__SalesOrder__dlm", "type": "dataModelObject"},
|
|
"fields": ["ssot__Id__c", "ssot__AccountId__c", "ssot__CreatedDate__c", "ssot__GrandTotalAmount__c"],
|
|
"sampleDetails": {"type": "TopN", "sortBy": []}
|
|
}
|
|
},
|
|
"RANK_ORDERS": {
|
|
"action": "computeRelative",
|
|
"sources": ["LOAD_ORDERS"],
|
|
"parameters": {
|
|
"partitionBy": ["ssot__AccountId__c"],
|
|
"orderBy": [{"fieldName": "ssot__CreatedDate__c", "direction": "ASC"}],
|
|
"expressionType": "SQL",
|
|
"fields": [
|
|
{
|
|
"name": "OrderRank__c",
|
|
"label": "Order Rank",
|
|
"formulaExpression": "row_number()",
|
|
"type": "NUMBER",
|
|
"businessType": "Number",
|
|
"precision": 18,
|
|
"scale": 0,
|
|
"defaultValue": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"AGG_BY_ACCOUNT": {
|
|
"action": "aggregate",
|
|
"sources": ["RANK_ORDERS"],
|
|
"parameters": {
|
|
"groupings": ["ssot__AccountId__c"],
|
|
"aggregations": [
|
|
{"action": "SUM", "name": "TotalAmount__c", "source": "ssot__GrandTotalAmount__c"},
|
|
{"action": "COUNT", "name": "OrderCount__c", "source": "ssot__Id__c"}
|
|
],
|
|
"nodeType": "STANDARD"
|
|
}
|
|
},
|
|
"OUTPUT_SUMMARY": {
|
|
"action": "outputD360",
|
|
"sources": ["AGG_BY_ACCOUNT"],
|
|
"parameters": {
|
|
"name": "Account_Summary__dlm",
|
|
"type": "dataModelObject",
|
|
"writeMode": "OVERWRITE",
|
|
"fieldsMappings": [
|
|
{"sourceField": "ssot__AccountId__c", "targetField": "AccountId__c"},
|
|
{"sourceField": "TotalAmount__c", "targetField": "TotalAmount__c"},
|
|
{"sourceField": "OrderCount__c", "targetField": "OrderCount__c"}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|