// 处理已有流程实例时使用 public FlowAction(EnumFlowActionRequestType requestType, int flowInstanceId, string flowInstanceGuid, string clientRequestGuid, string bizDocumentGuid, string bizDocumentTypeCode, string userMemo, string bizDataPayloadJson, string optionalFlowActionDataJson, int?userId, string userGuid, int?delegateeUserId, string delegateeUserGuid) { this.requestType = requestType; this.userMemo = userMemo; this.bizDataPayloadJson = bizDataPayloadJson; this.optionalFlowActionDataJson = optionalFlowActionDataJson; this.clientRequestGuid = clientRequestGuid; this.bizDocumentGuid = bizDocumentGuid; this.bizDocumentTypeCode = bizDocumentTypeCode; this.flowInstanceId = flowInstanceId; this.flowInstanceGuid = flowInstanceGuid; this.userId = userId; this.userGuid = userGuid; this.delegateeUserId = delegateeUserId; this.delegateeUserGuid = delegateeUserGuid; }
public FlowActionResult( int flowActionRequestId, string clientRequestGuid, EnumFlowActionRequestType requestType, FlowInstance flowInstance, bool succeed = true, string failReason = null ) { this.flowActionRequestId = flowActionRequestId; this.clientRequestGuid = clientRequestGuid; this.requestType = requestType; this.flowInstance = flowInstance; this.succeed = succeed; if (!succeed && string.IsNullOrEmpty(failReason)) { this.failReason = "引擎未给出失败原因."; } }
public static bool isRequestTypeNeedChangeMgmtTimeStamp(EnumFlowActionRequestType type) { return(config[type].Item3); }
public static string getRequestTypeExplanation(EnumFlowActionRequestType type) { return(config[type].Item4); }
public static string getRequestTypeName(EnumFlowActionRequestType type) { return(config[type].Item1); }