Creating an accounting transaction from a plugin?

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

Creating an accounting transaction from a plugin?

Sach Shah
Hi All,

I am just starting out in OfBiz and have been going through the
documentation and mailing list here.

I am at the point where I was able to add fields to the AcctgTrans entity
using a plugin.  Now, I want to do two things:

1. Expose a few different RESTful web services to a client.  I saw the the
Apache Wink technique is deprecated.  Is there a recommended way of doing
this?

2. When a request is received, I need to do things like creating a new
invoice/payment, creating an accounting transaction to simply move money
between accounts, etc.  I know I can take those actions from the OfBiz UI.
However, how do I do so programmatically from a plugin?

Thank you for your help,
Sachin.
Reply | Threaded
Open this post in threaded view
|

Re: Creating an accounting transaction from a plugin?

Aishwary Shrivastava
Hello, Sachin.

In this mail thread <http://markmail.org/message/w3vagy5u7xw7wsio>, Mandeep
answered about  how to integrate OFBiz-Services
into some frontend, this might help you with the first thing.

Just in case you missed it while going through the mailing list here :)

Thanks and Regards,
Aishwary Shrivastava
Enterprise Software Engineer
HotWax Systems <http://www.hotwaxsystems.com/>

On Fri, Jul 14, 2017 at 4:01 AM, Sach Shah <[hidden email]> wrote:

> Hi All,
>
> I am just starting out in OfBiz and have been going through the
> documentation and mailing list here.
>
> I am at the point where I was able to add fields to the AcctgTrans entity
> using a plugin.  Now, I want to do two things:
>
> 1. Expose a few different RESTful web services to a client.  I saw the the
> Apache Wink technique is deprecated.  Is there a recommended way of doing
> this?
>
> 2. When a request is received, I need to do things like creating a new
> invoice/payment, creating an accounting transaction to simply move money
> between accounts, etc.  I know I can take those actions from the OfBiz UI.
> However, how do I do so programmatically from a plugin?
>
> Thank you for your help,
> Sachin.
>
Reply | Threaded
Open this post in threaded view
|

Re: Creating an accounting transaction from a plugin?

Sach Shah
Thank you Aishwary.  I will take a look at RestEasy.  Do you know where I
can look in the manual for how to invoke services through Java code?

On Thu, Jul 13, 2017 at 11:22 PM Aishwary Shrivastava <
[hidden email]> wrote:

> Hello, Sachin.
>
> In this mail thread <http://markmail.org/message/w3vagy5u7xw7wsio>,
> Mandeep answered about  how to integrate OFBiz-Services
> into some frontend, this might help you with the first thing.
>
> Just in case you missed it while going through the mailing list here :)
>
> Thanks and Regards,
> Aishwary Shrivastava
> Enterprise Software Engineer
> HotWax Systems <http://www.hotwaxsystems.com/>
>
> On Fri, Jul 14, 2017 at 4:01 AM, Sach Shah <[hidden email]> wrote:
>
>> Hi All,
>>
>> I am just starting out in OfBiz and have been going through the
>> documentation and mailing list here.
>>
>> I am at the point where I was able to add fields to the AcctgTrans entity
>> using a plugin.  Now, I want to do two things:
>>
>> 1. Expose a few different RESTful web services to a client.  I saw the the
>> Apache Wink technique is deprecated.  Is there a recommended way of doing
>> this?
>>
>> 2. When a request is received, I need to do things like creating a new
>> invoice/payment, creating an accounting transaction to simply move money
>> between accounts, etc.  I know I can take those actions from the OfBiz UI.
>> However, how do I do so programmatically from a plugin?
>>
>> Thank you for your help,
>> Sachin.
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Creating an accounting transaction from a plugin?

Aishwary Shrivastava
Invoking services using Java is pretty easy in ofbiz,
all you need to do is import org.ofbiz.service.DispatchContext in your java
class,
it has two methods for invoking services i.e "runSync" and "runAsync".
You can refer OfBiz's code only to see how things work,
like in PartyServices.java, InventoryServices.java etc.

HTH

Thanks and Regards,
Aishwary Shrivastava
Enterprise Software Engineer
HotWax Systems <http://www.hotwaxsystems.com/>

On Fri, Jul 14, 2017 at 7:38 PM, Sach Shah <[hidden email]> wrote:

> Thank you Aishwary.  I will take a look at RestEasy.  Do you know where I
> can look in the manual for how to invoke services through Java code?
>
> On Thu, Jul 13, 2017 at 11:22 PM Aishwary Shrivastava <
> [hidden email]> wrote:
>
>> Hello, Sachin.
>>
>> In this mail thread <http://markmail.org/message/w3vagy5u7xw7wsio>,
>> Mandeep answered about  how to integrate OFBiz-Services
>> into some frontend, this might help you with the first thing.
>>
>> Just in case you missed it while going through the mailing list here :)
>>
>> Thanks and Regards,
>> Aishwary Shrivastava
>> Enterprise Software Engineer
>> HotWax Systems <http://www.hotwaxsystems.com/>
>>
>> On Fri, Jul 14, 2017 at 4:01 AM, Sach Shah <[hidden email]> wrote:
>>
>>> Hi All,
>>>
>>> I am just starting out in OfBiz and have been going through the
>>> documentation and mailing list here.
>>>
>>> I am at the point where I was able to add fields to the AcctgTrans entity
>>> using a plugin.  Now, I want to do two things:
>>>
>>> 1. Expose a few different RESTful web services to a client.  I saw the
>>> the
>>> Apache Wink technique is deprecated.  Is there a recommended way of doing
>>> this?
>>>
>>> 2. When a request is received, I need to do things like creating a new
>>> invoice/payment, creating an accounting transaction to simply move money
>>> between accounts, etc.  I know I can take those actions from the OfBiz
>>> UI.
>>> However, how do I do so programmatically from a plugin?
>>>
>>> Thank you for your help,
>>> Sachin.
>>>
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Creating an accounting transaction from a plugin?

Sach Shah
Thanks a lot!  I will try it now.

On Fri, Jul 14, 2017 at 9:33 AM Aishwary Shrivastava <
[hidden email]> wrote:

> Invoking services using Java is pretty easy in ofbiz,
> all you need to do is import org.ofbiz.service.DispatchContext in your
> java class,
> it has two methods for invoking services i.e "runSync" and "runAsync".
> You can refer OfBiz's code only to see how things work,
> like in PartyServices.java, InventoryServices.java etc.
>
> HTH
>
> Thanks and Regards,
> Aishwary Shrivastava
> Enterprise Software Engineer
> HotWax Systems <http://www.hotwaxsystems.com/>
>
> On Fri, Jul 14, 2017 at 7:38 PM, Sach Shah <[hidden email]> wrote:
>
>> Thank you Aishwary.  I will take a look at RestEasy.  Do you know where I
>> can look in the manual for how to invoke services through Java code?
>>
>> On Thu, Jul 13, 2017 at 11:22 PM Aishwary Shrivastava <
>> [hidden email]> wrote:
>>
>>> Hello, Sachin.
>>>
>>> In this mail thread <http://markmail.org/message/w3vagy5u7xw7wsio>,
>>> Mandeep answered about  how to integrate OFBiz-Services
>>> into some frontend, this might help you with the first thing.
>>>
>>> Just in case you missed it while going through the mailing list here :)
>>>
>>> Thanks and Regards,
>>> Aishwary Shrivastava
>>> Enterprise Software Engineer
>>> HotWax Systems <http://www.hotwaxsystems.com/>
>>>
>>> On Fri, Jul 14, 2017 at 4:01 AM, Sach Shah <[hidden email]> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I am just starting out in OfBiz and have been going through the
>>>> documentation and mailing list here.
>>>>
>>>> I am at the point where I was able to add fields to the AcctgTrans
>>>> entity
>>>> using a plugin.  Now, I want to do two things:
>>>>
>>>> 1. Expose a few different RESTful web services to a client.  I saw the
>>>> the
>>>> Apache Wink technique is deprecated.  Is there a recommended way of
>>>> doing
>>>> this?
>>>>
>>>> 2. When a request is received, I need to do things like creating a new
>>>> invoice/payment, creating an accounting transaction to simply move money
>>>> between accounts, etc.  I know I can take those actions from the OfBiz
>>>> UI.
>>>> However, how do I do so programmatically from a plugin?
>>>>
>>>> Thank you for your help,
>>>> Sachin.
>>>>
>>>
>>>
>