how to add custom objects to the process instance?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2011 06:58 AM
how to add custom objects to the process instance?
this work:
this won't
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
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
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2011 08:35 AM
The object need to be Serializable?
changed the object to a JPA entity and works..
Problem solved
changed the object to a JPA entity and works..
Problem solved
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2011 03:52 AM
Normally, Serializable is enough. JPA will of course also work.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2011 06:48 AM
from a Task object how can I get to this variable?
to be able to mess with the object on a given userTask…
to be able to mess with the object on a given userTask…
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2011 11:58 AM
Solved:
//get pedidoAutorizacao object from the process
pedidoAutorizacao = (PedidoAutorizacao) getActivitiEngine().getRuntimeService().getVariable(task.getProcessInstanceId(), "authRequest");
//get pedidoAutorizacao object from the process
pedidoAutorizacao = (PedidoAutorizacao) getActivitiEngine().getRuntimeService().getVariable(task.getProcessInstanceId(), "authRequest");
