cancel
Showing results for 
Search instead for 
Did you mean: 

How to do activiti+jsf integration without cdi.

sherlock
Champ in-the-making
Champ in-the-making
Hi,

I want to create web application with jsf and activiti.
I have seen some examples which are using activiti cdi. Is there any method to create my application without cdi.




Regards
Sherlock
7 REPLIES 7

jbarrez
Star Contributor
Star Contributor
Sure you can, Activiti is just a jar. Just write your jsf application as you would normally do, and use the Activiti services in your backing beans (that's how they are called in JSF if I remember correctly …)

frederikherema1
Star Contributor
Star Contributor
Check out the user guide. Its contains examples of wiring activiti using Spring or standalone. Just use activiti as a service and call it from your JSF-controllers, using either spring-injection of custom service-lookup.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
what is the reason not to go for CDI?

suoza
Champ in-the-making
Champ in-the-making
Hi Frederikheremans,

Can you share an small piece of code for invoking a activiti process from a jsf controller.
I want to give list of processes deployed on a jsf and then a user with manager role can start any process which in turn has user task where jsf UI will be rendered and on submitting it will save the events in db which will be read by a BAM jsf where graphs will be generated out of these events data.

I tried the example of using esper engine in Activiti in Action book but didn't work for me.

frederikherema1
Star Contributor
Star Contributor
Not sure there is much to share. The point is you just need a reference to the ProcessEngine (or RuntimeService) in your JSF-controller classes, using any mechanism you are using now to get services in your backing-beans/controllers

krishna_v174
Champ in-the-making
Champ in-the-making
Hi frederik,

If possible can you post the sample application for JSF ,Spring and Activiti. 

trademak
Star Contributor
Star Contributor
There's no sample JSF application yet.

Best regards,