![](/img/trans.png)
[英]How to Access non static variable from Another Class without Creating New Object
[英]how set new variable in camunda from non delegate class
我知道我可以通過以下方式獲取流程實例
ProcessInstance processInstance = runtimeService.createProcessInstanceQuery()
.variableValueEquals("tour_id", id)
.singleResult();
但是如何在非委托java類的processInstance中添加新變量?
我發現我該怎么做。
runtimeService.setVariableLocal(processInstance.getId(), "varKey", "varValue");
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.