Hallo Sebastian,
Thank you for the information.
I understood how to start the process with variables:
*****************
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("variable1", "value1");
variables.put("variable2", "value2");
processEngine.getRuntimeService().startProcessInstanceByKey("testProcess", variables);
******************
I still have two questions please:
1- In order to delete a process, I use processEngine.getRuntimeService().deleteProcessInstance(processInstanceId,null); //how to get the processInstanceId?
2- I already wrote an application in a java project and I have separably my process prepackaged in a .war file and deployed on the server. I want that through my application (attached in previous comment), to start and stop the process by clicking the button.
Is the 'Embedded Process Engine' in this case the best? If yes, could you please refer me to some tutorials or give me some detailed explanation of how the code should look like?
Thank you in advance