Skip to content

Functionality Proposal #53

@ElanHasson

Description

@ElanHasson

Below is what is written to the mongo storage provider for grain state.

Is there a way to get at this information?

if not, are you open to a PR that does that, and also adds status information to the activity values

{ 
    "_id" : "GrainReference=422d0a3a946dfeb1a396449587bd519403ffffffc58d5186", 
    "_etag" : "c35f06df-184c-4aa4-80eb-c2ea78491a63", 
    "_doc" : {
        "__id" : "38", 
        "__type" : "Orleans.Sagas.SagaState, Orleans.Sagas", 
        "Activities" : {
            "__type" : "System.Collections.Generic.List`1[[Orleans.Sagas.ActivityDefinition, Orleans.Sagas]], System.Private.CoreLib", 
            "__values" : [
                {
                    "__id" : "39", 
                    "__type" : "Orleans.Sagas.ActivityDefinition, Orleans.Sagas", 
                    "Type" : "KitchenSink.Shared.Application.AddClientActivity, KitchenSink.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", 
                    "Properties" : {
                        "__id" : "40", 
                        "__type" : "Orleans.Sagas.SagaPropertyBag, Orleans.Sagas", 
                        "ContextProperties" : {
                            "__type" : "System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib],[System.String, System.Private.CoreLib]], System.Private.CoreLib", 
                            "ClientName" : "{\"Name\":\"elsgwsa,lma[pn\"}"
                        }
                    }
                }, 
                {
                    "__id" : "41", 
                    "__type" : "Orleans.Sagas.ActivityDefinition, Orleans.Sagas", 
                    "Type" : "KitchenSink.Shared.Application.SetLegalNameActivity, KitchenSink.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", 
                    "Properties" : {
                        "__id" : "42", 
                        "__type" : "Orleans.Sagas.SagaPropertyBag, Orleans.Sagas", 
                        "ContextProperties" : {
                            "__type" : "System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib],[System.String, System.Private.CoreLib]], System.Private.CoreLib", 
                            "LegalName" : "{\"Value\":\"Google, I;nc.\"}", 
                            "ClientName" : "{\"Name\":\"elsgwsa,lma[pn\"}"
                        }
                    }
                }
            ]
        }, 
        "NumCompletedActivities" : NumberInt(2), 
        "Status" : NumberInt(2), 
        "CompensationIndex" : NumberInt(0), 
        "HasBeenAborted" : false, 
        "Properties" : {
            "__id" : "43", 
            "__type" : "System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib],[System.String, System.Private.CoreLib]], System.Private.CoreLib", 
            "AddClientActivity-Result" : "{\"Status\":4}", 
            "SetLegalNameActivityResult" : "{\"Events\":[],\"Status\":2}"
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions