bsh or groovy in services

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

bsh or groovy in services

BJ Freeman
should new mini language use groovy, or continue with bsh.
        <call-bsh><![CDATA[
        HttpHost = conn.getURL().getHost();
        return org.ofbiz.base.util.UtilMisc.toMap("HttpHost", HttpHost);
        ]]></call-bsh>

Reply | Threaded
Open this post in threaded view
|

Re: bsh or groovy in services

Jacques Le Roux
Administrator
We have planned to put groovy support in minilang but for the moment only bsh works...
http://www.nabble.com/Re%3A-svn-commit%3A-r676862---in--ofbiz-trunk-applications%3A-ecommerce-widget--order-webapp-ordermgr-WEB-INF-actions-order--order-widget-ordermgr--td18462705.html

Jacques

From: "BJ Freeman" <[hidden email]>
> should new mini language use groovy, or continue with bsh.
>        <call-bsh><![CDATA[
>        HttpHost = conn.getURL().getHost();
>        return org.ofbiz.base.util.UtilMisc.toMap("HttpHost", HttpHost);
>        ]]></call-bsh>
>

Reply | Threaded
Open this post in threaded view
|

Re: bsh or groovy in services

BJ Freeman
thanks, and thanks you your example in google check out I am speeding up
on using only minilang.
:)

Jacques Le Roux sent the following on 8/7/2008 11:18 AM:

> We have planned to put groovy support in minilang but for the moment
> only bsh works...
> http://www.nabble.com/Re%3A-svn-commit%3A-r676862---in--ofbiz-trunk-applications%3A-ecommerce-widget--order-webapp-ordermgr-WEB-INF-actions-order--order-widget-ordermgr--td18462705.html
>
>
> Jacques
>
> From: "BJ Freeman" <[hidden email]>
>> should new mini language use groovy, or continue with bsh.
>>        <call-bsh><![CDATA[
>>        HttpHost = conn.getURL().getHost();
>>        return org.ofbiz.base.util.UtilMisc.toMap("HttpHost", HttpHost);
>>        ]]></call-bsh>
>>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: bsh or groovy in services

Jacques Le Roux
Administrator
Yes, Minilang is great once understood. Also don't forget the auto-completion documentation feature, really helpful.
But Chris Howe was the man on this, not me. I only commited his work.

Jacques

From: "BJ Freeman" <[hidden email]>

> thanks, and thanks you your example in google check out I am speeding up
> on using only minilang.
> :)
>
> Jacques Le Roux sent the following on 8/7/2008 11:18 AM:
>> We have planned to put groovy support in minilang but for the moment
>> only bsh works...
>> http://www.nabble.com/Re%3A-svn-commit%3A-r676862---in--ofbiz-trunk-applications%3A-ecommerce-widget--order-webapp-ordermgr-WEB-INF-actions-order--order-widget-ordermgr--td18462705.html
>>
>>
>> Jacques
>>
>> From: "BJ Freeman" <[hidden email]>
>>> should new mini language use groovy, or continue with bsh.
>>>        <call-bsh><![CDATA[
>>>        HttpHost = conn.getURL().getHost();
>>>        return org.ofbiz.base.util.UtilMisc.toMap("HttpHost", HttpHost);
>>>        ]]></call-bsh>
>>>
>>
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: bsh or groovy in services

BJ Freeman
Thanks I contacted Chris on IM and thanked him
will run it soon to see what has to be updated.
yes I am looking forward to seeing the autocomplete in action.
it is on my list.

Jacques Le Roux sent the following on 8/7/2008 12:52 PM:

> Yes, Minilang is great once understood. Also don't forget the
> auto-completion documentation feature, really helpful.
> But Chris Howe was the man on this, not me. I only commited his work.
>
> Jacques
>
> From: "BJ Freeman" <[hidden email]>
>> thanks, and thanks you your example in google check out I am speeding up
>> on using only minilang.
>> :)
>>
>> Jacques Le Roux sent the following on 8/7/2008 11:18 AM:
>>> We have planned to put groovy support in minilang but for the moment
>>> only bsh works...
>>> http://www.nabble.com/Re%3A-svn-commit%3A-r676862---in--ofbiz-trunk-applications%3A-ecommerce-widget--order-webapp-ordermgr-WEB-INF-actions-order--order-widget-ordermgr--td18462705.html
>>>
>>>
>>>
>>> Jacques
>>>
>>> From: "BJ Freeman" <[hidden email]>
>>>> should new mini language use groovy, or continue with bsh.
>>>>        <call-bsh><![CDATA[
>>>>        HttpHost = conn.getURL().getHost();
>>>>        return org.ofbiz.base.util.UtilMisc.toMap("HttpHost", HttpHost);
>>>>        ]]></call-bsh>
>>>>
>>>
>>>
>>>
>>>
>>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: bsh or groovy in services

Shereen
hi all
Can I now integrate write groovy in minilang as the bsh? if so how?
the same way e call bsh?
Reply | Threaded
Open this post in threaded view
|

Re: bsh or groovy in services

BJ Freeman
minilanq is xml Groovy is more java.
they are not compatible.
if you asking if you can call a groovy file from minilanq like bsh
<call-bsh><![CDATA[org.ofbiz.commonapp.product.product.KeywordSearch.induceKeywords(newEntity);]]></call-bsh>

then use <script> instead of call-bsh.

for future if you have a question like this I suggest you open the
source code and search.
in this case search for call-bsh.
you will find where the code to handle that is and then look in the
folder for other ways to interact with minilang
since the doc file is not updated since 2004.
http://ofbiz.apache.org/docs/minilang.html#Call

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Shereen sent the following on 10/31/2010 2:01 AM:
>
> hi all
> Can I now integrate write groovy in minilang as the bsh? if so how?
> the same way e call bsh?

Reply | Threaded
Open this post in threaded view
|

Re: bsh or groovy in services

Jacques Le Roux
Administrator
From: "BJ Freeman" <[hidden email]>

> minilanq is xml Groovy is more java.
> they are not compatible.
> if you asking if you can call a groovy file from minilanq like bsh
> <call-bsh><![CDATA[org.ofbiz.commonapp.product.product.KeywordSearch.induceKeywords(newEntity);]]></call-bsh>
>
> then use <script> instead of call-bsh.
>
> for future if you have a question like this I suggest you open the
> source code and search.
> in this case search for call-bsh.
> you will find where the code to handle that is and then look in the
> folder for other ways to interact with minilang
> since the doc file is not updated since 2004.
> http://ofbiz.apache.org/docs/minilang.html#Call

Last sentence is wrong: https://cwiki.apache.org/confluence/display/OFBIZ/Mini-Language+Guide. Though it's true that there have been
no updates for the <script> element. For that see the link to http://ofbiz.apache.org/dtds/simple-methods.xsd in the document above
and look for "script", and you will find the documentation. A better way is to use an XML editor with auto-completion, which is why
the documentation has not been been updated. Okey, it's not an excuse... everybody is welcome...

Jacques

> =========================
> BJ Freeman
> Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
>
>
> Shereen sent the following on 10/31/2010 2:01 AM:
>>
>> hi all
>> Can I now integrate write groovy in minilang as the bsh? if so how?
>> the same way e call bsh?
>


Reply | Threaded
Open this post in threaded view
|

Re: bsh or groovy in services

BJ Freeman
Thanks I spaced on that one.

Jacques Le Roux sent the following on 10/31/2010 10:37 AM:


=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man

> From: "BJ Freeman" <[hidden email]>
>> minilanq is xml Groovy is more java.
>> they are not compatible.
>> if you asking if you can call a groovy file from minilanq like bsh
>> <call-bsh><![CDATA[org.ofbiz.commonapp.product.product.KeywordSearch.induceKeywords(newEntity);]]></call-bsh>
>>
>>
>> then use <script> instead of call-bsh.
>>
>> for future if you have a question like this I suggest you open the
>> source code and search.
>> in this case search for call-bsh.
>> you will find where the code to handle that is and then look in the
>> folder for other ways to interact with minilang
>> since the doc file is not updated since 2004.
>> http://ofbiz.apache.org/docs/minilang.html#Call
>
> Last sentence is wrong:
> https://cwiki.apache.org/confluence/display/OFBIZ/Mini-Language+Guide.
> Though it's true that there have been
> no updates for the <script> element. For that see the link to
> http://ofbiz.apache.org/dtds/simple-methods.xsd in the document above
> and look for "script", and you will find the documentation. A better way
> is to use an XML editor with auto-completion, which is why
> the documentation has not been been updated. Okey, it's not an excuse...
> everybody is welcome...
>
> Jacques
>
>> =========================
>> BJ Freeman
>> Strategic Power Office with Supplier Automation
>> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>> Specialtymarket.com <http://www.specialtymarket.com/>
>> Systems Integrator-- Glad to Assist
>>
>> Chat Y! messenger: bjfr33man
>>
>>
>> Shereen sent the following on 10/31/2010 2:01 AM:
>>>
>>> hi all
>>> Can I now integrate write groovy in minilang as the bsh? if so how?
>>> the same way e call bsh?
>>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: bsh or groovy in services

James McGill-5
In reply to this post by Jacques Le Roux
So are you saying that the <script> tag can be used in minilang
"SimpleMethods" just like it is used in Screen "actions"?
I wish there was an example, but in 9.04 at least the only examples are
Screens, Forms and Menus.

--
James McGill
Phoenix AZ
Reply | Threaded
Open this post in threaded view
|

Re: bsh or groovy in services

BJ Freeman
as Jacques said, using a autocomplete XML editor helps.
or read the docs in the xsd.

James McGill sent the following on 10/31/2010 12:25 PM:
> So are you saying that the<script>  tag can be used in minilang
> "SimpleMethods" just like it is used in Screen "actions"?
> I wish there was an example, but in 9.04 at least the only examples are
> Screens, Forms and Menus.
>
Reply | Threaded
Open this post in threaded view
|

Re: bsh or groovy in services

Jacques Le Roux
Administrator
In reply to this post by James McGill-5
We talk about trunk. We don't have (yet) a politic for online XSD and older versions.
Actually more because of human ressources lack. You could help it, it's open... ;o)

Jacques

From: "James McGill" <[hidden email]>
> So are you saying that the <script> tag can be used in minilang
> "SimpleMethods" just like it is used in Screen "actions"?
> I wish there was an example, but in 9.04 at least the only examples are
> Screens, Forms and Menus.
>
> --
> James McGill
> Phoenix AZ
>