WorkflowServicesGetContentItemAdvanceInfo Method

Ingeniux CMS Web Services API

Retrieves workflow advancement information of specific page or asset

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.70
Syntax

public XHRServiceResponseGeneric<ContentItemAdvanceInfo> GetContentItemAdvanceInfo(
	string contentItemId
)

Parameters

contentItemId
Type: SystemString
Id of page or asset

Return Value

Type: XHRServiceResponseGenericContentItemAdvanceInfo

Workflow advancement information

Examples

Sample JSON return

JavaScript
{
    "ContentFreezeEndTime": "",
    "ContentFreezeStartTime": "",
    "code": 0,
    "error": null,
    "message": {
        "states": [
            {
                "name": "Authoring",
                "id": "WorkStates\/39",
                "isCurrent": true,
                "transitions": [
                    {
                        "name": "Send For Apporval",
                        "id": "WorkflowTransition_WorkflowDefinitions\/1_2",
                        "assignToGroupOnly": false,
                        "bridgeToWorkflow": "",
                        "defaultUserId": "",
                        "description": "",
                        "disallowDefaultUserOverride": false,
                        "externalActions": {
                            "first": null,
                            "last": null
                        },
                        "groupId": "UserGroups\/1",
                        "groupName": "Authors",
                        "isDefaultTransition": false,
                        "nextStateId": "WorkStates\/40",
                        "nextStateName": "Approving",
                        "onEnterDisplayTime": 0,
                        "onEnterHideDlgButtons": false,
                        "onEnterPrompt": "",
                        "onExistDisplayTime": 0,
                        "onExistHideDlgButtons": false,
                        "onExistPrompt": "",
                        "toolbarIcon": "",
                        "userNames": [
                            {
                                "Key": "User\/ashley",
                                "Value": "ashley"
                            }
                        ]
                    }
                ]
            },
            {
                "name": "Approving",
                "id": "WorkStates\/40",
                "isCurrent": false,
                "transitions": [
                    {
                        "name": "Send for review",
                        "id": "WorkflowTransition_WorkflowDefinitions\/1_3",
                        "assignToGroupOnly": false,
                        "bridgeToWorkflow": "",
                        "defaultUserId": "",
                        "description": "",
                        "disallowDefaultUserOverride": false,
                        "externalActions": {
                            "first": null,
                            "last": null
                        },
                        "groupId": "UserGroups\/1",
                        "groupName": "Authors",
                        "isDefaultTransition": false,
                        "nextStateId": "WorkStates\/41",
                        "nextStateName": "Reviewing",
                        "onEnterDisplayTime": 0,
                        "onEnterHideDlgButtons": false,
                        "onEnterPrompt": "",
                        "onExistDisplayTime": 0,
                        "onExistHideDlgButtons": false,
                        "onExistPrompt": "",
                        "toolbarIcon": "",
                        "userNames": [
                            {
                                "Key": "User\/ashley",
                                "Value": "ashley"
                            }
                        ]
                    },
                    {
                        "name": "Send back to authors",
                        "id": "WorkflowTransition_WorkflowDefinitions\/1_5",
                        "assignToGroupOnly": false,
                        "bridgeToWorkflow": "",
                        "defaultUserId": "",
                        "description": "",
                        "disallowDefaultUserOverride": false,
                        "externalActions": {
                            "first": null,
                            "last": null
                        },
                        "groupId": "UserGroups\/1",
                        "groupName": "Authors",
                        "isDefaultTransition": false,
                        "nextStateId": "WorkStates\/39",
                        "nextStateName": "Authoring",
                        "onEnterDisplayTime": 0,
                        "onEnterHideDlgButtons": false,
                        "onEnterPrompt": "",
                        "onExistDisplayTime": 0,
                        "onExistHideDlgButtons": false,
                        "onExistPrompt": "",
                        "toolbarIcon": "",
                        "userNames": [
                            {
                                "Key": "User\/ashley",
                                "Value": "ashley"
                            }
                        ]
                    },
                    {
                        "name": "Skip review and send to publish",
                        "id": "WorkflowTransition_WorkflowDefinitions\/1_7",
                        "assignToGroupOnly": false,
                        "bridgeToWorkflow": "",
                        "defaultUserId": "",
                        "description": "",
                        "disallowDefaultUserOverride": false,
                        "externalActions": {
                            "first": null,
                            "last": null
                        },
                        "groupId": "UserGroups\/1",
                        "groupName": "Authors",
                        "isDefaultTransition": false,
                        "nextStateId": "WorkStates\/42",
                        "nextStateName": "Publishing",
                        "onEnterDisplayTime": 0,
                        "onEnterHideDlgButtons": false,
                        "onEnterPrompt": "",
                        "onExistDisplayTime": 0,
                        "onExistHideDlgButtons": false,
                        "onExistPrompt": "",
                        "toolbarIcon": "",
                        "userNames": [
                            {
                                "Key": "User\/ashley",
                                "Value": "ashley"
                            }
                        ]
                    }
                ]
            },
            {
                "name": "Reviewing",
                "id": "WorkStates\/41",
                "isCurrent": false,
                "transitions": [
                    {
                        "name": "Send for publish",
                        "id": "WorkflowTransition_WorkflowDefinitions\/1_4",
                        "assignToGroupOnly": false,
                        "bridgeToWorkflow": "",
                        "defaultUserId": "",
                        "description": "",
                        "disallowDefaultUserOverride": false,
                        "externalActions": {
                            "first": null,
                            "last": null
                        },
                        "groupId": "UserGroups\/1",
                        "groupName": "Authors",
                        "isDefaultTransition": false,
                        "nextStateId": "WorkStates\/42",
                        "nextStateName": "Publishing",
                        "onEnterDisplayTime": 0,
                        "onEnterHideDlgButtons": false,
                        "onEnterPrompt": "",
                        "onExistDisplayTime": 0,
                        "onExistHideDlgButtons": false,
                        "onExistPrompt": "",
                        "toolbarIcon": "",
                        "userNames": [
                            {
                                "Key": "User\/ashley",
                                "Value": "ashley"
                            }
                        ]
                    },
                    {
                        "name": "Send back to approvers",
                        "id": "WorkflowTransition_WorkflowDefinitions\/1_6",
                        "assignToGroupOnly": false,
                        "bridgeToWorkflow": "",
                        "defaultUserId": "",
                        "description": "",
                        "disallowDefaultUserOverride": false,
                        "externalActions": {
                            "first": null,
                            "last": null
                        },
                        "groupId": "UserGroups\/1",
                        "groupName": "Authors",
                        "isDefaultTransition": false,
                        "nextStateId": "WorkStates\/40",
                        "nextStateName": "Approving",
                        "onEnterDisplayTime": 0,
                        "onEnterHideDlgButtons": false,
                        "onEnterPrompt": "",
                        "onExistDisplayTime": 0,
                        "onExistHideDlgButtons": false,
                        "onExistPrompt": "",
                        "toolbarIcon": "",
                        "userNames": [
                            {
                                "Key": "User\/ashley",
                                "Value": "ashley"
                            }
                        ]
                    }
                ]
            },
            {
                "name": "Publishing",
                "id": "WorkStates\/42",
                "isCurrent": false,
                "transitions": [
                    {
                        "name": "Update Content",
                        "id": "WorkflowTransition_WorkflowDefinitions\/1_8",
                        "assignToGroupOnly": false,
                        "bridgeToWorkflow": "",
                        "defaultUserId": "",
                        "description": "",
                        "disallowDefaultUserOverride": false,
                        "externalActions": {
                            "first": null,
                            "last": null
                        },
                        "groupId": "UserGroups\/1",
                        "groupName": "Authors",
                        "isDefaultTransition": false,
                        "nextStateId": "WorkStates\/39",
                        "nextStateName": "Authoring",
                        "onEnterDisplayTime": 0,
                        "onEnterHideDlgButtons": false,
                        "onEnterPrompt": "",
                        "onExistDisplayTime": 0,
                        "onExistHideDlgButtons": false,
                        "onExistPrompt": "",
                        "toolbarIcon": "",
                        "userNames": [
                            {
                                "Key": "User\/ashley",
                                "Value": "ashley"
                            }
                        ]
                    }
                ]
            }
        ]
    }
}
See Also

Reference