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 – working with users

To access user-related information, we have to use an identity-related URL, that is, /identity/users. Now, we will use the identity service. Perform the following steps to archive the identity service:

  1. Add a user to the Activiti Engine using the createUser method in the Process_Deployment class through which we will pass the details of the user as follows:
    public static JSONObject createUser() throws JSONException, IOException { String uri = REST_URI + "/identity/users"; JSONObject my_data = new JSONObject(); my_data.put("id", "irshad"); my_data.put("firstName", "Irshad"); my_data.put("lastName", "Mansuri"); my_data.put("email", "irshad@localhost.com"); my_data.put("password", "irshad"); Representation response ...

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