我正在构建一个支持多种贷款产品的业务应用程序。在
例如:住房贷款、汽车贷款、个人贷款、电子商务贷款。在
主要步骤包括:
业务流程的一个例子是:
客户上车,登记他的手机号码,通过OTP验证
填写个人信息
提供贷款金额
检查贷款可信度
分配资金(在XYZ验证之后)
提供银行账户详细信息
核实银行账户(只有在您获得abc信息后)
执行eKYC
支付
现在,我正在使用Django-REST框架来构建webapi。然而,有一个问题。在
在我们的另一个产品中,流程可以是不同的。Step 4
和{
目前为止,编写的api(尽管是模块化的)只针对一个产品。如何使用DRF作为工作流方法?或者使用DRF之上可以控制流的任何库。在
我们有一个类似的用例,并使用了一个流库,它将基于条件驱动流捕获整个工作流。在
您可以查看Viewflow:https://github.com/viewflow/viewflow
基本上,这就像设置一个流,并利用条件来引导和重定向到不同的机制。他们简单的快速入门页面告诉您如何实现它:http://docs.viewflow.io/viewflow_quickstart.html
我只是在你的案例中尝试了一些样本流程:
可以看到一个例子here
相关问题 更多 >
编程相关推荐