[jboss-user] [jBPM] - Persisting Human Task, letting user to complete after server restart.

Adam Bach do-not-reply at jboss.com
Thu Apr 21 17:47:08 EDT 2011

Adam Bach [http://community.jboss.org/people/heathcliff] created the discussion

"Persisting Human Task, letting user to complete after server restart."

To view the discussion, visit: http://community.jboss.org/message/601540#601540

I'm All!

Here is my scenerio:
1. Web Application
2. User is not logged in.
3. Some Process gets to the point where a user needs to perform some task like to call a client and make an appointment and than provide that data to the system so the process can go on.
4. Server/application gets restarted.
5. User loggs in and sees pending tasks to do.
6. User calls client and makes appointment.
7. User opens the form and provides appointment data. Submit
8. Proces receives data and follows to the next task.

>From what I've read in user guide User/Human Tasks depand on UI or some WebService to "suspend" the task long enough for the user to finish taks but the user must finish his job before app gets closed. There is no persisting the state of tasn and restoring it when the user comes back later.

Here is my dilema. Are Tasks a work units that must be executed and finished while program is running? Like that process must get to some save point like waiting for message/event before it can be persisted? Or mabe User/Human Task can be suspended, persisted, restored and than finished somewhere in the future??? How should I model that in bpmn2?
Sth like that models saving to database info that user must fillin the form and waits for message from application:
 http://community.jboss.org/servlet/JiveServlet/showImage/2-601540-16199/SaveToDbThanMessage.png  http://community.jboss.org/servlet/JiveServlet/downloadImage/2-601540-16199/450-105/SaveToDbThanMessage.png 
This isn't "good", I mean logicaly its correct but for me It should look more like:
 http://community.jboss.org/servlet/JiveServlet/showImage/2-601540-16200/LongHumanTask.png  http://community.jboss.org/servlet/JiveServlet/downloadImage/2-601540-16200/450-106/LongHumanTask.png 
This one uses only one element for the whole operation of storing data,retrieving them when user loggsin and entering data to the process. But I cant find a way to implement this behavior using the JBPM5 API. WorkItem and WorkItemManager are provided from the system and they can't be persisted and retrieved later on.

Please help as this is actualy the most important aspect of process construction for me.
Thx to all

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110421/78938afb/attachment-0001.html 

More information about the jboss-user mailing list