1
|
<br>
|
how to add custom objects to the process instance?
this work:
variableMap.put("assignee", authorizatorObject.getAuthorizator());
this won'tvariableMap.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
-
The object need to be Serializable!!!
-
/get pedidoAutorizacao object from the process
pedidoAutorizacao = (PedidoAutorizacao) getActivitiEngine().getRuntimeService().getVariable(task.getProcessInstanceId(), "authRequest");
本文转自yunlielai51CTO博客,原文链接:http://blog.51cto.com/4925054/1547144
,如需转载请自行联系原作者