Example #1
0
 // 处理已有流程实例时使用
 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;
 }
Example #2
0
 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 = "引擎未给出失败原因.";
     }
 }
Example #3
0
 public static bool isRequestTypeNeedChangeMgmtTimeStamp(EnumFlowActionRequestType type)
 {
     return(config[type].Item3);
 }
Example #4
0
 public static string getRequestTypeExplanation(EnumFlowActionRequestType type)
 {
     return(config[type].Item4);
 }
Example #5
0
 public static string getRequestTypeName(EnumFlowActionRequestType type)
 {
     return(config[type].Item1);
 }