protected override void CollectValues(out IDictionary<XName, object> readWriteValues,
out IDictionary<XName, object> writeOnlyValues)
{
// Sashen: 05-07-2012
// These methods are used on completion of any workflow application instance
// The Data Transfer object will need to be serialized to the persistence store
// as we require the dataTransfer object once the workflow resumes as there may be parent workflows to bring out
// of perstistence, so...
// We serialize the DataTransfer object into the persistance store XAML
readWriteValues = new Dictionary<XName, object>();
foreach (PropertyInfo pi in typeof (IDSFDataObject).GetProperties())
{
readWriteValues.Add(_dSfDataObjectNs.GetName(pi.Name).LocalName, pi.GetValue(this, null));
}
writeOnlyValues = null;
}