Thanks for the hints, i got it now, but, still have a little problem. Based in 
some test sources i got this to create my tasks for the wf in the listener:

                List<VirtualTaskInstance> participants = new 
ArrayList<VirtualTaskInstance>();
                participants.add(new VirtualTaskInstance("bob", "dobob", 
"yobob", null));
                participants.add(new VirtualTaskInstance("trudy", "dotrudy", 
"yotrudy", null));
                Map<String, Serializable>variabs = 
Collections.singletonMap("participants",
                        (Serializable) participants);
                getJbpmService().createProcessInstance(administrator, 
"review_parallel", doc, variabs, null);

It works good, as the wf is created the way I expect, but, I don't get the way 
to create a real TaskInstance, where can I find some documentation to create it 
properly?
I guess the way to go would be create a List of TaskInstance's, but how to 
construct my TasksIntance's?

I noticed that, when trying to call the createProcessInstance it asks for 
actors instead of participants, is that solved just with changing the string, 
or there are some others
things under that?

Btw, it's supposed that the roles that are involved in the task already exists 
but, is there a way to create them on the fly if they don't exists?
--
Posted by "arod" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3255#9982>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to