activiti 流程变量
来源:互联网 发布:java 递归查找子节点 编辑:程序博客网 时间:2024/06/06 09:23
activiti 流程变量
设置流程变量按照类型来说有两种方法,一种是在当前的流程实例上设置,一种在任务上设置
- 在流程实例上设置
/** Update or create a variable for an execution. If the variable is not already existing somewhere in the execution hierarchy, * it will be created in the process instance (which is the root execution). * @param executionId id of execution to set variable in, cannot be null. * @param variableName name of variable to set, cannot be null. * @param value value to set. When null is passed, the variable is not removed, * only it's value will be set to null. * @throws ActivitiObjectNotFoundException when no execution is found for the given executionId. */ void setVariable(String executionId, String variableName, Object value);
runtimeService.setVariable(executionId, variableName, value);
在当前流程实例设置后,在任何节点都能使用
- 列表内容
taskService.setVariable(taskId, variableName, value);
/** set variable on a task. If the variable is not already existing, it will be created in the * most outer scope. This means the process instance in case this task is related to an * execution. */ void setVariable(String taskId, String variableName, Object value);
在当前任务设置流程变量只有之后的节点才能用
阅读全文
1 0
- activiti中的流程变量
- activiti之流程变量
- Activiti流程变量
- Activiti 流程变量
- Activiti流程变量
- activiti 设置流程变量
- activiti 流程变量
- Activiti 流程变量
- activiti之流程变量
- Activiti(四)流程变量
- Activiti基础教程--06流程变量
- Activiti(四)流程变量
- Activiti基础教程--06流程变量
- 5、Activiti 流程变量 Variables
- Activiti学习笔记七 流程变量
- Activiti 学习笔记五:流程变量
- activiti之排他网关,流程变量
- 工作流框架--activiti(三)--流程变量
- 分享四个非常方便的二维码生成链接
- ssh项目中使用quartz来创建自己的定时任务
- window10下编译hadoop报错:Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:
- 初识Android studio与简单项目实践
- 【数据结构笔记】7:非递归快速排序
- activiti 流程变量
- 大量数据入库处理经验总结
- git远程库与本地联系报错:fatal: Not a git repository (or any of the parent directories): .git
- wpxf
- JavaWeb 11 Listener
- 排序算法(中)--堆排序、计数排序
- 信号量
- 学习资源整理
- 【LeetCode】1.Two Sum解题报告