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