|
@@ -186,8 +186,17 @@ public class IFlowInstanceController extends BaseController {
|
|
|
@ResponseBody
|
|
|
@RequestMapping
|
|
|
public void redirectFlowPage(String flowInstanceId,String activityInsId,String userId,Integer iMobile) throws IOException {
|
|
|
- boolean isMobile = !Objects.isNull(iMobile) && iMobile.equals(1) ? true : false;
|
|
|
+ boolean isMobile = !Objects.isNull(iMobile) && iMobile.equals(1) ;
|
|
|
String redirectURL = iActivityInstanceService.getHandlerUrl(activityInsId,flowInstanceId,null,userId,isMobile,true,null);
|
|
|
response.sendRedirect(redirectURL);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @ResponseBody
|
|
|
+ @RequestMapping
|
|
|
+ public String getFlowUrl(String flowInstanceId, String activityInsId, String userId, Integer iMobile) throws IOException {
|
|
|
+ boolean isMobile = !Objects.isNull(iMobile) && iMobile.equals(1) ;
|
|
|
+ String flowUrl = iActivityInstanceService.getHandlerUrl(activityInsId,flowInstanceId,null,userId,isMobile,true,null);
|
|
|
+ return success(flowUrl);
|
|
|
+ }
|
|
|
}
|