public override object Deserialize(IDictionary <string, object> dictionary, Type type, JavaScriptSerializer serializer) { WfClientProcess process = (WfClientProcess)base.Deserialize(dictionary, type, serializer); JSONSerializerExecute.FillDeserializedCollection(dictionary.GetValue("activities", (object)null), process.Activities); process.NormalizeActivities(); return(process); }
public void SimpleProcessSortedActivitiesTest() { WfClientProcessDescriptor clientProcessDesp = ProcessDescriptorHelper.CreateClientProcessWithConditionLines(); IWfProcess process = ProcessHelper.CreateProcessInstance(clientProcessDesp); WfClientProcess client = null; WfClientProcessConverter.InstanceWithoutActivityBindings.ServerToClient(process, ref client); client.NormalizeActivities(); WfClientActivityCollection sortedActivities = client.GetSortedActivities(); foreach (WfClientActivity act in sortedActivities) { Console.WriteLine(act.Descriptor.Key); } }