|
|
@@ -535,6 +535,35 @@ func (w *WFClient) Interrupt(definedId string, formData map[string]interface{},
|
|
|
return bytess, err
|
|
|
}
|
|
|
|
|
|
+//同步修复回调
|
|
|
+func (w *WFClient) RepairSync(definedId string, formData map[string]interface{}, c *entitys.CtrlContext) ([]byte, error) {
|
|
|
+ var RunRespInfo struct {
|
|
|
+ DefineId string `json:"define_id"`
|
|
|
+ InstanceId string `json:"instance_id"`
|
|
|
+ DefineName string `json:"define_name"`
|
|
|
+ InstanceName string `json:"instance_name"`
|
|
|
+ Choices []*Choice `json:"choices"`
|
|
|
+ Transition *Transition `json:"transition"`
|
|
|
+ StepType string `json:"step_type"`
|
|
|
+ FormData string `json:"form_data"`
|
|
|
+ StepName string `json:"step_name"`
|
|
|
+ ActorType string `json:"actor_type"`
|
|
|
+ Executor string `json:"executor"`
|
|
|
+ StartCallback string `json:"start_callback"`
|
|
|
+ }
|
|
|
+ callWFCallback("repairSync", &CallbackArg{
|
|
|
+ DefineId: RunRespInfo.DefineId,
|
|
|
+ InstanceId: definedId,
|
|
|
+ DefineName: RunRespInfo.DefineName,
|
|
|
+ InstanceName: RunRespInfo.InstanceName,
|
|
|
+ FormData: formData["form_data"].(string),
|
|
|
+ Executor: RunRespInfo.Executor,
|
|
|
+ UserId: w.userId,
|
|
|
+ Context: c,
|
|
|
+ })
|
|
|
+ return []byte{}, nil
|
|
|
+}
|
|
|
+
|
|
|
//撤回
|
|
|
func (w *WFClient) Delete(definedId string) ([]byte, error) {
|
|
|
url := w.getFullUrl("/api/wf_define/delete")
|