how to add custom objects to the process instance?

简介:
1
<br>

how to add custom objects to the process instance?

this work:

variableMap.put("assignee", authorizatorObject.getAuthorizator());

this won't
variableMap.put("authorizatorObject", authorizatorObject);

because activiti doesn't know my object!?!?

or on the process definition i need to declare authorizatorObject variable?

want to have the authorizatorObject on my process model



  1. The object need to be Serializable!!!

  2. /get pedidoAutorizacao object from the process
               pedidoAutorizacao = (PedidoAutorizacao) getActivitiEngine().getRuntimeService().getVariable(task.getProcessInstanceId(), "authRequest");













本文转自yunlielai51CTO博客,原文链接:http://blog.51cto.com/4925054/1547144 ,如需转载请自行联系原作者
相关文章
ValidationError: Invalid options object. Dev Server has been initialized using an options object tha
ValidationError: Invalid options object. Dev Server has been initialized using an options object tha
|
6月前
|
JavaScript
【报错】onMounted is called when there is no active component instance too be associated with.
【报错】onMounted is called when there is no active component instance too be associated with.
411 4
Unknown custom element: <add-employee> - did you register the component correctly? For red cursive c
原因: 1.组件名没写对(导入和注册不对应) 2.components少写了个s 3.组件命名最好是驼峰命名 4.导入时语法错误 5.代码中有两个components,后一个的值把前一个覆盖了 6.组件直接循环套用了
101 0
|
11月前
报错modify sync object Modify sync object Failed!
报错modify sync object Modify sync object Failed!
38 1
|
Linux
ERROR: 2 matches found based on name: network product-server_default is ambiguous
ERROR: 2 matches found based on name: network product-server_default is ambiguous
163 0
|
JavaScript 算法 前端开发
Property xxx was accessed during render but is not defined on instance
目前el-form的model主要用表单验证的,也就是配合el-form的rules和el-form-item的prop来使用的。不信的话,你可以增加一个rules和prop(为了调用验证方法,也el-form也加一个ref属性,相当于id或者class选择器的意思),但是不写model,然后验证的话,会提示缺少model,导致无法验证成功。
Property xxx was accessed during render but is not defined on instance
|
Java
The type XXX cannot be resolved. It is indirectly referenced from required .class files
The type XXX cannot be resolved. It is indirectly referenced from required .class files
131 0
|
Java 数据库连接 mybatis
A query was run and no Result Maps were found for the Mapped Statement
A query was run and no Result Maps were found for the Mapped Statement
221 0