Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SITO] File format for situation objects - New #380

Merged
merged 17 commits into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions file-formats/sito/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SITO File Format

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.sito.json` | 1 | [`zif_aff_sito_v1.intf.abap`](./type/zif_aff_sito_v1.intf.abap) | [`sito-v1.json`](./sito-v1.json) | [`zmo_sito_test.sito.json`](./examples/zmo_sito_test.sito.json)
264 changes: 264 additions & 0 deletions file-formats/sito/examples/zmo_sito_test.sito.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,264 @@
{
"formatVersion": "1",
"header": {
"description": "Flight (Demo Object)",
"originalLanguage": "en"
},
"situationObject": {
"reusable": false,
"scope": "SAP",
"sapObjectType": "BusinessSituationDemoFlight",
"extensible": false,
"text": {
"name": "Flight (Demo Object)",
"description": "The flight object is used in the demo scenario Flight Profitability (SITDEMO_FLIGHT_PROFITABILITY)."
},
"structures": [
{
"id": "SITDEMO_CDS_FLIGHT",
"name": "I_SITN2DEMOFLIGHT",
"type": "CDS",
"reusable": false,
"scope": "SAP",
"sapObjectNodeType": "BusinessSituationDemoFlight",
"text": {
"description": "CDS view of flight (demo object)"
},
"semanticKeys": [
{
"field": "SITNDEMOCONNECTIONID",
"fieldOrder": "02"
},
{
"field": "SITNDEMOFLIGHTDATE",
"fieldOrder": "03"
},
{
"field": "SITNDEMOCARRIERID",
"fieldOrder": "01"
}
],
"valueHelpMappings": [
{
"fieldName": "SITNDEMOCARRIERID",
"appType": "allApps",
"type": "service",
"scope": "SAP"
},
{
"fieldName": "SITNDEMOPLANETYPE",
"appType": "allApps",
"type": "service",
"scope": "SAP"
},
{
"fieldName": "SITNDEMOCARRIERREGION",
"appType": "allApps",
"type": "service",
"scope": "SAP"
},
{
"fieldName": "SITNDEMOCONNECTIONID",
"appType": "allApps",
"type": "service",
"scope": "SAP"
}
],
"services": [
{
"id": "SITDEMO_VH",
"fieldName": "SITNDEMOCARRIERID",
"type": "allApps",
"entitySet": "C_Sitn2DemoFlightVH",
"property": "SitnDemoCarrierID"
},
{
"id": "SITDEMO_VH",
"fieldName": "SITNDEMOPLANETYPE",
"type": "allApps",
"entitySet": "C_Sitn2DemoFlightVH",
"property": "SitnDemoPlaneType"
},
{
"id": "SITDEMO_VH",
"fieldName": "SITNDEMOCARRIERREGION",
"type": "allApps",
"entitySet": "C_Sitn2DemoFlightVH",
"property": "SitnDemoRegionCode"
},
{
"id": "SITDEMO_VH",
"fieldName": "SITNDEMOCONNECTIONID",
"type": "allApps",
"entitySet": "C_Sitn2DemoFlightVH",
"property": "SitnDemoConnectionID"
}
]
}
],
"endUserActions": [
{
"id": "SITDEMO_ACT_CANCEL_FLIGHT",
"type": "callbackAction",
"reusable": false,
"scope": "SAP",
"text": {
"name": "Cancel Flight",
"description": "Set flight status to unscheduled"
},
"callbacks": [
{
"id": "SITDEMO_CB_CANCEL_FLIGHT"
}
]
},
{
"id": "SITDEMO_ACT_CHANGE_PLANE",
"type": "callbackAction",
"reusable": false,
"scope": "SAP",
"text": {
"name": "Change Plane",
"description": "Assign another plane to the flight"
},
"callbacks": [
{
"id": "SITDEMO_CB_CHANGE_PLANE"
}
]
},
{
"id": "SITDEMO_ACT_MANAGE_AIRLINE",
"type": "navigationAction",
"reusable": false,
"scope": "SAP",
"text": {
"name": "Display Airline",
"description": "Show contact details"
},
"navigations": [
{
"id": "SITDEMO_NAV_MANAGE_AIRLINE"
}
]
},
{
"id": "SITDEMO_ACT_MANAGE_FLIGHT",
"type": "navigationAction",
"reusable": false,
"scope": "SAP",
"text": {
"name": "Manage Flight",
"description": "Maintain bookings and flight details"
},
"navigations": [
{
"id": "SITDEMO_NAV_MANAGE_FLIGHT"
}
]
}
],
"navigations": [
{
"id": "SITDEMO_NAV_MANAGE_FLIGHT",
"reusable": false,
"scope": "SAP",
"semanticObject": "SituationDemoFlight",
"semanticObjectAction": "maintain",
"parameters": [
{
"name": "SitnDemoCarrierID"
},
{
"name": "SitnDemoConnectionID"
},
{
"name": "SitnDemoFlightDate"
}
]
},
{
"id": "SITDEMO_NAV_MANAGE_AIRLINE",
"reusable": false,
"scope": "SAP",
"semanticObject": "SituationDemoFlight",
"semanticObjectAction": "maintain",
"parameters": [
{
"name": "SitnDemoCarrierID"
}
]
}
],
"callbacks": [
{
"id": "SITDEMO_CB_CHANGE_PLANE",
"reusable": false,
"scope": "SAP",
"className": "CL_SIT2_DEMO_CB_CHANGE_PLANE",
"parameters": [
{
"name": "CARRID"
},
{
"name": "PLANETYPE"
},
{
"name": "CONNID"
},
{
"name": "FLDATE"
}
]
},
{
"id": "SITDEMO_CB_CANCEL_FLIGHT",
"reusable": false,
"scope": "SAP",
"className": "CL_SIT2_DEMO_CB_CANCEL_FLIGHT",
"parameters": [
{
"name": "CARRID"
},
{
"name": "CONNID"
},
{
"name": "FLDATE"
}
]
}
],
"valueHelpServices": [
{
"id": "SITDEMO_VH",
"reusable": false,
"scope": "SAP",
"protocolVersion": "V2",
"pathType": "standard",
"customPath": "",
"binding": "C_SITN2DEMOFLIGHTVH_CDS",
"definition": "",
"version": "0001",
"valueHelpServiceProviders": [
{
"entitySet": "C_Sitn2DemoFlightVH",
"property": "SitnDemoCarrierID"
},
{
"entitySet": "C_Sitn2DemoFlightVH",
"property": "SitnDemoConnectionID"
},
{
"entitySet": "C_Sitn2DemoFlightVH",
"property": "SitnDemoPlaneType"
},
{
"entitySet": "C_Sitn2DemoFlightVH",
"property": "SitnDemoRegionCode"
}
]
}
]
}
}
Loading