WorkflowServicesDeleteWorkstate Method
|
Deletes a collection of Workstates. Opertaion will not stop when encount errors on individual Workstate deletion.
Instead of the problematic Workstate Ids and the actual errors will be records and returned
Namespace:
IngeniuxCMService
Assembly:
IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax public XHRServiceResponseGeneric<DeleteWorkStateOutput> DeleteWorkstate(
DeleteWorkstateInput data
)
Public Function DeleteWorkstate (
data As DeleteWorkstateInput
) As XHRServiceResponseGeneric(Of DeleteWorkStateOutput)
public:
virtual XHRServiceResponseGeneric<DeleteWorkStateOutput^>^ DeleteWorkstate(
DeleteWorkstateInput^ data
) sealed
abstract DeleteWorkstate :
data : DeleteWorkstateInput -> XHRServiceResponseGeneric<DeleteWorkStateOutput>
override DeleteWorkstate :
data : DeleteWorkstateInput -> XHRServiceResponseGeneric<DeleteWorkStateOutput>
Parameters
- data
- Type: DeleteWorkstateInput
Object containing array of Id of Workstates to be deleted
Examples
Sample JSON input
{
"data": {
"ids": "WorkStates/67, WorkStates/38, WorkStates/12"
}
}
Return Value
Type:
XHRServiceResponseGenericDeleteWorkStateOutputObject containing the Id of the Workstates that has been removed, also Id and error of the Workstates that could not be deleted.
Examples
Sample JSON return
{
"code": 0,
"error": null,
"message": {
"deletedIds": ["WorkStates\/67", "WorkStates\/38"],
"problemIds": [{
"id": "WorkStates\/12",
"error": "Workstate with Id \"WorkStates\/12\" doesn't exist"
}]
}
}
See Also