当前位置:网站首页>Activiti practice
Activiti practice
2022-06-23 22:09:00 【Is paidaxing there】
1. actual combat
// Rendering dynamic forms
@GetMapping(path = "/formDataShow")
public AjaxResponse formDataShow(String taskId) { try { if(GlobalConfig.Test){ securityUtil.logInAs("bajie");}
Task task = taskRuntime.task(taskId);
UserTask userTask = (UserTask)repositoryService.getBpmnModel(task.getProcessDefinitionId())
.getFlowElement(task.getFormKey());
List<FormProperty> formPropertiesList = userTask.getFormProperties();
for(FormProperty formProperty:formPropertiesList){}
return AjaxResponse.ajaxData(GlobalConfig.ResponseCode.SUCCESS.getCode(),
GlobalConfig.ResponseCode.SUCCESS.getDesc(),null);
}catch (Exception e){return AjaxResponse.ajaxData(GlobalConfig.ResponseCode.ERROR.getCode()," Failed to render dynamic form !",null);
}
}
Task task = taskRuntime.task(taskId);
UserTask userTask = (UserTask)repositoryService.getBpmnModel(task.getProcessDefinitionId())
.getFlowElement(task.getFormKey());
List<FormProperty> formPropertiesList = userTask.getFormProperties();
for(FormProperty formProperty:formPropertiesList){}
Among them, we get the task through acquisition , And then through the form key(task.getFormKey()) To get to the userTask, In theory, we should transfer the task key That is to say :
Only with this value can we get the properties of the form , But we can't get this key, So only when drawing the flow chart , We put the form key Task related key Set to consistent , In this way, we pass in the key That is, with the task key Consistent to get userTask 了 .
Let's draw the flow chart :
The executors of the two tasks are designated as bajie, Then we put the form key All assigned to task key Agreement .
Then we just add a few forms as shown in the figure , Write values casually , Then the process is downloaded and released .
Then call the interface we wrote above , View the attribute values of the form :
It seems that we haven't got any data , Just get a form type and key.
But we can use another way to get the data :
边栏推荐
- How the API gateway obtains the URI path and how the API handles local access failure
- Meaning of the last seven digits of wider face
- The transaction code mp83 at the initial level of SAP retail displays a prediction parameter file
- How to do API gateway routing? What are the other functions of API gateway?
- Raid card with hardware knowledge (5)
- [同源策略 - 跨域问题]
- ACL2022 | MVR:面向开放域检索的多视角文档表征
- Digital transformation solution for supply chain platform of mechanical equipment industry
- Ten thousand words! Understand the inheritedwidget local refresh mechanism
- Outlook開機自啟+關閉時最小化
猜你喜欢

Icml2022 | robust task representation for off-line meta reinforcement learning based on contrastive learning

高阶柱状图之极环图与极扇图

ACL2022 | MVR:面向开放域检索的多视角文档表征

Sending network request in wechat applet

从CVPR 2022看域泛化(Domain Generalization)最新研究进展

Peking University, University of California Berkeley and others jointly | domain adaptive text classification with structured knowledge from unlabeled data (Domain Adaptive Text Classification Based o

HDLBits-&gt; Circuits-&gt; Arithmetic Circuitd-&gt; 3-bit binary adder

Cloud native practice of meituan cluster scheduling system

Smart cockpit SOC competition upgraded, and domestic 7Nm chips ushered in an important breakthrough

The latest research progress of domain generalization from CVPR 2022
随机推荐
How to deal with high memory in API gateway how to maintain API gateway
What is the gold content of PMP certificate
[js] 生成随机数组
Make it simple. This wave of global topology is quite acceptable!
Ffmpeg for audio and video commands
Take you through the distributed file system
KnowDA: All-in-One Knowledge Mixture Model for Data Augmentation in Few-Shot NLP(KnowDA:用于 Few-Shot NLP 中数据增强的多合一知识混合模型)
BenchCLAMP:评估语义分析语言模型的基准
The 11th Blue Bridge Cup
What causes the applet SSL certificate to expire? How to solve the problem when the applet SSL certificate expires?
TDD开发模式推荐流程
What is stock online account opening? Is it safe to open a mobile account?
Question: how to understand the network protocol and why the OSI reference model is divided into seven layers
How to write test cases efficiently?
Using barcode software to make certificates
Devops sharing: how to hold the meeting?
Freiburg University, Hildesheim University and other universities in Germany jointly | zero shot automl with pre trained models (zero sample automl based on pre training model)
Completely open source and permanently free, this markdown editor is really fragrant!
How to deploy the API gateway? Is it OK not to use the API gateway?
CMU博士论文 | 通过记忆的元强化学习,118页pdf