-
1. Re: Explaination of Evaluation Process Example (jBPM5.2)?
tsurdilovic Dec 29, 2011 11:19 AM (in response to mpgong)1 of 1 people found this helpfulMichael, the jBPM Designer can generate process and usertask forms (see docs: http://docs.jboss.org/jbpm/v5.2/userguide/ch10.html#d0e3195). As far as how it does it - the short answer is by inspecting the BPMN2 of your process. If you are interested in details, you can read the code. Good place would be starting here: https://github.com/tsurdilo/process-designer/blob/master/src/main/java/com/intalio/web/server/TaskFormsServlet.java.
Hope this helps.
-
2. Re: Explaination of Evaluation Process Example (jBPM5.2)?
mpgong Dec 29, 2011 11:29 AM (in response to tsurdilovic)Thanks for the info.
I can start diving into the code.
So when i bring up the designer with evaluation process can i view the existing forms that were created for it. I'm just curious as to where the check box and drop down data gets pulled from.
-
3. Re: Explaination of Evaluation Process Example (jBPM5.2)?
tsurdilovic Dec 29, 2011 11:35 AM (in response to mpgong)If you are talking about the Evaluation process in the jBPM samples, that process was created manually (outside of Designer). It is pretty simple to create forms on your own if you wish. Just need basic understanding of html and freemarker. Process and usertask forms generated by the Designer are stored in Guvnor, in the same package where your process resides in. After generation Designer brings up a page where you can view their source, or you can view your package assets as well to find them there and view the sources (and change them if needed as well).
Hope this helps.
-
4. Re: Explaination of Evaluation Process Example (jBPM5.2)?
mpgong Dec 29, 2011 11:56 AM (in response to tsurdilovic)So is there a way to create the form using eclipse or is this only done in the designer?
Just curious, since i'm still confused as to how the sample Evaluation process out of the jbpm demo gets the form created. There are values in it such as
Rate the overall performance: Check any that apply: Displaying initiative Thriving on change Good communication skills
and i'm just scratching my head as to where this comes from. I don't see the ftl files anywhere for this.
Thanks
-
5. Re: Explaination of Evaluation Process Example (jBPM5.2)?
tsurdilovic Dec 29, 2011 12:05 PM (in response to mpgong)You can created them in eclipse or any text/html editor really. There is no specific editor. Designer generates forms for you which is nice if you do not want to do it yourself, or don't want to deal with maintenance of existing forms after updating your process (just re-generated them in Designer after process updates).
As far as where these forms are, look here: https://github.com/droolsjbpm/jbpm/tree/master/jbpm-gwt/jbpm-gwt-form/src/main/resources.
-
6. Re: Explaination of Evaluation Process Example (jBPM5.2)?
tsurdilovic Dec 29, 2011 12:10 PM (in response to tsurdilovic)Just to add, forms generated by the jBPM Designer have JavaScript validaton built in which is based on the Object types of process variables that you specify in your process BPMN2. They also have some CSS stuff to make them look "pretty".
The down-side of forms generated by Designer is that they all follow the same template. To change anything in the forms, you would have to edit them manually. Creating different templates for the generated forms is pretty easy, and if needed would be really cool for community to contribute some new ones and I can make them pluggable in Designer. For existing tempaltes see here: https://github.com/tsurdilo/process-designer/tree/master/src/main/webapp/taskforms
Hope this helps.