|
|
@@ -117,6 +117,28 @@ func (this *ActivitiService) StartProcess(processKey string, formEntityId string
|
|
|
return string(p)
|
|
|
}
|
|
|
|
|
|
+func (this *ActivitiService) StartProcess2(processKey string, formEntityId string, userNames string, result string) string {
|
|
|
+ /*vars := make(map[string]string)
|
|
|
+ vars["processDefinitionKey"] = processKey
|
|
|
+ vars["formEntityId"] = formEntityId*/
|
|
|
+ /*params := "processDefinitionKey="+processKey+"&formEntityId"+formEntityId*/
|
|
|
+ var ActiProcess ActiProcessVM
|
|
|
+ ActiProcess.ProcessKey = processKey
|
|
|
+ ActiProcess.BusinessKey = formEntityId
|
|
|
+ ActiProcess.UserNames = userNames
|
|
|
+ ActiProcess.Result = result
|
|
|
+ json, err := json.Marshal(ActiProcess)
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println(err, "生成json字符串错误")
|
|
|
+ }
|
|
|
+ params := string(json)
|
|
|
+ fmt.Println(params)
|
|
|
+ //token = Authorization(this.Username, this.Password)
|
|
|
+ retVal := this.Post("/start-process", params, "")
|
|
|
+ p, _ := ioutil.ReadAll(retVal.Body)
|
|
|
+ return string(p)
|
|
|
+}
|
|
|
+
|
|
|
//func (this *ActivitiService) TaskComplete(processKey string, formEntityId string, userNames string, userId string, result string, remarks string) string {
|
|
|
/*var ActiComplete ActiCompleteVM
|
|
|
ActiComplete.ProcessKey = processKey
|