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

自己建设网站步骤百度app下载安装 官方

自己建设网站步骤,百度app下载安装 官方,wordpress滚轴式主题,seo在线培训本人博客开始迁移,博客整个架构自己搭建及编码 http://www.cookqq.com/listBlog.action 工作流的整体步骤: (1)创建工作流引擎 (2)获得activiti相关的任务:引擎API是与Activiti交互最常用的方式…

本人博客开始迁移,博客整个架构自己搭建及编码 http://www.cookqq.com/listBlog.action 

工作流的整体步骤:

(1)创建工作流引擎

(2)获得activiti相关的任务:引擎API是与Activiti交互最常用的方式。主要的出发点是ProcessEngine,由ProcessEngine,可以获取到含有工作流/BPM方法的不同服务。ProcessEngine以及那些服务对象都是线程安全的

代码:

ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
RuntimeService runtimeService = processEngine.getRuntimeService();
RepositoryService repositoryService = processEngine.getRepositoryService();
TaskService taskService = processEngine.getTaskService();
ManagementService managementService = processEngine.getManagementService();
IdentityService identityService = processEngine.getIdentityService();
HistoryService historyService = processEngine.getHistoryService();
FormService formService = processEngine.getFormService();

(3)部署流程定义 参照:activiti--部署bpmn/bar文件详解

(4)获得与自己相关的某些任务

(5)声明某个任务:

官方解释:An accountant(账房) now needs to claim(声明) the task. By claiming the task, the specific user will become the assignee(受理人) of the task and the task will disappear(消失) from every task list of the other members of the accountancy group. Claiming a task is programmatically(编程) done as follows:

taskService.claim(task.getId(), "fozzie");

(6)完成某个任务

public class TenMinuteTutorial {public static void main(String[] args) {

(创建activiti工作引擎)// Create Activiti process engineProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration().buildProcessEngine();

(2)获得activiti相关服务// Get Activiti servicesRepositoryService repositoryService = processEngine.getRepositoryService();RuntimeService runtimeService = processEngine.getRuntimeService();

(3)部署流程定义// Deploy the process definitionrepositoryService.createDeployment().addClasspathResource("FinancialReportProcess.bpmn20.xml").deploy();

(4)开启一个流程实例// Start a process instanceString procId = runtimeService.startProcessInstanceByKey("financialReport").getId();

(5)获得与自己相关的某些任务

// Get the first taskTaskService taskService = processEngine.getTaskService();List<Task> tasks = taskService.createTaskQuery().taskCandidateGroup("accountancy").list();for (Task task : tasks) {System.out.println("Following task is available for accountancy group: " + task.getName());

 (6)声明某个任务// claim ittaskService.claim(task.getId(), "fozzie");}// Verify Fozzie can now retrieve the tasktasks = taskService.createTaskQuery().taskAssignee("fozzie").list();for (Task task : tasks) {System.out.println("Task for fozzie: " + task.getName());

(7)完成某个任务 // Complete the tasktaskService.complete(task.getId());}System.out.println("Number of tasks for fozzie: " + taskService.createTaskQuery().taskAssignee("fozzie").count());// Retrieve and claim the second tasktasks = taskService.createTaskQuery().taskCandidateGroup("management").list();for (Task task : tasks) {System.out.println("Following task is available for accountancy group: " + task.getName());taskService.claim(task.getId(), "kermit");}// Completing the second task ends the processfor (Task task : tasks) {taskService.complete(task.getId());}// verify that the process is actually finishedHistoryService historyService = processEngine.getHistoryService();HistoricProcessInstance historicProcessInstance = historyService.createHistoricProcessInstanceQuery().processInstanceId(procId).singleResult();System.out.println("Process instance end time: " + historicProcessInstance.getEndTime());}}












转载于:https://my.oschina.net/winHerson/blog/121722

http://www.lbrq.cn/news/2466793.html

相关文章:

  • 邢台移动网站建设费用自己怎么优化网站
  • 电子商务公司设计网站建设惠州seo网站管理
  • 如何建议一个网站竞价排名点击器
  • seo是东莞企业网站排seo河南网站建设报价
  • wordpress做小说网站吗搜索引擎主要包括三个部分
  • 网站建设怎样上传程序长春刚刚最新消息今天
  • 哈尔滨站建站时间朔州seo
  • 手机移动网站模板百度app安装免费下载
  • 网站建设渠道网站seo优化网站
  • 舟山网站建设推荐网站制作企业
  • 桂林北站改造优化师培训
  • 网站建设公司 优势百度网页链接
  • 网站建设 职位如皋网站制作
  • 南昌旅游网站建设方案手机怎么建自己的网站
  • h5做网站什么软件头条新闻最新消息
  • 汽车网站策划西安网站seo技术
  • 同性做视频网站网站功能开发
  • 江苏网站建设价格全渠道营销
  • 河南省建设工程一体化平台哈尔滨网络seo公司
  • 哪个网站做批发的新站整站快速排名
  • 公司做网站有意义么整合营销活动策划方案
  • 专业上海网站建设福州seo技巧培训
  • 天津市住房建设委员会网站seo长尾关键词优化
  • 企业网站 的网络营销方法有爱站seo工具包官网
  • 专业app网站建设哪家好大数据是干什么的
  • 河南住房和城乡建设厅网站百度号码认证平台取消标记
  • 常熟网站建设自己建网站流程
  • 阿里云ecs怎么建网站百度seo工具
  • 百度做网站搜索靠前seo怎么优化方法
  • 仿起点小说网站开发郑州学校网站建设
  • Haprxy七层代理
  • 算法:数组part02: 209. 长度最小的子数组 +
  • 【LeetCode 热题 100】22. 括号生成——(解法一)选左括号还是选有括号
  • 【已解决】YOLO11模型转wts时报错:PytorchStreamReader failed reading zip archive
  • day20 双向链表
  • C++右值引用与移动语义详解