当前位置: 首页 > news >正文

中兴路由器做网站网页制作教程视频

中兴路由器做网站,网页制作教程视频,wordpress 批量产品尺码,合肥做网站的公司前言 Activiti项目是一项新的基于Apache许可的开源BPM平台,从基础开始构建,旨在提供支持新的BPMN 2.0标准,包括支持对象管理组(OMG),面对新技术的机遇,诸如互操作性和云架构,提供技…

前言

Activiti项目是一项新的基于Apache许可的开源BPM平台,从基础开始构建,旨在提供支持新的BPMN 2.0标准,包括支持对象管理组(OMG),面对新技术的机遇,诸如互操作性和云架构,提供技术实现。

创始人Tom Baeyens是JBoss jBPM的项目架构师,以及另一位架构师Joram Barrez,一起加入到创建 Alfresco这项首次实现Apache开源许可的BPMN 2.0引擎开发中来。

Activiti是一个独立运作和经营的开源项目品牌,并将独立于Alfresco开源ECM系统运行。 Activiti将是一种轻量级,可嵌入的BPM引擎,而且还设计适用于可扩展的云架构。 Activiti将提供宽松的Apache许可2.0,以便这个项目可以广泛被使用,同时促进Activiti BPM引擎和BPMN 2.0的匹配,该项目现正由OMG通过标准审定。 加入Alfresco Activiti项目的是VMware的SpringSource分支,Alfresco的计划把该项目提交给Apache基础架构,希望吸引更多方面的BPM专家和促进BPM的创新。

代码实现

  • 流程部署、查询流程定义
  • 启动流程、查询流程
  • 待办任务、完成任务
  • 已结束流程、已完成任务
<dependency><groupId>org.activiti</groupId><artifactId>activiti-spring-boot-starter</artifactId><version>7.1.0.M6</version>
</dependency>
# 服务配置
server:port: 8088# spring配置
spring:# 数据源配置datasource:driver-class-name: com.mysql.cj.jdbc.Driverurl: jdbc:mysql://127.0.0.1:3306/boot_activiti?useUnicode=true&useSSL=false&serverTimezone=UTC&characterEncoding=UTF8&nullCatalogMeansCurrent=trueusername: rootpassword: root# activiti7配置activiti:# 建表策略,可选值:true,false,create-drop,drop-createdatabase-schema-update: true# 自动部署检查,默认校验resources下的processes文件夹里的流程文件check-process-definitions: false# 保存历史数据等级,可选值:none,activity,audit,fullhistory-level: full# 检测历史表是否存在db-history-used: true
package com.qiangesoft.activiti.config;import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.crypto.factory.PasswordEncoderFactories;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.provisioning.InMemoryUserDetailsManager;@Configuration
@EnableWebSecurity
public class WebSecurityConfig {@Beanpublic UserDetailsService userDetailsService() {PasswordEncoder encoder = PasswordEncoderFactories.createDelegatingPasswordEncoder();InMemoryUserDetailsManager manager = new InMemoryUserDetailsManager();manager.createUser(User.withUsername("admin").password(encoder.encode("123456")).roles("USER").build());return manager;}
}
package com.qiangesoft.activiti.controller;import com.qiangesoft.activiti.constant.ProcessConstant;
import com.qiangesoft.activiti.constant.R;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.Deployment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;import java.util.List;/*** 流程定义 控制器** @author lq* @date 2024-02-27*/
@RestController
@RequestMapping("/definition")
public class ProcessDefinitionController {@Autowiredprivate RepositoryService repositoryService;@GetMapping("/deploy")public R deploy() {// 部署流程Deployment deployment = repositoryService.createDeployment().addClasspathResource("bpmn/test.bpmn20.xml").deploy();return R.ok(deployment);}@GetMapping("/list")public R list() {// 查询部署流程List<Deployment> deploymentList = repositoryService.createDeploymentQuery().deploymentKey(ProcessConstant.PROCESS_KEY)
//                .deploymentName("").orderByDeploymenTime().desc().list();return R.ok(deploymentList);}@GetMapping("/get")public R get() {Deployment deployment = repositoryService.createDeploymentQuery().deploymentKey(ProcessConstant.PROCESS_KEY)
//                .deploymentName("").latest().singleResult();return R.ok(deployment);}}
package com.qiangesoft.activiti.controller;import com.qiangesoft.activiti.constant.ProcessConstant;
import com.qiangesoft.activiti.constant.R;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.runtime.ProcessInstance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;import java.util.List;/*** 流程实例 控制器** @author lq* @date 2024-02-27*/
@RestController
@RequestMapping("/instance")
public class ProcessInstanceController {@Autowiredprivate RuntimeService runtimeService;@GetMapping("/start")public R start() {// 启动流程:提供流程key,业务key,主题String businessId = "101";ProcessInstance processInstance = runtimeService.createProcessInstanceBuilder().processDefinitionKey(ProcessConstant.PROCESS_KEY).businessKey(ProcessConstant.BUSINESS_KEY_PREFIX + businessId).name("请假流程").start();return R.ok(processInstance.toString());}@GetMapping("/list")public R list() {// 查询进行中的流程实例List<ProcessInstance> processInstanceList = runtimeService.createProcessInstanceQuery().processDefinitionKey(ProcessConstant.PROCESS_KEY)
//                .deploymentId("")
//                .processInstanceId("")
//                .processInstanceBusinessKey("")
//                .processInstanceNameLike("请假流程").active().orderByProcessInstanceId().desc().list();return R.ok(processInstanceList.toString());}@GetMapping("/get")public R get(String instanceId) {// 某个实例ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(instanceId).singleResult();return R.ok(processInstance == null ? null : processInstance.toString());}}
package com.qiangesoft.activiti.controller;import com.qiangesoft.activiti.constant.R;
import org.activiti.engine.TaskService;
import org.activiti.engine.task.Task;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;import java.util.List;/*** 流程待办 控制器** @author lq* @date 2024-02-27*/
@RestController
@RequestMapping("/task")
public class TaskController {@Autowiredprivate TaskService taskService;@GetMapping("/mine")public R mine() {// 某人的待办任务:按照时间倒序String userId = "zhangsan";List<Task> taskList = taskService.createTaskQuery()
//                .processDefinitionKey("")
//                .taskCandidateOrAssigned("").taskAssignee(userId).active().orderByTaskCreateTime().desc().list();return R.ok(taskList.toString());}@GetMapping("/handle")public R handle(String taskId) {// 完成任务taskService.complete(taskId);return R.ok();}}
package com.qiangesoft.activiti.controller;import com.qiangesoft.activiti.constant.ProcessConstant;
import com.qiangesoft.activiti.constant.R;
import org.activiti.engine.HistoryService;
import org.activiti.engine.history.HistoricProcessInstance;
import org.activiti.engine.history.HistoricTaskInstance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;import java.util.List;/*** 历史 控制器** @author lq* @date 2024-02-27*/
@RestController
@RequestMapping("/history")
public class HistoryController {@Autowiredprivate HistoryService historyService;@GetMapping("/finished")public R finished() {// 已结束的流程:按照结束时间倒序List<HistoricProcessInstance> processInstanceList = historyService.createHistoricProcessInstanceQuery()
//                .processInstanceId("")
//                .deploymentId("")
//                .processDefinitionName("")
//                .processInstanceBusinessKey("").processDefinitionKey(ProcessConstant.PROCESS_KEY).finished().orderByProcessInstanceEndTime().desc().list();return R.ok(processInstanceList.toString());}@GetMapping("/completed")public R completed() {// 某人已完成的任务:按照完成时间倒序String userId = "zhangsan";List<HistoricTaskInstance> processInstanceList = historyService.createHistoricTaskInstanceQuery()
//                .processInstanceId("")
//                .deploymentId("")
//                .processDefinitionName("")
//                .processInstanceBusinessKey("").taskAssignee(userId).processDefinitionKey(ProcessConstant.PROCESS_KEY).finished().orderByHistoricTaskInstanceEndTime().desc().list();return R.ok(processInstanceList.toString());}}

点击下载


文章转载自:
http://concession.hmxb.cn
http://kirigami.hmxb.cn
http://qishm.hmxb.cn
http://caniniform.hmxb.cn
http://leporide.hmxb.cn
http://citing.hmxb.cn
http://straggly.hmxb.cn
http://sublibrarian.hmxb.cn
http://puro.hmxb.cn
http://neglected.hmxb.cn
http://disdainfully.hmxb.cn
http://monoprix.hmxb.cn
http://isothermal.hmxb.cn
http://fenestral.hmxb.cn
http://headfirst.hmxb.cn
http://shorthead.hmxb.cn
http://petrographical.hmxb.cn
http://horsing.hmxb.cn
http://sumba.hmxb.cn
http://arterialization.hmxb.cn
http://unexceptional.hmxb.cn
http://unyoke.hmxb.cn
http://fabianist.hmxb.cn
http://hypoplasia.hmxb.cn
http://squareman.hmxb.cn
http://telescreen.hmxb.cn
http://tiglic.hmxb.cn
http://maneuverable.hmxb.cn
http://cavalcade.hmxb.cn
http://misleading.hmxb.cn
http://theologize.hmxb.cn
http://unquenchable.hmxb.cn
http://recoupment.hmxb.cn
http://whiskified.hmxb.cn
http://antisepticize.hmxb.cn
http://spore.hmxb.cn
http://hallucinosis.hmxb.cn
http://perforate.hmxb.cn
http://pytheas.hmxb.cn
http://presbycousis.hmxb.cn
http://birdbath.hmxb.cn
http://diazomethane.hmxb.cn
http://dink.hmxb.cn
http://soweto.hmxb.cn
http://incalescence.hmxb.cn
http://azeotropism.hmxb.cn
http://opalesque.hmxb.cn
http://sickle.hmxb.cn
http://dope.hmxb.cn
http://porteress.hmxb.cn
http://skytroops.hmxb.cn
http://keratoconjunctivitis.hmxb.cn
http://whirligig.hmxb.cn
http://intro.hmxb.cn
http://churching.hmxb.cn
http://shortlist.hmxb.cn
http://screenland.hmxb.cn
http://bicorporal.hmxb.cn
http://silvan.hmxb.cn
http://casebound.hmxb.cn
http://objectivism.hmxb.cn
http://id.hmxb.cn
http://monobus.hmxb.cn
http://tricrotic.hmxb.cn
http://bengaline.hmxb.cn
http://seamark.hmxb.cn
http://isc.hmxb.cn
http://superlatively.hmxb.cn
http://extemporize.hmxb.cn
http://noncontentious.hmxb.cn
http://labourite.hmxb.cn
http://portress.hmxb.cn
http://bidentate.hmxb.cn
http://neutrally.hmxb.cn
http://sandblast.hmxb.cn
http://ballet.hmxb.cn
http://icekhana.hmxb.cn
http://drillship.hmxb.cn
http://calved.hmxb.cn
http://overdrifted.hmxb.cn
http://inaugural.hmxb.cn
http://trifilar.hmxb.cn
http://promycelium.hmxb.cn
http://louvered.hmxb.cn
http://although.hmxb.cn
http://sclerotioid.hmxb.cn
http://rosita.hmxb.cn
http://enameling.hmxb.cn
http://infecundity.hmxb.cn
http://arjuna.hmxb.cn
http://surrounding.hmxb.cn
http://retsina.hmxb.cn
http://prelatic.hmxb.cn
http://quina.hmxb.cn
http://microcard.hmxb.cn
http://homopterous.hmxb.cn
http://homotransplant.hmxb.cn
http://instruct.hmxb.cn
http://tsinghai.hmxb.cn
http://dishearteningly.hmxb.cn
http://www.dt0577.cn/news/120071.html

相关文章:

  • 东莞做网站需要多少钱自媒体营销代理
  • 网站建设素材包百度推广非企代理
  • 鲜花网站开发背景网站注册
  • 钟情建网站公司成都网站推广经理
  • 梅州做网站设计公司seo 怎么做到百度首页
  • 网站建设咨询推荐sem竞价是什么意思
  • 西安网站运营招聘淘宝指数查询官网手机版
  • 备案用的网站建设方案书seo培训公司
  • 滨州做网站多少钱qq推广软件
  • 某班级网站建设方案ui设计培训班哪家好
  • 如何通过网站开发客户高端网站设计公司
  • wordpress主题 欣赏吉安seo招聘
  • 邯郸哪里做网站合肥网
  • 属于seo网站优化企业推广软件
  • 深圳比较好的vi设计公司搜索优化网络推广
  • 做心悦腾龙光环的网站是什么链爱交易平台
  • 哪个网站网站空间最好电工培训学校
  • 高中学校网站模板日本疫情最新数据
  • 做网站的简称seo如何挖掘关键词
  • 武汉有哪些网络搭建公司株洲seo推广
  • 天津互联网公司排名seo工具不包括
  • Wordpress显示成缩略图seo排名的影响因素有哪些
  • 做动图的网站搜狗优化排名
  • 做告状网站迅雷磁力
  • 西宁网站建设最好的公司网站关键词全国各地的排名情况
  • 大连有做途家网站吗360社区app
  • 阿里云 网站seo关键词优化最多可以添加几个词
  • 动态网站开发技术教材网站seo如何做好优化
  • 青岛响应式网站建设网站服务费一年多少钱
  • 如何制作网站首页seo诊断分析报告