1,構建一個服務任務模型,並設置輸出參數並部署到camunda流程引擎
2,定義一個定時器調用camunda restapi接口external-task/fetchAndLock(獲取和鎖定外部任務)
3,根據外部任務接口返回內容,進行業務處理
4,處理完成后調用接口external-task/{id}/complete(完成外部任務),通知camunda任務完成,並提交結果
模型文件:https://files.cnblogs.com/files/caihuaxing/payment2.zip
c#代碼:https://files.cnblogs.com/files/caihuaxing/ConsoleApp1.zip