I've been testing an inbound upload processor and I want to avoid overwriting manually entered information. Specifically lifecycle fields. My problem is that... it keeps replacing the value
Any help would be helpful, I think the problem is the validation before writing, I have not found another method to verify if there is information in the record before writing
{
"processors":
{
"processorType": "inboundFactSheet",
"processorName": "load capability",
"processorDescription": "just a POC to load capability",
"type": "BusinessCapability",
"filter": {
"exactType": "BusinessCapability"
},
"identifier": {
"external": {
"id": {
"expr": "${data.externalId}"
},
"type": {
"expr": "externalId"
}
}
},
"run": 0,
"updates":
{
"key": {
"expr": "lifecycle.active"
},
"values":
{
"expr": "${lx.factsheet.lifecycle.active == null ? data.active : lx.factsheet.lifecycle.active }"
}
],
"optional": true
}
]
}
this is the payload i’m using:
{
"connectorType": "integracion OSB - Inbound",
"connectorId": "inbound_osb",
"connectorVersion": "0.0.1",
"lxVersion": "1.0.0",
"processingDirection": "inbound",
"processingMode": "partial",
"description": "Integración entre Capacidades y workspaces",
"content": t
{
"type": "BusinessCapability",
"id": "33a6e4d1-65e9-4c55-bd95-d41572388ec8",
"data": {
"name": "Enterprise Architecture",
"externalId": "ENARCH",
"active": "2021-01-01"
}
]
}