Could anyone provide a tutorial, documentation or an example explaining how to attach a user intrface to the Service Task element in the process definition. To be precise, I am interested to know how to integrate jBPM 5 with Seam framework. How to attach an XHTML via Seam component to the service task? When the process instance reaches to the point where service task gets executed, how to show an user interface for human interaction.
First of all service task is not considered state based meaning it will not wait for any input once triggered. What you are looking for is user task that is dedicated to this type of interactions.
Not sure I understand your use case here...
I would say that seam component could be more like a form of the user task instead of ftl. As you could make use of TaskClient API in your seam component. and interact with task server to:
- get tasks assigned to given user
- get details of the task when working on the task
- notify it about completion of the given task
ftl is just one implementation currently available by default in jbpm-console but in standalone implementations you could use UI framework of your choice.