Problem Description
I use a workflow engine with a self-built JSF UI. Some processes in the engine use so called User tasks. These tasks are presented in my JSF frontend and contain small or medium-sized forms, which have to be filled by the user. The workflow frontend should be fully generic - it shouldn't know which tasks or which type of tasks are handled. Therefore, I want to define these task forms not within the JSF app. The forms should "live" along the related process, thus in the workflow engine. That's important because otherwise the frontend app has to be redeployed everytime changes are applied to any minor form.
So I want to fetch the form (basically a .xhtml
file) from the engine and add it to the app as a simple JSF view. If a user wants to complete a task, the corresponding JSF form should be pulled and rendered.
I would like to integrate JSF components (or a whole view) into my application at runtime, thus fully unknown at build or startup-time.
How can I achieve this? Is this even possible?
Thanks in advance!