当前位置:网站首页>Flowable process deployment
Flowable process deployment
2022-06-10 23:46:00 【FHAdmin】
@Transactional
@Override
public Object deployModelId(String modelId, String categoryCode) {
if (StringUtils.isBlank(modelId) || StringUtils.isBlank(categoryCode)) {
return fail(" Model Id/ classification Id Can't be empty ");
}
try {
Model model = modelService.getModel(modelId.trim());
BpmnModel bpmnModel = modelService.getBpmnModel(model);
// Process tenant ID Don't think about it for the time being ( Source code from fhadmin.cn)
String tenantId = " Process tenant ID ";
Deployment deploy = repositoryService.createDeployment()
.name(model.getName())
.key(model.getKey())
.category(categoryCode)
.tenantId(tenantId)
.addBpmnModel(model.getKey() + ".bpmn", bpmnModel)
.deploy();
return success(" Process deployment successful ");
} catch (Exception e) {
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
return fail(" Process deployment failed , The failure message is ---" + e.getMessage());
}
}边栏推荐
- Relevant knowledge of flowable BPMN
- flutter 如何去掉listview顶部空白的问题
- 300 questions on behalf of the first lecture on determinant
- About string format(String format, Object... args)
- 执行Oracle的SQL语句报错【ORA-00904: “CREATETIME“: 标识符无效】、【ORA-00913: 值过多】解决办法
- Two debugging techniques in embedded software development
- LeetCode 501 :二叉搜索树中的众数
- OSS stores and exports related content
- LeetCode 501 :二叉搜索樹中的眾數
- SQL查询优化原理实例分析
猜你喜欢

LeetCode+ 21 - 25

云图说|每个成功的业务系统都离不开APIG的保驾护航

PHP implementation of iframe cross site text replacement / iframe website text replacement

Perfect decoding purecodec 20220601

【Flutter 问题系列第 6 篇】如何在 Flutter 中实现列表消息的滚动效果

leetcode 130. Surrounded regions (medium)

The time (in minutes) required for a group of workers to cooperate to complete the assembly process of a part are as follows:

Halcon combined with C # to detect surface defects -- affine transformation (II)

基于CenterOS7安装Redis及常见问题解决(带图讲解)

MySQL table mechanism
随机推荐
Kotlin语言现在怎么不火了?
MySQL table mechanism
考研英语词汇 unit1
HALCON联合C#检测表面缺陷——仿射变换(二)
Dell R730 raid5 安装Server 2016(解决磁盘大于2T)
Solve access denied for user 'root' @ 'localhost' (using password: yes)
【视频】KMEANS均值聚类和层次聚类:R语言分析生活幸福指数可视化|数据分享
Postgraduate entrance examination English vocabulary unit1
Data and information resource sharing platform (VII)
Openvp * consolider l'authentification LDAP
Interface test learning notes
LabVIEW打开其他EXE程序
Data file nc6oa Txt consists of 6830 gene expression data from 33 cancer cell lines, each of which is a type of cancer cell. Please cluster the 33 cell lines according to the gene expression data (the
flutter 如何去掉listview顶部空白的问题
Unity script cannot display Chinese comments of C # source code or the script created by vs does not have comments of C # source code
自制APP连接OneNET---实现数据监控和下发控制(MQTT)
Executor - Shutdown、ShutdownNow、awaitTermination 詳解與實戰
Six procurement challenges perplexing Enterprises
Which securities company does qiniu's securities belong to? Is it safe?
About not being able to create a new package under Src in idea