SiteDefinitionsLocalizationServicesSaveWorkflowDefinition Method
|
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: 10.3.169
Syntax public XHRServiceResponseGeneric<LocalizationSaveResult> SaveWorkflowDefinition(
WorkflowDefinitionLocalizationSaveInput data
)
Public Function SaveWorkflowDefinition (
data As WorkflowDefinitionLocalizationSaveInput
) As XHRServiceResponseGeneric(Of LocalizationSaveResult)
public:
virtual XHRServiceResponseGeneric<LocalizationSaveResult^>^ SaveWorkflowDefinition(
WorkflowDefinitionLocalizationSaveInput^ data
) sealed
abstract SaveWorkflowDefinition :
data : WorkflowDefinitionLocalizationSaveInput -> XHRServiceResponseGeneric<LocalizationSaveResult>
override SaveWorkflowDefinition :
data : WorkflowDefinitionLocalizationSaveInput -> XHRServiceResponseGeneric<LocalizationSaveResult>
Parameters
- data
- Type: WorkflowDefinitionLocalizationSaveInput
The localization of Workflow Definition's name, description and all the transitions
Examples
Sample JSON input
{
"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:
XHRServiceResponseGenericLocalizationSaveResultObject containing the localized name for the Workflow Definition
Examples
Sample JSON return
{
"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