condition-service tag

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

condition-service tag

james_sg
Hi all,

I am looking to use the condition-service tag in an eca. Can't find an example for it.

Regards,
James
Reply | Threaded
Open this post in threaded view
|

Re: condition-service tag

Jacques Le Roux
Administrator
There are no examples. You simply specify the name of a service, and it calls that service with the current ECA context. The service returns a
boolean. I must say I never used it...

Jacques

Le 15/12/2014 17:16, james_sg a écrit :

> Hi all,
>
> I am looking to use the condition-service tag in an eca. Can't find an
> example for it.
>
> Regards,
> James
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/condition-service-tag-tp4659623.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: condition-service tag

Deepak Dixit-2
Hi James,

Here is an example of condition-service:

<condition-service service-name="isTestConditionService”/>

Here is the service definition:

<service name="isTestConditionService" engine="simple"
            location=“<location>" invoke="isTestConditionService" auth="true">
        <description>Test service for condition-service</description>
        <attribute name="serviceContext" mode="IN" type="Map" optional="true"/>
        <attribute name="serviceName" mode="IN" type="String" optional="true"/>
        <attribute name="conditionReply" mode="OUT" type="Boolean"/>
</service>

Service must return conditionReply as Boolean.

Thanks & Regards

Deepak Dixit


> On Dec 16, 2014, at 9:34 AM, Jacques Le Roux <[hidden email]> wrote:
>
> There are no examples. You simply specify the name of a service, and it calls that service with the current ECA context. The service returns a boolean. I must say I never used it...
>
> Jacques
>
> Le 15/12/2014 17:16, james_sg a écrit :
>> Hi all,
>>
>> I am looking to use the condition-service tag in an eca. Can't find an
>> example for it.
>>
>> Regards,
>> James
>>
>>
>>
>> --
>> View this message in context: http://ofbiz.135035.n4.nabble.com/condition-service-tag-tp4659623.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>


smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: condition-service tag

james_sg
Thanks Deepak

Deepak Dixit-2 wrote
Hi James,

Here is an example of condition-service:

<condition-service service-name="isTestConditionService”/>

Here is the service definition:

<service name="isTestConditionService" engine="simple"
            location=“<location>" invoke="isTestConditionService" auth="true">
        <description>Test service for condition-service</description>
        <attribute name="serviceContext" mode="IN" type="Map" optional="true"/>
        <attribute name="serviceName" mode="IN" type="String" optional="true"/>
        <attribute name="conditionReply" mode="OUT" type="Boolean"/>
</service>

Service must return conditionReply as Boolean.

Thanks & Regards

Deepak Dixit


> On Dec 16, 2014, at 9:34 AM, Jacques Le Roux <[hidden email]> wrote:
>
> There are no examples. You simply specify the name of a service, and it calls that service with the current ECA context. The service returns a boolean. I must say I never used it...
>
> Jacques
>
> Le 15/12/2014 17:16, james_sg a écrit :
>> Hi all,
>>
>> I am looking to use the condition-service tag in an eca. Can't find an
>> example for it.
>>
>> Regards,
>> James
>>
>>
>>
>> --
>> View this message in context: http://ofbiz.135035.n4.nabble.com/condition-service-tag-tp4659623.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>



smime.p7s (6K) <http://ofbiz.135035.n4.nabble.com/attachment/4659641/0/smime.p7s>