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

[SAJC]: Add Parameters, Groups, Sections #538

Merged
merged 5 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
102 changes: 97 additions & 5 deletions file-formats/sajc/examples/z_aff_example_sajc.sajc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,107 @@
{
"formatVersion": "1",
"header": {
"description": "Example for CL_APJ_SIMPLE",
"description": "Catalog Entry of CL_APJ_DEMO_REPORT",
"originalLanguage": "en"
},
"generalInformation": {
"className": "CL_APJ_SIMPLE"
"className": "CL_APJ_DEMO_REPORT"
},
"exitClasses": {
"check": "CL_CHECK_APJ_SIMPLE",
"check": "CL_APJ_HOME_DEMO_CHECK",
"valueHelp": "CL_VALUE_HELP_APJ_SIMPLE",
"notification": "CL_APJ_HOME_DEMO_CHECK"
}
"notification": "CL_APJ_HOME_DEMO_CHECK",
"delete": "CL_APJT_RT_JOB_DELETE_EXIT"
},
"sections": [
{
"name": "1",
"title": "Customer Section"
},
{
"name": "2",
"title": "General Section"
}
],
"groups": [
{
"name": "GRP_BUYER",
"title": "Buyer",
"section": "1"
},
{
"name": "GRP_SELLER",
"title": "Seller",
"section": "1"
},
{
"name": "GRP_GEN",
"title": "General",
"section": "2"
}
],
"parameters": [
{
"name": "P_BUY_C",
"group": "GRP_BUYER"
},
{
"name": "S_PLANT",
"group": "GRP_BUYER",
"indented": true,
"enabledByParameter": "P_BUY_C"
},
{
"name": "P_BUY_D",
"group": "GRP_BUYER",
"indented": true,
"mandatory": true,
"enabledByParameter": "P_BUY_C"
},
{
"name": "P_SEL_C",
"group": "GRP_SELLER"
},
{
"name": "P_INCR",
"group": "GRP_SELLER",
"indented": true,
"enabledByParameter": "P_SEL_C",
"backendCall": true
},
{
"name": "P_SEV_N",
"group": "GRP_GEN"
},
{
"name": "P_SEV_S",
"group": "GRP_GEN"
},
{
"name": "P_SEV_I",
"group": "GRP_GEN"
},
{
"name": "P_SEV_E",
"group": "GRP_GEN"
},
{
"name": "P_SEV_A",
"group": "GRP_GEN"
},
{
"name": "P_TEXT",
"group": "GRP_GEN",
"mandatory": true,
"textEditorLines": 4
},
{
"name": "P_JOB_T",
"group": "GRP_GEN"
},
{
"name": "P_SEV_IN",
"hidden": true
}
]
}
141 changes: 141 additions & 0 deletions file-formats/sajc/sajc-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,150 @@
"description": "Name of the class which contains the notification exit",
"type": "string",
"maxLength": 30
},
"delete": {
"title": "Delete",
"description": "Name of the class which contains the delete exit",
"type": "string",
"maxLength": 30
}
},
"additionalProperties": false
},
"sections": {
"title": "Sections",
"description": "List of sections",
"type": "array",
"items": {
"title": "Section",
"description": "Section of parameter groups on the selection screen",
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Name of the section",
"type": "string",
"maxLength": 10
},
"title": {
"title": "Title",
"description": "Title of the section on the selection screen",
"type": "string",
"maxLength": 120
}
},
"additionalProperties": false,
"required": [
"name",
"title"
]
}
},
"groups": {
"title": "Groups",
"description": "List of groups",
"type": "array",
"items": {
"title": "Group",
"description": "Group of parameters on the selection screen",
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Name of the group",
"type": "string",
"maxLength": 10
},
"title": {
"title": "Title",
"description": "Title of the group on the selection screen",
"type": "string",
"maxLength": 120
},
"section": {
"title": "Section",
"description": "Name of the group section",
"type": "string",
"maxLength": 10
}
},
"additionalProperties": false,
"required": [
"name",
"title"
]
}
},
"parameters": {
"title": "Parameters",
"description": "List of parameters",
"type": "array",
"items": {
"title": "Parameter",
"description": "Parameter of the class which is executed within the job",
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Name of the parameter",
"type": "string",
"maxLength": 38
},
"group": {
"title": "Group",
"description": "Name of the parameter group",
"type": "string",
"maxLength": 10
},
"indented": {
"title": "Indented",
"description": "Flag indicating whether the parameter is indented on the selection screen",
"type": "boolean"
},
"mandatory": {
"title": "Mandatory",
"description": "Flag indicating whether the parameter is mandatory",
"type": "boolean"
},
"hidden": {
"title": "Hidden",
"description": "Flag indicating whether the parameter is hidden",
"type": "boolean"
},
"readOnly": {
"title": "Read Only",
"description": "Flag indicating whether the parameter is read only",
"type": "boolean"
},
"enabledByParameter": {
"title": "Enabled By Parameter",
"description": "Name of the boolean parameter which enables / disables the current parameter",
"type": "string",
"maxLength": 38
},
"backendCall": {
"title": "Backend Call",
"description": "Flag indicating whether a call of the backend system is triggered after a parameter value change to check it",
"type": "boolean"
},
"singleValues": {
"title": "Only Single Values",
"description": "Flag indicating whether only single values are allowed (no conditions like 'not equal' or 'between')",
"type": "boolean"
},
"textEditorLines": {
"title": "Text Lines in Editor",
"description": "Number of lines of the text editor (0 means no multiline editor)",
"type": "integer",
"minimum": 0,
"maximum": 20
}
},
"additionalProperties": false,
"required": [
"name"
]
}
}
},
"additionalProperties": false,
Expand Down
Loading