open id 

HomeDatastructures

Help with Datastructure Issues

Case Entity: Get List of All Possible States Messages in this topic - RSS

will.brozovic
will.brozovic
Posts: 10


12/20/2022
will.brozovic
will.brozovic
Posts: 10
Hey Team,

I am building a project that requires me to get a list of all possible States for a given case entity. I am aware of the GetStatesByExtentionFolderId API endpoint called by the Decisions client. This endpoint does the job, however, it requires an extensionFolderId (I think this is usually the GUID for an entity's configuration folder) parameter and I have been unable to find a way to get this programmatically.

Can someone either:
a. Help me find a way to programmatically obtain a Case Entity's extensionFolderId given a case
or
b. Help me find another source that can pull a list of a Case Entity's possible states.

Any help is appreciated! I pasted some JSON below to help give some more context.

-Will

GetStatesByExtensionFolderId POST payload:

{
"user": {
"__type": "SessionUserContext:#DecisionsFramework.ServiceLayer.Utilities",
"SessionValue": "session_value_guid",
"ClientEventSessionId": "guid",
"DisplayType": "2",
"StudioPortal": true,
"BrowserUserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
},
"extensionFolderId": "08dad6f7-3ba9-4399-e16f-130a4405cc26" //This is the ID that I do not know how to obtain. When I paste this in our environment's search bar, it shows the Case Entity's configuration folder as the result.
}


Response:

[
{
"__type": "ExpectedFolderStateDto:#DecisionsFramework.Design.DataStructure.CaseEditor",
"Id": "08dad6f7-3c59-a567-e16f-130a4405cc5e",
"StateName": "Started",
"Order": 1,
"Color": {
"__type": "DesignerColor:#Decisions.Silverlight.UI.Utilities",
"Opacity": 1,
"ColorName": "#00b800",
"ThemeBrushKey": null,
"GradientDirection": 0,
"GradientDefinition": null,
"Type": 0
},
"OrmTypeName": "DecisionsFramework.ServiceLayer.Services.Folder.ExpectedFolderState",
"HasColor": false,
"EntityFolderID": "08dad6f7-3ba9-4399-e16f-130a4405cc26",
"Steps": [
{
"__type": "StateStepDto:#DecisionsFramework.Design.DataStructure.CaseEditor",
"Id": "08dae2d1-dc9d-6b13-e16f-131750056610",
"Name": "User Action Flow 1",
"Order": -1,
"FlowBehaviorType": "DecisionsFramework.Design.EntityActions.EntityActionFlowBehavior",
"OrmTypeName": "DecisionsFramework.ServiceLayer.Services.ConfigurationStorage.ElementRegistration",
"EntityFolderID": "08dad6f7-3ba9-4399-e16f-130a4405cc26",
"StateName": "Started"
},
{
"__type": "StateStepDto:#DecisionsFramework.Design.DataStructure.CaseEditor",
"Id": "08dad703-795d-31ff-e16f-130a4405e5f3",
"Name": "RyanSSWMDemo_View CODE Assignment Details Action Flow",
"Order": -1,
"FlowBehaviorType": "DecisionsFramework.Design.EntityActions.EntityActionFlowBehavior",
"OrmTypeName": "DecisionsFramework.ServiceLayer.Services.ConfigurationStorage.ElementRegistration",
"EntityFolderID": "08dad6f7-3ba9-4399-e16f-130a4405cc26",
"StateName": "Started"
},
{
"__type": "StateStepDto:#DecisionsFramework.Design.DataStructure.CaseEditor",
"Id": "08dad7d9-4bd9-ae94-e16f-130a4406ca90",
"Name": "RyanSSWMDemo_Assign Code Action Flow",
"Order": -1,
"FlowBehaviorType": "DecisionsFramework.Design.EntityActions.EntityActionFlowBehavior",
"OrmTypeName": "DecisionsFramework.ServiceLayer.Services.ConfigurationStorage.ElementRegistration",
"EntityFolderID": "08dad6f7-3ba9-4399-e16f-130a4405cc26",
"StateName": "Started"
}
]
},
{
"__type": "ExpectedFolderStateDto:#DecisionsFramework.Design.DataStructure.CaseEditor",
"Id": "08dad6f7-3c64-b38d-e16f-130a4405cc61",
"StateName": "Completed",
"Order": 2,
"Color": {
"__type": "DesignerColor:#Decisions.Silverlight.UI.Utilities",
"Opacity": 1,
"ColorName": "#1a7dff",
"ThemeBrushKey": null,
"GradientDirection": 0,
"GradientDefinition": null,
"Type": 0
},
"OrmTypeName": "DecisionsFramework.ServiceLayer.Services.Folder.ExpectedFolderState",
"HasColor": false,
"EntityFolderID": "08dad6f7-3ba9-4399-e16f-130a4405cc26",
"Steps": [
{
"__type": "StateStepDto:#DecisionsFramework.Design.DataStructure.CaseEditor",
"Id": "08dae2d1-dc9d-6b13-e16f-131750056610",
"Name": "User Action Flow 1",
"Order": -1,
"FlowBehaviorType": "DecisionsFramework.Design.EntityActions.EntityActionFlowBehavior",
"OrmTypeName": "DecisionsFramework.ServiceLayer.Services.ConfigurationStorage.ElementRegistration",
"EntityFolderID": "08dad6f7-3ba9-4399-e16f-130a4405cc26",
"StateName": "Completed"
},
{
"__type": "StateStepDto:#DecisionsFramework.Design.DataStructure.CaseEditor",
"Id": "08dad703-795d-31ff-e16f-130a4405e5f3",
"Name": "RyanSSWMDemo_View CODE Assignment Details Action Flow",
"Order": -1,
"FlowBehaviorType": "DecisionsFramework.Design.EntityActions.EntityActionFlowBehavior",
"OrmTypeName": "DecisionsFramework.ServiceLayer.Services.ConfigurationStorage.ElementRegistration",
"EntityFolderID": "08dad6f7-3ba9-4399-e16f-130a4405cc26",
"StateName": "Completed"
},
{
"__type": "StateStepDto:#DecisionsFramework.Design.DataStructure.CaseEditor",
"Id": "08dad7d9-4bd9-ae94-e16f-130a4406ca90",
"Name": "RyanSSWMDemo_Assign Code Action Flow",
"Order": -1,
"FlowBehaviorType": "DecisionsFramework.Design.EntityActions.EntityActionFlowBehavior",
"OrmTypeName": "DecisionsFramework.ServiceLayer.Services.ConfigurationStorage.ElementRegistration",
"EntityFolderID": "08dad6f7-3ba9-4399-e16f-130a4405cc26",
"StateName": "Completed"
}
]
}
]
0 link
will.brozovic
will.brozovic
Posts: 10


1/3/2023
will.brozovic
will.brozovic
Posts: 10
Does anyone know how to get a list of all possible states for an entity using a flow?
0 link






Powered by Jitbit Forum 8.3.8.0 © 2006-2013 Jitbit Software