[英]Passing values from parent pipeline to child pipeline in Azure Data Factory
好了,我終於有了這個工作:
我從父管道中完全刪除了該參數。 在子管道(稱為HubMaster)中,我們創建一個稱為MasterBatchId的參數:
在父管道中,我創建了一個名為EP_HubMaster的執行管道節點,該節點調用了一個稱為HubMaster的子管道。 為了在運行時填充子管道參數MasterBatchId,我們需要編輯父管道的JSON,如下所示:
{
"name": "TestParent",
"properties": {
"activities": [
{
"name": "EP_HubMaster",
"type": "ExecutePipeline",
"typeProperties": {
"pipeline": {
"referenceName": "HubMaster",
"type": "PipelineReference"
},
"parameters": {
"MasterBatchId": {
"value": "@pipeline().RunId",
"type": "Expression"
}
}
}
}
],
"folder": {
"name": "Master"
}
},
"type": "Microsoft.DataFactory/factories/pipelines"
}
您可以看到我們將@pipeline().RunId
從父級(原始意圖)傳遞給子級管道中MasterBatchId
的輸入參數。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.