dnet-applications/libs/dnet-wf-service/src/main/resources/wf_templates/simple_repo_hi.json

234 lines
3.0 KiB
JSON

{
"parameters":[
{
"name":"wfId",
"description":"the workflow to be configured",
"defaultValue": "wf-aggr-dc2oaf"
},
{
"name":"destroyWfId",
"description":"the workflow to remove the configuration",
"defaultValue": "wf-destroy-dc2oaf"
},
{
"name":"dsId",
"description":"the Datasource ID"
},
{
"name":"apiId",
"description":"the Api ID"
},
{
"name":"expectedEoscDatasourceTypes",
"description":"the expected ds types (comma separated)"
},
{
"name":"expectedCompatibilities",
"description":"the expected compatibilities (comma separated)"
}
],
"graph":[
{
"name":"LOAD_DS_INFO",
"type":"loadDatasourceInfo",
"start": true,
"input":[
{
"name":"dsId",
"ref":"dsId"
},
{
"name":"apiId",
"ref":"apiId"
}
],
"output":[
{
"name":"ds",
"env":"ds"
},
{
"name":"api",
"env":"api"
}
],
"arcs":[
{
"to":"VERIFY_DS"
}
]
},
{
"name":"VERIFY_DS",
"type":"verifyDatasource",
"input":[
{
"name":"expectedEoscDatasourceTypes",
"ref":"expectedEoscDatasourceTypes"
},
{
"name":"expectedCompatibilities",
"ref":"expectedCompatibilities"
},
{
"name":"ds",
"env":"ds"
},
{
"name":"api",
"env":"api"
}
],
"output":[
{
"name":"outputStream",
"env":"origStream"
}
],
"arcs":[
{
"to":"CREATE_DC"
},
{
"to":"CREATE_OAF"
}
]
},
{
"name":"CREATE_DC",
"type":"createMdStore",
"input":[
{
"name":"format",
"value":"oai_dc"
},
{
"name":"layout",
"value":"native"
},
{
"name":"interpretation",
"value":"store"
},
{
"name":"ds",
"env":"ds"
},
{
"name":"api",
"env":"api"
}
],
"output":[
{
"name":"mdId",
"env":"mdId_dc"
}
],
"arcs":[
{
"to":"REGISTER_WF_CONF"
}
]
},
{
"name":"CREATE_OAF",
"type":"createMdStore",
"input":[
{
"name":"format",
"value":"OAF"
},
{
"name":"layout",
"value":"cleaned"
},
{
"name":"interpretation",
"value":"store"
},
{
"name":"ds",
"env":"ds"
},
{
"name":"api",
"env":"api"
}
],
"output":[
{
"name":"mdId",
"env":"mdId_oaf"
}
],
"arcs":[
{
"to":"REGISTER_WF_CONF"
}
]
},
{
"name":"REGISTER_WF_CONF",
"type":"registerWfConfiguration",
"join": true,
"input":[
{
"name":"wfId",
"ref":"wfId"
},
{
"name":"destroyWfId",
"ref":"destroyWfId"
},
{
"name":"ds",
"env":"ds"
},
{
"name":"api",
"env":"api"
},
{
"name":"nativeMdStoreId",
"env":"mdId_dc"
},
{
"name":"cleanedMdStoreId",
"env":"mdId_oaf"
}
],
"output":[
{
"name":"wfConfId",
"env":"wfConfId"
}
]
}
]
}