ones工作流预设

  • 系统首选项-》工作流-》新建
    保存后在工作流设计中将内容复制到编辑器中。

    出库流程

    支持分批次出库,支持外部单据转化为出库单并在出库结束后通知原始单据

    流程图:
    0_1458652325040_出库.png

    模块:storage.stockOut
    应用:仓储管理

    start=>start: 新出库单:> 
    end=>end: 完成出库:> 
    response=>inputoutput: 通知等待节点:> m:Storage/StockOut::response_to_outside
    save_bill=>operation: 保存出库单:> u:status=1
    confirm=>operation: 确认出库:> m:Storage/StockOut::confirm_stock_out
    check_if_all_out=>condition: 是否完全出库:> m:Storage/StockOut::check_if_all_out
    continue_out=>subroutine: 可以继续出库:> n:n
    
    start(right)->save_bill(right)->confirm->check_if_all_out
    check_if_all_out(yes)->response->end
    check_if_all_out(no)->continue_out->confirm(right)
    
    start=>auto:auto
    end=>auto:auto
    response=>auto:auto
    save_bill=>auto:owner
    confirm=>auto:owner
    check_if_all_out=>auto:auto
    continue_out=>auto:auto
    
  • 入库流程

    支持分批次入库,支持外部单据转化为入库单并转化

    流程图:
    0_1458652352287_入库.png

    模块:storage.stockIn
    应用:仓储管理

    start=>start: 新入库单:> 
    end=>end: 完成入库:> 
    response=>inputoutput: 通知等待节点:> m:Storage/StockIn::response_to_outside
    save_bill=>operation: 保存入库单:> u:status=1
    confirm=>operation: 确认入库:> m:Storage/StockIn::confirm_stock_in
    check_if_all_in=>condition: 是否完全入库:> m:Storage/StockIn::check_if_all_in
    continue_out=>subroutine: 可以继续入库:> n:n
    
    start(right)->save_bill(right)->confirm->check_if_all_in
    check_if_all_in(yes)->response->end
    check_if_all_in(no)->continue_out->confirm(right)
    
    start=>auto:auto
    end=>auto:auto
    response=>auto:auto
    save_bill=>auto:owner
    confirm=>auto:owner
    check_if_all_in=>auto:auto
    continue_out=>auto:auto
  • 销售订单

    支持生成应收款和出库单

    流程图:
    0_1458652373194_销售订单.png

    模块:sale.orders
    应用:销售管理

    start=>start: 新订单:> 
    already_stockout=>operation: 已出库:> 
    save_bill=>operation: 保存订单:> u:status=1
    make_receivable=>operation: 生成应收款:> m:Sale/Orders::make_receivable
    make_stockout=>operation: 生成出库单:> m:Sale/Orders::convert_to_stock_out
    end=>end: 完成订单:> u:status=2
    
    start(right)->save_bill->make_receivable(right)->make_stockout->already_stockout->end
    
    start=>auto:auto
    already_stockout=>auto:wait
    save_bill=>auto:owner
    make_receivable=>auto:owner
    make_stockout=>auto:owner
    end=>auto:auto
    
  • 采购订单

    支持生成应付款及入库单
    流程图:
    0_1458652394403_采购单.png

    模块:purchase.purchase
    应用:采购管理

    start=>start: 新采购单
    end=>end: 完成采购:> u:status=2
    save_bill=>operation: 保存采购单:> u:status=1
    make_payment=>operation: 生成应收款:> m:Purchase/Purchase::make_payment
    make_stockin=>operation: 生成入库单:> m:Purchase/Purchase::convert_to_stock_in
    already_stock_in=>operation: 已入库
    
    start(right)->save_bill->make_payment(right)->make_stockin->already_stock_in->end
    
    start=>auto:auto
    save_bill=>auto:owner
    make_payment=>auto:owner
    make_stockin=>auto:owner
    already_stock_in=>auto:wait
    end=>auto:auto
    
     
  • 收款工作流

    支持多批次收款,支持其他流程回调

    流程图:
    0_1458652432182_收款.png
    模块:finance.receivables
    应用:财务模块

    start=>start: 新收款单:> 
    end=>end: 已收款:> 
    confirm=>operation: 确认收款:> m:Finance/Receivables::confirm
    check_full_received=>condition: 是否完全收款:> m:Finance/Receivables::check_full_received
    continue_confirm=>operation: 可继续收款:> 
    response=>inputoutput: 通知外部等待相应节点:> m:Finance/Receivables::response_to_outside
    
    start(right)->confirm->check_full_received
    check_full_received(no)->continue_confirm->confirm
    check_full_received(yes)->response->end
    
    start=>auto:auto
    end=>auto:auto
    confirm=>auto:owner
    check_full_received=>auto:auto
    continue_confirm=>auto:auto
    response=>auto:auto
    
  • 付款工作流

    支持批次付款,支持其他流程回调

    流程图:
    0_1458652502071_付款.png

    模块:finance.payables
    应用:财务模块

    start=>start: 新付款单:> 
    end=>end: 已付款:> 
    confirm=>operation: 确认付款:> m:Finance/Payables::confirm
    check_full_paid=>condition: 是否完全付款:> m:Finance/Payables::check_full_paid
    continue_confirm=>operation: 可继续付款:> 
    response=>inputoutput: 通知外部等待相应节点:> m:Finance/Payables::response_to_outside
    
    start(right)->confirm->check_full_paid
    check_full_paid(no)->continue_confirm->confirm
    check_full_paid(yes)->response->end
    
    start=>auto:auto
    end=>auto:auto
    confirm=>auto:owner
    check_full_paid=>auto:auto
    continue_confirm=>auto:auto
    response=>auto:auto
原文地址:https://www.cnblogs.com/h2zZhou/p/5362605.html