-
1. Re: Writing ftl files and invoking them in browser
tsurdilovic Dec 29, 2011 11:58 AM (in response to murthy516)1 of 1 people found this helpfulhttp://freemarker.sourceforge.net/ should help you understand what are freemarker templates. The jBPM console combines your process/usertask ftl templates with the information of your process instance to generate the html that is shown in the browser.
Hope this helps.
-
2. Re: Writing ftl files and invoking them in browser
murthy516 Dec 30, 2011 6:28 AM (in response to tsurdilovic)Thanks for your reply.
I shall write my requirement in more detail. What we are looking for is to integrate Portal Application and JBPM together.
We will define our process in Guvrnor/JBPM and use .ftl files to create human tasks and deploy the process.
To create/access the tasks assigned, the user should login into jBPM Console application.
We are looking at the option of opening the tasks directly from our portal application.To acheive this, we don't want to create the GUIs(for human tasks) in Portal again.Is there a way for us to open the human tasks UIs( .ftl files created for each human task) in our Portal Application.
Regards,
Krishna Murthy
-
3. Re: Writing ftl files and invoking them in browser
ram-biradar Dec 30, 2011 6:41 AM (in response to murthy516)I'm also looking for the same in that context.Anyone please suggest me
Regards,
Ram
-
4. Re: Writing ftl files and invoking them in browser
salaboy21 Dec 30, 2011 6:45 AM (in response to ram-biradar)1 of 1 people found this helpfulI'm pretty sure that you can, you will need to write a small portlet that go and look for the FTL definition and renders it right? Obviously you will need to have your human task server up and running in order to complete the interaction.
Cheers
-
5. Re: Writing ftl files and invoking them in browser
murthy516 Dec 30, 2011 7:10 AM (in response to salaboy21)Hi Mauricio
Thanks for the details. I can write a generic portlet to get the task details. But i am unable to proceed after this, how do i open the correct ftl that is associated to the task. Do you have any sample code or let me know the API that should i use to get the access to the ftl files ? Please let me know.
-
6. Re: Writing ftl files and invoking them in browser
ram-biradar Dec 30, 2011 7:12 AM (in response to murthy516)Hi Mauricio/Krishna Murthy
I too looking for a solution to integrate my application with JBPM. Pls. let me know if you find out a way
Thanks
Ram
-
7. Re: Writing ftl files and invoking them in browser
salaboy21 Dec 30, 2011 7:16 AM (in response to ram-biradar)I will not look for a solution. Can you try writing a portlet to do what I mention?
Cheers
-
8. Re: Writing ftl files and invoking them in browser
murthy516 Dec 30, 2011 7:20 AM (in response to salaboy21)Hi Mauricio
I am delighted & thankful to see your reply. Can you tell the API/Class name so that we get some hint on implementing this ?
Thanks
Krishnamurthy
-
9. Re: Writing ftl files and invoking them in browser
salaboy21 Dec 30, 2011 7:25 AM (in response to murthy516)You can take a look at the current jBPM-console implementation to see how it retrieves the FTLs from guvnor and renders it. (https://github.com/heiko-braun/bpm-console)Then it's up to you to use the Portlets API to write your portlet that contains the same logic that the jBPM console.
Cheers
-
10. Re: Writing ftl files and invoking them in browser
ram-biradar Dec 30, 2011 8:49 AM (in response to salaboy21)Hi Mauricio/Krishnamurthy,
I have gone through above link,if you have any simplified solution for this.
Thanks & Regards,
Ram Biradar
-
11. Re: Writing ftl files and invoking them in browser
yoganandjg Dec 30, 2011 8:54 AM (in response to salaboy21)Hi guys,
I'm also facing the sample problem. I have gone through the above link. I'm unable to understand completely.please let me know simple code so that i can access to ftl files and integrate with my own application.
Thanks
Yoganand.
-
12. Re: Writing ftl files and invoking them in browser
salaboy21 Dec 30, 2011 9:06 AM (in response to ram-biradar)A simplified solution for what? you need to go inside the app and look where an FTL file is being picked, in order to understand how to write a portlet that do that for you..
I recommend you to take some time to analyze the jbpm-console.
Cheers
-
13. Re: Writing ftl files and invoking them in browser
mailformrx Dec 31, 2011 1:20 AM (in response to murthy516)Hi Mauricio
I was always wanting to acheive this. But i have some different approach.
To acheive the above requirement, isn't it a good option to bypass the console login and open the console home page from external webapplication.
We need to find a way to bypass the console login. Can you help on to give some examples/APIs to acheive this?
In this case, do we have option to change the look&feel of the console UI so that it can have the same appeal as our webapplication?
In my opinion if we acheive this, then this would be way simpler than trying to open the .ftl files.
Please provide your feedback as which one of it would be a good approach.
Thanks
Rajesh
-
14. Re: Writing ftl files and invoking them in browser
tsurdilovic Dec 31, 2011 3:04 AM (in response to mailformrx)You cannot do either without changing code in the bpm console and building it manually. The github repo is here if you are interested: https://github.com/bpmc/bpm-console.