SiteDefinitionsLocalizationServicesSaveWorkflowDefinition Method Ingeniux CMS Web Services API

Saves the localization for a single Workflow Definition. If localization didn't exist before for the Definition, a new entry will be created.

Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 9.0.565.0 (9.0.565)
Syntax

public XHRServiceResponseGeneric<LocalizationSaveResult> SaveWorkflowDefinition(
	WorkflowDefinitionLocalizationSaveInput data
)

Parameters

data
Type: WorkflowDefinitionLocalizationSaveInput

The localization of Workflow Definition's name, description and all the transitions

Examples

Sample JSON input
JavaScript
{
    "data": {
        "id": "WorkflowDefinitions/3",
        "name": "Single Step",
        "description": "",
        "Members": [{
            "ID": "WorkflowTransition_WorkflowDefinitions/3_1",
            "Name": "Start up",
            "Description": "Executed after push page into workflow"
        }, {
            "ID": "WorkflowTransition_WorkflowDefinitions/3_2",
            "Name": "Publish",
            "Description": "Publish the page"
        }]
    }
}

Return Value

Type: XHRServiceResponseGenericLocalizationSaveResult

Object containing the localized name for the Workflow Definition

Examples

Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "newName": "Single Step",
        "save": true
    }
}
Remarks

English or English translation is allowed. This allows to change descriptive text only without touching original Workflow Definition

See Also

Reference