WorkflowServicesCreateWorkstate Method
|
Creates a new Workstate. Workstates are stages within a workflow. A Workstate is available to every Workflow Definition.
Namespace:
IngeniuxCMService
Assembly:
IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax public XHRServiceResponseGeneric<WorkstateSimpleInfo> CreateWorkstate(
WorkstateSimpleInfo data
)
Public Function CreateWorkstate (
data As WorkstateSimpleInfo
) As XHRServiceResponseGeneric(Of WorkstateSimpleInfo)
public:
virtual XHRServiceResponseGeneric<WorkstateSimpleInfo^>^ CreateWorkstate(
WorkstateSimpleInfo^ data
) sealed
abstract CreateWorkstate :
data : WorkstateSimpleInfo -> XHRServiceResponseGeneric<WorkstateSimpleInfo>
override CreateWorkstate :
data : WorkstateSimpleInfo -> XHRServiceResponseGeneric<WorkstateSimpleInfo>
Parameters
- data
- Type: WorkstateSimpleInfo
Information for the new Workstate to be created
Examples
Sample JSON input
{
"data": {
"id": "",
"name": "Translating",
"desc": "Translating content to another language",
"active": true
}
}
Return Value
Type:
XHRServiceResponseGenericWorkstateSimpleInfoInformation of the newly created Workstate.
Remarks If name is null or empty, returns error status.
If there is another Workstate that has the same name, returns error status.
See Also