Tommer Wizansky [
http://community.jboss.org/people/twizansk] created the discussion
"How to query tasks"
To view the discussion, visit:
http://community.jboss.org/message/642493#642493
--------------------------------------------------------------
Here's the situation I have. I want to write a simple user registration flow which
should look something like this:
1) user requests registration
2) system an email with a confirmation link and pauses the process until the user confirms
the registration.
3) user follows the link and clicks "confirm" (or something like that)
4) the system continues the process and creates a new user in the system.
3) Is implemented with a human task. My problem lies with the transition from 3) to 4).
The new user is not an actor in the jBPM environment so I can't assign the human task
to him. I have to assign it to some general "registration-manager" actor. In
that case, in step 4), how do I retrieve the correct task and continue the process? The
only way I can see is to retrieve all the tasks assigned to
"registration-manager" and search them in code but that involves a lot of
overhead since we may have many new users.
I would like to retrieve only the task associated with the specific new user that is
registering but I don't see any way to do this. Is there any way to query tasks with
more granularity that just the actor they are assigned to?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/642493#642493]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]