RE: Discovering Program Flow

2008-04-04 Thread [EMAIL PROTECTED]
Thanks Mridul

This is exactly what I did.  I generally only look at the log file for
errors.  In this case, I found how the invoice was being created as well.

Skip

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Mridul Pathak
Sent: Friday, April 04, 2008 1:05 AM
To: user@ofbiz.apache.org
Subject: Re: Discovering Program Flow


Hi,The best way to trace the process is to watch the consol log properly
and you may go through the control flow, and put debug statements in
different methods to debug the code.  Now moving to your problem, I tried to
trace the flow for Purchase Order and was able to trace where exactly the
call is made for creating Invoice while receiving the purchase order.
On following the consol log carefully I found that after processing
receiveInventory and createShipmentReceipt, on updateShipment service
createInvoiceFromShipment is triggered as an ECA.  And after that
capturePaymentFromInvoice service is triggered as an ECA on
createInvoiceForOrder. The service createInvoiceForOrder is called inline
from createInvoicesFromShipments service which again is called inline from
creatInvoicesFromShipment service.
 I'll like to suggest you to debug the process to understand it better,
because this is a very complicated process and I think just reading out the
code may not be of much help.


On Fri, Apr 4, 2008 at 4:47 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> I am writing purchase orders, and then receiving them.  As part of that
> process, an Invoice is being created when the items are received  I see a
> shipment and shipmentItems created, .ItemIssuance and related,
> InventoryItem
> and Detail, and several others.
>
> For the life of me, I cannot see what code is being called to create the
> Invoice.  This is not the first time I ran into this.
>
> I have searched all the routines called directly and the ecas two levels
> down so far, but still cannot find out how the invoice is being created.
>
> Can someone tell me what is the best way and/or resources to use to
> discover
> how these things happen when you can't trace through the code.
>
> Skip
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
> 10:13 AM
>
>


--
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM



Re: Discovering Program Flow

2008-04-04 Thread Mridul Pathak
Hi,The best way to trace the process is to watch the consol log properly
and you may go through the control flow, and put debug statements in
different methods to debug the code.  Now moving to your problem, I tried to
trace the flow for Purchase Order and was able to trace where exactly the
call is made for creating Invoice while receiving the purchase order.
On following the consol log carefully I found that after processing
receiveInventory and createShipmentReceipt, on updateShipment service
createInvoiceFromShipment is triggered as an ECA.  And after that
capturePaymentFromInvoice service is triggered as an ECA on
createInvoiceForOrder. The service createInvoiceForOrder is called inline
from createInvoicesFromShipments service which again is called inline from
creatInvoicesFromShipment service.
 I'll like to suggest you to debug the process to understand it better,
because this is a very complicated process and I think just reading out the
code may not be of much help.


On Fri, Apr 4, 2008 at 4:47 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> I am writing purchase orders, and then receiving them.  As part of that
> process, an Invoice is being created when the items are received  I see a
> shipment and shipmentItems created, .ItemIssuance and related,
> InventoryItem
> and Detail, and several others.
>
> For the life of me, I cannot see what code is being called to create the
> Invoice.  This is not the first time I ran into this.
>
> I have searched all the routines called directly and the ecas two levels
> down so far, but still cannot find out how the invoice is being created.
>
> Can someone tell me what is the best way and/or resources to use to
> discover
> how these things happen when you can't trace through the code.
>
> Skip
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
> 10:13 AM
>
>


-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892


RE: Discovering Program Flow

2008-04-03 Thread [EMAIL PROTECTED]
Thanks David

Alas, I am stuck with a version from the first of the year (591699). We are
nearly in production now and I cannot get an update until probably September
or later when I'll have time to recertify it.

On the other hand, I found what I needed to know by searching in the log
files with info turned on.

Thanks though

Skip



-Original Message-
From: David E Jones [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2008 5:41 PM
To: user@ofbiz.apache.org
Subject: Re: Discovering Program Flow



New stuff: Webtools -> Artifact Info

-David


On Apr 3, 2008, at 5:17 PM, [EMAIL PROTECTED] wrote:
> I am writing purchase orders, and then receiving them.  As part of
> that
> process, an Invoice is being created when the items are received  I
> see a
> shipment and shipmentItems created, .ItemIssuance and related,
> InventoryItem
> and Detail, and several others.
>
> For the life of me, I cannot see what code is being called to create
> the
> Invoice.  This is not the first time I ran into this.
>
> I have searched all the routines called directly and the ecas two
> levels
> down so far, but still cannot find out how the invoice is being
> created.
>
> Can someone tell me what is the best way and/or resources to use to
> discover
> how these things happen when you can't trace through the code.
>
> Skip
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:
> 3/31/2008
> 10:13 AM
>


No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM



Re: Discovering Program Flow

2008-04-03 Thread David E Jones


New stuff: Webtools -> Artifact Info

-David


On Apr 3, 2008, at 5:17 PM, [EMAIL PROTECTED] wrote:
I am writing purchase orders, and then receiving them.  As part of  
that
process, an Invoice is being created when the items are received  I  
see a
shipment and shipmentItems created, .ItemIssuance and related,  
InventoryItem

and Detail, and several others.

For the life of me, I cannot see what code is being called to create  
the

Invoice.  This is not the first time I ran into this.

I have searched all the routines called directly and the ecas two  
levels
down so far, but still cannot find out how the invoice is being  
created.


Can someone tell me what is the best way and/or resources to use to  
discover

how these things happen when you can't trace through the code.

Skip
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:  
3/31/2008

10:13 AM





Discovering Program Flow

2008-04-03 Thread [EMAIL PROTECTED]
I am writing purchase orders, and then receiving them.  As part of that
process, an Invoice is being created when the items are received  I see a
shipment and shipmentItems created, .ItemIssuance and related, InventoryItem
and Detail, and several others.

For the life of me, I cannot see what code is being called to create the
Invoice.  This is not the first time I ran into this.

I have searched all the routines called directly and the ecas two levels
down so far, but still cannot find out how the invoice is being created.

Can someone tell me what is the best way and/or resources to use to discover
how these things happen when you can't trace through the code.

Skip
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM