working out the significance of various RoleTypes

2010-09-19 Thread chris snow
I'm manually working through the ecommerce demo setup data to create a new site and along the way gain more insight into the ofbiz data structures. When I encounter a RoleType, I want to know what effect this role has on ofbiz. For example, the RoleType: MANAGER, Party partyId=admin

Re: working out the significance of various RoleTypes

2010-09-19 Thread chris snow
A text search on the BUYER role type suggests that RoleType doesn't actually do anything other than act as a label for Parties. I must be missing something? $ grep -r 'BUYER' * applications/securityext/data/UserDemoData.xml:PartyRole partyId=admin roleTypeId=BUYER/

Re: working out the significance of various RoleTypes

2010-09-19 Thread BJ Freeman
the basic use of roles it to define before there is data available. it also is a way of selecting certain function (roles) of a party. The Demo data is not complete and is there to show that one of the roles you can have is BUYER. these are covered in the Datamodel book vol I. chris snow sent

Re: working out the significance of various RoleTypes

2010-09-19 Thread chris snow
This is confusing me, so what about if I rephrase my question: - I have a party, what roles should I give to the party? I don't want to give a role if I don't know what effect that role has. For example, I have an employee who is a manager of a small team in my packing department. There is a

Re: working out the significance of various RoleTypes

2010-09-19 Thread BJ Freeman
MANAGER is generic and for small company enough you want more granuallity meand you create a MANAGER_PACKING Then implement it in the Facilities code and screens then remove the MANAGER from your party and add your MANAGER_PACKING you can also add TEAM_PACKING, for Those working in Packing.

Re: working out the significance of various RoleTypes

2010-09-19 Thread Jonatan Soto
I've have had the same confusion and I finally believe that some of them are used in the OOTB business logic (ie: BILL_FROM_VENDOR for Purchase Invoices) and others are intended for custom customization. Don't know if I am right On Sun, Sep 19, 2010 at 11:07 PM, chris snow chsnow...@gmail.com

Re: working out the significance of various RoleTypes

2010-09-19 Thread Jonatan Soto
sorry, I meant own customization On Sun, Sep 19, 2010 at 11:16 PM, BJ Freeman bjf...@free-man.net wrote: MANAGER is generic and for small company enough you want more granuallity meand you create a MANAGER_PACKING Then implement it in the Facilities code and screens then remove the MANAGER

Re: working out the significance of various RoleTypes

2010-09-19 Thread chris snow
BJ, there are a quite a few pre-defined roles in PartyTypeData how will I know when to use one of the pre-defined RoleTypes and when to create my own, unless I know exactly what the pre-defined roles do? On Sun, Sep 19, 2010 at 10:16 PM, BJ Freeman bjf...@free-man.net wrote: MANAGER is generic

Re: working out the significance of various RoleTypes

2010-09-19 Thread chris snow
Hi Jonatan, I think all we need is a list of the pre-defined RoleTypes and what the impact of each RoleType has on ofbiz. It's impossible to choose a role type without having that list! I'm happy to create the list - I just want to make sure I'm looking in the right place for the information

Re: working out the significance of various RoleTypes

2010-09-19 Thread BJ Freeman
Like I said most are defined and explained in the Datamodel book. I do admit that an artifact in webtools, like the entity and services that shows the roles and all uses(services, widget, ftl) would make it better. so other than the book, doing searches is the only other way, currently.

Re: working out the significance of various RoleTypes

2010-09-19 Thread BJ Freeman
I agree Chris look forward to you code, will be added to setup when it gets there. chris snow sent the following on 9/19/2010 2:28 PM: Hi Jonatan, I think all we need is a list of the pre-defined RoleTypes and what the impact of each RoleType has on ofbiz. It's impossible to choose a role

Re: working out the significance of various RoleTypes

2010-09-19 Thread chris snow
Hi BJ, I'm not sure the datamodel book has been followed 100%, so I think the safest way to work out the intention of each RoleType is to search through the code and document my findings. Thanks for pointing me in the right direction.

Re: working out the significance of various RoleTypes

2010-09-19 Thread chris snow
Hi BJ/Jonatan, I have created an jira issue to discuss the documentation for RoleType: https://issues.apache.org/jira/browse/OFBIZ-3949 Attached are some example Descriptions for RoleType - is there any additional information that would be useful? Does the format make sense, is it readable?