cancel
Showing results for 
Search instead for 
Did you mean: 

JavaScript and Java in activiti end user

bhchemss
Star Contributor
Star Contributor

Hello everyone , 

Can anyone explain to me please  how to use JavaScript in activiti (activiti-app as an end user) , I got confused  between the client side use of  JS  and here in the engine.

for example , methods in forms written in JS , how can I use them to modify something in the DOM ?

Thank you

2 REPLIES 2

yogeshpj
Star Contributor
Star Contributor

The java script which you are using in script task (engine one) is server side java script in which you can use java script root objects to modify workflow variables , start workflow etc. You can not do DOM manipulation here.

The java script which you are using in forms , It is client side js (angular js). Here you can do DOM manipulation using angular JS.

vikash_patel
Star Contributor
Star Contributor

Hi,

for script task you can refer this link Script Task | docs.camunda.org and Activiti User Guide 

and how to use java class refer Tutorial From Devoxx: Activiti, BPMN 2.0 in Action - DZone Java