- WorkflowServiceUtil.drivenProcess(info); //驱动流程(提交、退回、撤销、取回、转发等)
- WorkflowService service = new WorkflowServiceImpl(); //封装远程代理对象
- String invocationHandler = WorkflowProperties.get("wf_invocation_handler_impl"); //获得动态代理的handler
- _invocationHandle = (InvocationHandler) WorkflowServiceImpl.class.getClassLoader()
.loadClass(invocationHandlerImpl).newInstance(); //获得handler对象实例 - obj = Proxy.newProxyInstance(super.getClass().getClassLoader(), super.getClass().getInterfaces(),
_invocationHandle);//获得远程代理对象,通过WorkflowService 接口使用其中的方法 - WorkflowInvocationHandler.invoke //动态代理方法
- WorkflowRemoteClient.call //具体远程调用WorkflowLocalServiceUtil,例如 http://192.168.4.19:8089/arch_wf/entry/workflowEventServlet
- arch_wf web.xml workflowEventServlet 接收请求
- WorkflowRemoteCallImpl.excute 处理请求
- this.runByDefault(className, methodName, classTypes, args, isStatice);//反射调用WorkflowLocalServiceUtil类中具体的方法
- 返回调用结果