You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Vikas Mayur <vi...@gmail.com> on 2008/05/23 17:00:39 UTC

Thoughts on adding optional attribute roleTypeId to createPerson service

How about adding an optional attribute roleTypeId to createPerson service to
call createPartyRole on a service eca similar to what is done in for
createPartyContactMech to create the purpose.
This is often used in events and this way there will be no need to
explicitly call createPartyRole service.

Thoughts please.

Vikas

Re: Thoughts on adding optional attribute roleTypeId to createPerson service

Posted by Jacques Le Roux <ja...@les7arts.com>.
Yes the pattern sounds fine to me

Jacques

From: "Vikas Mayur" <vi...@gmail.com>
> Jacques, you are right indeed.
> 
> I think this can also be done for couple of other services:
> 1) createPersonAndUserLogin
> 2) createPartyGroup
> 
> Vikas
> 
> On Sat, May 24, 2008 at 3:02 AM, Jacques Le Roux <
> jacques.le.roux@les7arts.com> wrote:
> 
>> Yes sounds like a good idea and I suppose if roleTypeId is empty the ECA is
>> skipped (did not look at code)
>>
>> Jacques
>>
>> From: "Vikas Mayur" <vi...@gmail.com>
>>
>>  How about adding an optional attribute roleTypeId to createPerson service
>>> to
>>> call createPartyRole on a service eca similar to what is done in for
>>> createPartyContactMech to create the purpose.
>>> This is often used in events and this way there will be no need to
>>> explicitly call createPartyRole service.
>>>
>>> Thoughts please.
>>>
>>> Vikas
>>>
>>>
>

Re: Thoughts on adding optional attribute roleTypeId to createPerson service

Posted by Vikas Mayur <vi...@gmail.com>.
Jacques, you are right indeed.

I think this can also be done for couple of other services:
1) createPersonAndUserLogin
2) createPartyGroup

Vikas

On Sat, May 24, 2008 at 3:02 AM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> Yes sounds like a good idea and I suppose if roleTypeId is empty the ECA is
> skipped (did not look at code)
>
> Jacques
>
> From: "Vikas Mayur" <vi...@gmail.com>
>
>  How about adding an optional attribute roleTypeId to createPerson service
>> to
>> call createPartyRole on a service eca similar to what is done in for
>> createPartyContactMech to create the purpose.
>> This is often used in events and this way there will be no need to
>> explicitly call createPartyRole service.
>>
>> Thoughts please.
>>
>> Vikas
>>
>>

Re: Thoughts on adding optional attribute roleTypeId to createPerson service

Posted by Jacques Le Roux <ja...@les7arts.com>.
Yes sounds like a good idea and I suppose if roleTypeId is empty the ECA is skipped (did not look at code)

Jacques

From: "Vikas Mayur" <vi...@gmail.com>
> How about adding an optional attribute roleTypeId to createPerson service to
> call createPartyRole on a service eca similar to what is done in for
> createPartyContactMech to create the purpose.
> This is often used in events and this way there will be no need to
> explicitly call createPartyRole service.
> 
> Thoughts please.
> 
> Vikas
>

Re: Thoughts on adding optional attribute roleTypeId to createPerson service

Posted by Anil Patel <an...@hotwaxmedia.com>.
+1

Regards
Anil
On May 23, 2008, at 11:00 AM, Vikas Mayur wrote:

> How about adding an optional attribute roleTypeId to createPerson  
> service to
> call createPartyRole on a service eca similar to what is done in for
> createPartyContactMech to create the purpose.
> This is often used in events and this way there will be no need to
> explicitly call createPartyRole service.
>
> Thoughts please.
>
> Vikas