public bool SaveActivity(Defination data) { var proccessId = data.ProcessId; if (proccessId == Guid.Empty) return false; var runtimeId = data.RuntimeId; if (runtimeId == Guid.Empty) return false; var json = data.ToJson(); this.RuntimeStorage.PutText(proccessId.ToString() + "/activities/" + runtimeId.ToString() + ".json",json); return true; }
public void SaveDefination(Defination defination) { var data = defination.ToJson(); DefinationStorage.PutText(defination.DefinationId.ToString() + ".json",data); }