Skip to content

EasyOC/EasyOC

Repository files navigation

EasyOC 是一个基于OrchardCore 的服务端开发框架

基于Orchard Core CMS 增加了一系列模块用于提供 SPA服务 ,参考 ABP 的功能设计实现了一些用于 SPA 的特性和功能

EasyOC is a SPA development framework based on OrchardCore

It adds a series of modules based on Orchard Core CMS to provide SPA services in a non-invasive manner, and implements some features and functions specifically for SPA by referring to the functional design of ABP

前端项目:https://github.com/EasyOC/EasyOC.VbenAdmin

QQ群:877196442

Features

For SPA Service Application

  • GraphQL lucene queries can support Total and items
  • wrapper API returns the result, You can use the Restful API to query OrchardCore for notifications added using INotify
  • SwaggerUI
  • Dynamic Web API
  • Authorization Attribute
  • Users And Roles Api

For OrchardCore CMS

install

image

Swagger UI and openid code flow auth

swaggerUI

Generate ContentType form RDBMS

image

RDBMS

数据同步

image

注意!尽量不要一次更新太多数据,使Document表被长时间锁死,导致其他页面无法访问

Generate ContentMapping with RDBMS

image

可以在Management Studio 中选中某条数据,然后右键选择“连同标题一起复制” 使用 https://www.bejson.com/json/col2json/ 之类的工具将Excel 转换为json 复制结果到内容模板中

image

拦截所有工作流异常

虽然代码中不会拦截触发的节点,但尽量不要在异常处理工作流中再次引发异常,不然可能会造成死循环 如果要触发当前工作流,如果表达式成立,则将触发工作流,捕获全局异常,直接返回true

image

获取错误信息: input('ErrorInfo') 包含如下属性:

  • WorkflowId:工作流Id
  • WorkflowName:工作流名称
  • ExcutedActivityCount:已执行节点数量
  • ActivityDisplayName:节点名称
  • ActivityTypeName:节点类型名称
  • ActivityId:节点Id
  • ErrorMessage:异常信息概要
  • ExceptionDetails:异常详细信息
  • FaultMessage:包含工作流节点手动引发的错误信息