Workflow Examples in ORDER and ECOMMERCE ProcessOrder -> CheckBlackList -> ProcessPayment -> Success -> Clearchart -> InitiateOrderWorkflow -> Start The Workflow
1. First, use ProcessOrder according to the order, discovery request-map> After calling CreateOrder success, call checkblacklist according to SUCCESS, and discovery according to Controller.xml according to ECOMMERCE
request-map>
After successful checkOrderBlacklist, according Success, steering processpayment request-map> ProcessPayment successfully, turn to ClearCartForRDER request-map>
After success, call InitiateOrderWorkflow, < / request-map> in the initiateOrderWorkflow, dispatcher.runAsync ( "processOrder", UtilMisc.toMap ( "orderId", orderId, "orderStatusId", orderHeader.getString ( "statusId" screen.width / 2) this.width = screen. Width / 2 "vSpace = 2 border = 0>); start the workflow, corresponding to Service for testing the workflow engine description> service> This service's engine is a service service for Workflow,
ProcessOrder service defined in the location represented xpdl definition package, invoke the corresponding in orderProcessXPDL.xml,
转载请注明原文地址:https://www.9cbs.com/read-11090.html