Configure a script-based service for ordering (Administrator)

<< Display table of contents >>

Navigation:  Start > Release Notes > 9.0 > Role & Process Optimization >

Configure a script-based service for ordering (Administrator)

Script-based services are available in the GrantMA Portal via Open (Order) templates.

 

How to integrate Open Order templates into 8MAN is described in the manual "Customizing Templates". New from 8MAN Release 9 is calling a script.

 

Example

[

    {

        "Version": 1,

        "TemplateType": "OpenTemplate",

        "Id": "0E74ACA2-32A5-462C-A3A0-749A81D0B52A",

        "DisplayName": "Create project folder structure",

        "Description": "A form to run a script that creates all the necessary folders for a new project.",

         "IsManualInteractionRequired": false,

         "ScriptToExecute": "createProjectFolders",

        "Form": {

          "Type": "Container",

          "Label": "Project information",        

          "Templates": [

            { "Key": "ProjectName", "Value": {

                "Type": "TextField",

                "Label": "Project name",

                         "IsRequired": true,

                         "Constraints": {

                                 "MaxLength": 248,

                                 "ForbiddenChars": [

                    "\"",

                    "\\",

                    "/",

                    ":",

                    "|",

                    "<",

                    ">",

                    "*",

                    "?"

                                 ]

                           }

                }

            },

            { "Key": "Department", "Value": {

                "Type": "DropDownList", 

                "Label": "Department",

                         "IsRequired": true,

                 "Items": [

                    {

                    "Value":"finance",

                    "DisplayValue": "Finance"

                    },                 

                    {

                    "Value": "cLevel",

                    "DisplayValue": "C-Level"

                    },

                    {

                    "Value": "it",

                    "DisplayValue": "IT"

                    },

                    {

                    "Value": "marketing",

                    "DisplayValue": "Marketing"

                    },

                    {

                    "Value": "hr",

                    "DisplayValue": "HR"

                    },

                    {

                    "Value": "sales",

                    "DisplayValue": "Sales"

                    }

                ],

                "DefaultValue": ""

               }

            },

            { "Key": "TargetPath", "Value": {

                "Type": "TextField",

                "Label": "Target Path",

                         "IsHidden": true,

                         "DefaultValue": "d:"

                }

            },

            { "Key": "Folders", "Value": {

                "Type": "TextField",

                "Label": "Project folders",

                         "IsHidden": true,

                         "DefaultValue": "HR,Documents,Tables,Requirements,Invoices,ToDo"

                }

            }

          ]

        }       

    }

]

 

The scripts must be provided in the 8MAN configuration. This is analogous to the scripts that are executed after changes in 8MAN.

 

EN Skriptbasierte Services bestellbar machen

 

As of version 9, scripts can be called not only for changes, but also for alerts or in open order templates. Therefore, the menu item "Scripting" is now directly on the start page of the 8MAN configuration (and no longer under Change configuration).


 

 

EN Skriptbasierte Services bestellbar machen 02

 

The script configuration is divided into 3 tabs: "Change Actions", "Alerts", and "Order Templates".