|
@@ -13,12 +13,10 @@ import org.snaker.engine.entity.HistoryTask;
|
|
import org.snaker.engine.entity.Process;
|
|
import org.snaker.engine.entity.Process;
|
|
import org.snaker.engine.entity.Task;
|
|
import org.snaker.engine.entity.Task;
|
|
import org.snaker.engine.helper.AssertHelper;
|
|
import org.snaker.engine.helper.AssertHelper;
|
|
-import org.snaker.engine.model.ProcessModel;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
@@ -61,15 +59,14 @@ public class OrderController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping(value = "detail")
|
|
@GetMapping(value = "detail")
|
|
- @ResponseBody
|
|
|
|
public Object json(String processId, String orderId) {
|
|
public Object json(String processId, String orderId) {
|
|
Process process = snakerEngine.process().getProcessById(processId);
|
|
Process process = snakerEngine.process().getProcessById(processId);
|
|
AssertHelper.notNull(process);
|
|
AssertHelper.notNull(process);
|
|
- ProcessModel model = process.getModel();
|
|
|
|
Map<String, Object> jsonMap = new HashMap<String, Object>();
|
|
Map<String, Object> jsonMap = new HashMap<String, Object>();
|
|
|
|
+ /*ProcessModel model = process.getModel();
|
|
if (model != null) {
|
|
if (model != null) {
|
|
jsonMap.put("process", model);
|
|
jsonMap.put("process", model);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
if (StringUtils.isNotEmpty(orderId)) {
|
|
if (StringUtils.isNotEmpty(orderId)) {
|
|
List<Task> tasks = snakerEngine.query().getActiveTasks(new QueryFilter().setOrderId(orderId));
|
|
List<Task> tasks = snakerEngine.query().getActiveTasks(new QueryFilter().setOrderId(orderId));
|