Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public void SaveDefination(Defination defination) {
     var data = defination.ToJson();
     DefinationStorage.PutText(defination.DefinationId.ToString() + ".json",data);
 }