Test the conversion from React Flow JSON structure to mxGraph XML format
{
"nodes": [
{
"id": "start-1",
"type": "event",
"position": {
"x": 100,
"y": 100
},
"data": {
"label": "Start Process",
"description": "Process initiation"
}
},
{
"id": "task-1",
"type": "processTask",
"position": {
"x": 300,
"y": 100
},
"data": {
"label": "Process Task",
"description": "Main processing step"
}
},
{
"id": "end-1",
"type": "event",
"position": {
"x": 500,
"y": 100
},
"data": {
"label": "End Process",
"description": "Process completion"
}
}
],
"edges": [
{
"id": "e1-2",
"source": "start-1",
"target": "task-1",
"type": "default",
"data": {}
},
{
"id": "e2-3",
"source": "task-1",
"target": "end-1",
"type": "default",
"data": {}
}
]
}