You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Shereen <sh...@hotmail.com> on 2010/10/31 10:01:42 UTC

Re: bsh or groovy in services

hi all
Can I now integrate write groovy in minilang as the bsh? if so how?
the same way e call bsh?
-- 
View this message in context: http://ofbiz.135035.n4.nabble.com/bsh-or-groovy-in-services-tp152367p3020941.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: bsh or groovy in services

Posted by BJ Freeman <bj...@free-man.net>.
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.
>

Re: bsh or groovy in services

Posted by Jacques Le Roux <ja...@les7arts.com>.
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" <ja...@ableengineering.com>
> 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
>


Re: bsh or groovy in services

Posted by James McGill <ja...@ableengineering.com>.
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

Re: bsh or groovy in services

Posted by BJ Freeman <bj...@free-man.net>.
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" <bj...@free-man.net>
>> 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?
>>
>
>
>

Re: bsh or groovy in services

Posted by Jacques Le Roux <ja...@les7arts.com>.
From: "BJ Freeman" <bj...@free-man.net>
> 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?
>



Re: bsh or groovy in services

Posted by BJ Freeman <bj...@free-man.net>.
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?