ServiceName vs CustomMethod

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

ServiceName vs CustomMethod

Malin Nicolas
Hi,

I continue my analysis to use EmailTemplateSetting with Content. My idea
is to use a service to retrieve information needed to merge with
template content before sending the email. The system  already use
Content entity, great ! But to manage template, the field
Content.serviceName isn't really useful for user's screen.

Do a reason exist to use serviceName instead of a relation with
CustomMethod entity ? Historical ?

With the CustomMethod and CustomMethodType, it's easier to show
available services to advanced user.
Any suggest ?

Nicolas

--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/

Reply | Threaded
Open this post in threaded view
|

Re: ServiceName vs CustomMethod

Malin Nicolas
No opinion ?

Le 07/10/2011 18:18, Nicolas Malin a écrit :

> Hi,
>
> I continue my analysis to use EmailTemplateSetting with Content. My
> idea is to use a service to retrieve information needed to merge with
> template content before sending the email. The system  already use
> Content entity, great ! But to manage template, the field
> Content.serviceName isn't really useful for user's screen.
>
> Do a reason exist to use serviceName instead of a relation with
> CustomMethod entity ? Historical ?
>
> With the CustomMethod and CustomMethodType, it's easier to show
> available services to advanced user.
> Any suggest ?
>
> Nicolas
>


--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/

Reply | Threaded
Open this post in threaded view
|

Re: ServiceName vs CustomMethod

Jacques Le Roux
Administrator
I'd say, go as you think it's better, then submit a patch and we will see

Jacques

Nicolas Malin wrote:

> No opinion ?
>
> Le 07/10/2011 18:18, Nicolas Malin a écrit :
>> Hi,
>>
>> I continue my analysis to use EmailTemplateSetting with Content. My
>> idea is to use a service to retrieve information needed to merge with
>> template content before sending the email. The system  already use
>> Content entity, great ! But to manage template, the field
>> Content.serviceName isn't really useful for user's screen.
>>
>> Do a reason exist to use serviceName instead of a relation with
>> CustomMethod entity ? Historical ?
>>
>> With the CustomMethod and CustomMethodType, it's easier to show
>> available services to advanced user.
>> Any suggest ?
>>
>> Nicolas
Reply | Threaded
Open this post in threaded view
|

Re: ServiceName vs CustomMethod

Malin Nicolas
run nico, run ! :)
No problem jacques, I will work on it asap. After update my lasts jira
issues ;)

Nicolas

Le 13/10/2011 17:53, Jacques Le Roux a écrit :

> I'd say, go as you think it's better, then submit a patch and we will see
>
> Jacques
>
> Nicolas Malin wrote:
>> No opinion ?
>>
>> Le 07/10/2011 18:18, Nicolas Malin a écrit :
>>> Hi,
>>>
>>> I continue my analysis to use EmailTemplateSetting with Content. My
>>> idea is to use a service to retrieve information needed to merge with
>>> template content before sending the email. The system  already use
>>> Content entity, great ! But to manage template, the field
>>> Content.serviceName isn't really useful for user's screen.
>>>
>>> Do a reason exist to use serviceName instead of a relation with
>>> CustomMethod entity ? Historical ?
>>>
>>> With the CustomMethod and CustomMethodType, it's easier to show
>>> available services to advanced user.
>>> Any suggest ?
>>>
>>> Nicolas


--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/

Reply | Threaded
Open this post in threaded view
|

Re: ServiceName vs CustomMethod

BJ Freeman
In reply to this post by Malin Nicolas
the modeling for CustomMethod  has been like a Hook in C lanquage.
this allows future addition and selection to performs an operation, to
achieve a particular outcome.
so if you want to have multiple services available for a Template, then
use CustomMethod, otherwise specify the service.

Nicolas Malin sent the following on 10/12/2011 12:42 PM:

> No opinion ?
>
> Le 07/10/2011 18:18, Nicolas Malin a écrit :
>> Hi,
>>
>> I continue my analysis to use EmailTemplateSetting with Content. My
>> idea is to use a service to retrieve information needed to merge with
>> template content before sending the email. The system  already use
>> Content entity, great ! But to manage template, the field
>> Content.serviceName isn't really useful for user's screen.
>>
>> Do a reason exist to use serviceName instead of a relation with
>> CustomMethod entity ? Historical ?
>>
>> With the CustomMethod and CustomMethodType, it's easier to show
>> available services to advanced user.
>> Any suggest ?
>>
>> Nicolas
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: ServiceName vs CustomMethod

Malin Nicolas
In reply to this post by Jacques Le Roux
Done, I open the issue https://issues.apache.org/jira/browse/OFBIZ-5020

Nicolas

Le 13/10/2011 17:53, Jacques Le Roux a écrit :

> I'd say, go as you think it's better, then submit a patch and we will see
>
> Jacques
>
> Nicolas Malin wrote:
>> No opinion ?
>>
>> Le 07/10/2011 18:18, Nicolas Malin a écrit :
>>> Hi,
>>>
>>> I continue my analysis to use EmailTemplateSetting with Content. My
>>> idea is to use a service to retrieve information needed to merge with
>>> template content before sending the email. The system  already use
>>> Content entity, great ! But to manage template, the field
>>> Content.serviceName isn't really useful for user's screen.
>>>
>>> Do a reason exist to use serviceName instead of a relation with
>>> CustomMethod entity ? Historical ?
>>>
>>> With the CustomMethod and CustomMethodType, it's easier to show
>>> available services to advanced user.
>>> Any suggest ?
>>>
>>> Nicolas


--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/