public static ProcessMessage BuildProcessMsgByFC(string source, string destination, string processID, string processType, string activityUFOID, FieldCollection fieldCollection) { var processMessage = new ProcessMessage { GUID = Guid.NewGuid().ToString(), Priority = 5, Source = source, Destination = destination, ProcessID = processID, ProcessType = processType, ActivityContractString = activityUFOID }; var wdo = new WAPDataObject { fieldCollection }; processMessage.DataObject = wdo; processMessage.Status = eProcessMsgStatus.Created; return processMessage; }
public static ProcessMessage BuildProcessMsg(int priority, string source, string destination, string activityUFOID, string processID, string processType, WAPDataObject dataObject) { var processMessage = new ProcessMessage { GUID = Guid.NewGuid().ToString(), Priority = priority, Source = source, Destination = destination, ProcessID = processID, ProcessType = processType, ActivityContractString = activityUFOID, DataObject = dataObject, Status = eProcessMsgStatus.Created }; return processMessage; }