Esempio n. 1
0
 @At
 @Ok("jsp")
 public void list() {
   MvcUtil.setAttribute(caches.flowByID().values());
   MvcUtil.setAttribute("version", caches.flowVersionByFlowID());
   MvcUtil.setAttribute("deployed", flowService.deployedFlows());
 }
Esempio n. 2
0
 @At("/apply/?/?")
 @Ok("jsp:flow.apply")
 public String apply(String key, String tenantId) {
   com.freestyle.nutz.bean.pojo.Flow flow = caches.flowByKey().get(key);
   FlowVersion fv = caches.flowVersionByID().get(Integer.valueOf(tenantId));
   if (flow == null || fv == null) throw new IllegalArgumentException("没有这个流程");
   MvcUtil.setAttribute("title", flow.getTitle());
   MvcUtil.setAttribute("tenantId", tenantId);
   MvcUtil.setAttribute("diagramResource", fv.getDiagramResourceName());
   MvcUtil.setAttribute("deploymentId", fv.getDeploymentId());
   return key;
 }
Esempio n. 3
0
 @At
 @Ok("jsp")
 public void history(@Param("processInstanceId") String processInstanceId) {
   MvcUtil.setAttribute(flowService.history(processInstanceId));
 }
Esempio n. 4
0
 @At
 @Ok("jsp")
 public void definition(@Param("deploymentId") String deploymentId) {
   MvcUtil.setAttribute(flowService.definition(deploymentId));
 }