.NET 5 开源工作流框架elsa技术研究 (3)

Elsa intrinsically supports triggering events that starts new workflows and resumes halted workflow instances in an easy to use manner. E.g. workflowHost.TriggerWorkflowAsync("HttpRequestTrigger");"will start and resume all workflows that either start with or are halted on the HttpRequestTrigger.Elsa has a web-based workflow designer. I once worked on a project for a customer that was building a huge SaaS platform.

One of the requirements was to provide a workflow engine and a web-based editor.Although there are commercial workflow libraries and editors out there, the business model required open-source software. We used WF and the re-hosted Workflow Designer. It worked, but it wasn't great.

  五、源代码编译构建

        项目源代码地址:https://github.com/elsa-workflows/elsa-core

        通过VS2019,使用克隆的方式,将代码克隆到本地编译构建。

        

.NET 5 开源工作流框架elsa技术研究

       

   项目使用了Angular,在调试运行前,本地需要完成NPM包安装和JS 编译,所以本地需要先安装NodeJS

   切换到XX\src\dashboard\Elsa.Dashboard\Theme\argon-dashboard, 执行NPM Install       

   安装过程中,涉及到Python相关的组件和环境变量配置,所以可能会安装失败,出现异常:

         checking for Python executable "python2" in the PATH Can't find Python executable "python2.7", you can set the PYTHON env variable.

         此时,先删除delete node_modules文件夹, 然后执行: npm install --global windows-build-tools

         python组件安装完成后,执行以下命令:

npm config set python C:\Users\zhougq\.windows-build-tools\python27\python.exe npm install

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpjjwp.html