Toggle menu

Creating Custom Task Workflows

Copy the Boilerplate End Points

The boilerplate form calls a set of end points, which should be copied and renamed to match your new task.

First create a new end point group at goss.CaseManagement.v1.tasks.<taskTypeId>. This taskTypeId will be entered into your workflow model as the the taskId set in the first script task (see the later section).

Find the end points at goss.CaseManagement.v1.tasks.boilerplate.

Boilerplate End Points
 

Copy all of the end points in this group into your new group.

Boilerplate Bulk Copy End Points
 

Update the getTaskConfig

Your copy of the getTaskConfig end point needs to be updated with values relevant to your task:

  • taskType - this must match the taskTypeId above
  • taskName - change this to something meaningful for your task
  • titleConf - these titles will appear in the Self Service template when users are claiming tasks

For example:

var response = {
    success: false,
    taskType: "timboilerplate"
};
try {
    var configVars = {    
        "taskConf": {
            "taskName": {
                "en": "Tim's Boilerplate Task",
                "cy": "Tasg Enghraifft"
            }
        },
        "titleConf": {
            "timboilerplate": {
                "en": "{{caseTaskSummary}}",
                "cy": "{{caseTaskSummary}}",
            }
        },
        "formConf": {
            "maxFileCountCitizen": 3,
            "maxFileCountStaff": 10,
            "maxFileSizeCitizen": 3000000,
            "maxFileSizeStaff": 5000000,
            "maxFileTextCitizen": "3MB",
            "maxFileTextStaff": "5MB"
        }
    };
    response.vars = configVars;
    response.success = true;
}

Last modified on April 30, 2024

Share this page

Facebook icon Twitter icon email icon

Print

print icon