[jboss-user] [JBoss jBPM] - Re: jBPM HowTo add User Group Swimlane to DB?

KVAK_TNT do-not-reply at jboss.com
Mon Jul 31 11:03:13 EDT 2006


OK I solved it myself.

Example:
identity.xml
<identity>
  |   <user name="bert" email="bert at sesamestreet.tv" password="theresabananainyourear" />
  |   <user name="ernie" email="ernie at sesamestreet.tv" password="canthereyoubert,theresabananainmyear" />
  |   <group name="sesameinhabitants" />
  |   <group name="bananalovers" parent="sesameinhabitants" type="fruitpreference" />
  |   <membership user="ernie" group="bananalovers" />
  | </identity>

Your handling class for users and so on:
public void setUp(){
  |   JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | 
  |   Entity[] entities = IdentityXmlParser.parseEntitiesResource("identity.xml");
  | 
  |   for (int i=0; i < entities.length; i++) {
  |      jbpmContext.getSession().save(entities);
  | }


Thats all.

Greetings Claus

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961901#3961901

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961901



More information about the jboss-user mailing list