activiti userinfo

act_id_info

User user = is.newUser(userId);
user.setEmail(userId+"@gamil.com");
user.setPassword("1234567");
is.saveUser(user);
User loadUser = is.createUserQuery().userId(userId).singleResult();
assertNotNull(loadUser);

is.setUserInfo(userId,"age","18");
is.setUserInfo(userId,"phone","168xxxx2222");

String age = is.getUserInfo(userId,"age");
String phone = is.getUserInfo(userId,"phone");

assertEquals("18",age);
assertEquals("168xxxx2222",phone);

猜你喜欢

转载自blog.csdn.net/kq1983/article/details/89187956