public string next(int currID, int nextID, string jsonStr, string ext = "") { string _return = String.Empty; int _type = Convert.ToInt16(api.execScalar("select type from {0} where id={1};", R.Table.WF_INSTANCE, currID)); switch (_type) { case T_END: _return = Native.getErrorMsg("流程已经结束"); break; case T_CANCLE: _return = Native.getErrorMsg("流程已经被取消"); break; case T_PARALLEL: _return = nextPARALLEL(currID, nextID, jsonStr, ext); break; case T_START: case T_NORMAL: _return = nextNORMAL(currID, nextID, jsonStr, ext); break; case T_AUTO: _return = nextAUTO(currID, nextID, jsonStr, ext); break; case T_SUB_PROCESS: _return = nextSUBPROCESS(currID, nextID, jsonStr, ext); break; } return(_return); }