O'Reilly logo

Activiti 5.x Business Process Management Beginner's Guide by Irshad Mansuri, Dr. Zakir Laliwala

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – starting a new process instance

As we have deployed the process into the Activiti Engine, now we have to start the process instance. For that, we have to perform the following steps:

  1. To start the process using API, we have to implement the given code in the class file:
    // Starting the Deployed Process Date date = new Date(); Map<String, Object> variables = new HashMap<String, Object>(); variables.put("customerName", "Irshad"); variables.put("customerEamil", "irshad.mansuri@attuneinfocom.com"); variables.put("trainingTopic", "Activiti"); variables.put("trainingDate", date); RuntimeService runtimeService = processEngine.getRuntimeService(); ProcessInstance processInstance = runtimeService .startProcessInstanceByKey("trainingProcess", ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required