...
Name | Data Type | Required | Description | Comment |
---|---|---|---|---|
name | String | Yes | Category name. | |
collapse | Boolean | No | Do you collapse this category by default? |
sample:
Code Block | ||||
---|---|---|---|---|
| ||||
{
"nodes":{
"extend-activity-id-stop-traffic":{
"category":"aaa"
},
"extend-activity-id-stop-vnf":{
"category":"bbb"
}
},
"categoryData":{
"aaa":{
"name":"aaa",
"collapse":false
},
"bbb":{
"name":"bbb",
"collapse":true
}
}
} |
Data Model
WorkflowInfo
Name | Data Type | Required | Description | Comment |
---|---|---|---|---|
id | String | Yes | Unique UUID of the workflow | |
name | String | Yes | Name of the workflow | |
version | String | No | version of the workflow | |
description | String | No | description of the workflow | |
scene | Enum | Yes | the scene of the workflow designer. Valid value as follow: vnf - open a VNF's workflow service - open a Service's workflow | different scene may has different activities extend. |
data | Object | Yes | The workflow content | for new workflow, the data field maybe empty. |
...
Code Block | ||||
---|---|---|---|---|
| ||||
[
{
"id":"extend-activity-id-stop-traffic",
"name":"Stop Traffic",
"description":"Stop Traffic",
"type":"serviceTask",
"icon":{
"name":"stop-traffic",
"width":56,
"height":56
},
"activity":{
"class":"org.onap.activity.ext.StopTrafficServiceTask",
"inputs":{
"param1":{
"type":"string",
"default":"value1",
"required":true,
"constraints":[
],
"displayName":"aaa",
"show":true
},
"param2":{
"type":"string",
"default":"value2",
"required":false,
"constraints":[
]
}
}
}
}
] |
...