I was scratching my head about how to add additional roles using ArgoUML and ArchGenXML. My workflow (modelled as a statechart diagram) needs extra roles.
It turns out I was worrying about nothing! ArchGenXML will read all the roles you set in 'tagged values' or 'guard roles' (In ArgoUml these are set on 'states' and 'transitions' to define permissions). If the role isn't one of the Plone defaults (Owner, Reviewer, Manager etc) it adds code to your product to add the new role at install time. So.. simply put.. If you want a new role... 1. Build a workflow/statechart diagram in ArgoUML 2. Add the new role as a tagged value to a state or as a guard role to a transition. 3. Save your project, run ArchGenXML and install the product. I don't yet know how to remove the role automatically at uninstall time. Cheers Dave ----- Original Message ----- From: "Martin Aspeli" <[EMAIL PROTECTED]> To: [email protected] Sent: 02 April 2007 23:50:03 o'clock (GMT) Europe/London Subject: Re: [Product Developers] Including role definitions in a Plone product Dave Marsden wrote: > Hi > > Any tips on adding new roles with a Plone Product. I'm developing in > ArgoUml/Archgenxml so ideally I'd like to include role definitions > via ArgoUML. Not sure AGX can do this, but you can do it in Install.py. Take a look at the RoleManager API using the DocFinderTab on the portal root, or work out what the manage_permission form is doing when you use the form at the bottom to add a new role. Or, you can use a GenericSetup extension profile (see the b-org tutorial, for example) and the rolemap.xml file. Martin _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
