I have requirement initiate the workflow after submit the form values in the ui level.Means inside the submit listener how to call the workflow and i did all the form values are stored in one object.Now how to i call the workflow,how to send these submitted form values(object) send to the workflow because i want to display these form values in onther form(in UI level).after user approving these,it goes to next user he is also approved then finally complete workflow.
eg:In ui level i create form with the fields username,email,address,mobile etc. finally click submit,after my workflow initiate and approve the data by two level verification by the user(User A,User B).
At the same time i implement code for Inbox,in that inbox i want to display these form values.Whenever user submit the form it goes to inbox,inside inbox i get that approval request,where i approve that one.
Present i created workflow start,user A,user B,end events.Whenever i start process instance flow starts now i displayed which task is running,who is assignee etc from Task service,but i don't know how to pass the submitted form values from ui level to workflow and displayed that data in inbox.
I know through the getVariables() we get all attributes.but how to get from ui to workflow and from workflow to ui?