Hi Team,
I designed a simple process like as below. here we have two user tasks. each task has frame with some fields.
I am using this process in spring framework. i started the process by using
runtimeService.startProcessInstanceByKey("additionJavaExample");
at start event.
In my spring controller, display the page for user inputs ( taking two numbers for addition ) when the process started. after getting inputs for first user task, how can i pass those values to that?
I am new to activiti framework here please help me out this.
Hi!,
Use a script task with the calculous, p.e.:
In Script Task (javascript):
var n1 = execution.getVariable("numberone");
var n2 = execution.getVariable("numbertwo");
var res = parseInt(n1) + parseInt(n2);
execution.setVariable("varRes", res.toString());
In form Result:
Best regards,
fegor
Thank you for your reply
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.