Updating OFBiz from 16.11.07 to 17.12.01

2020-04-25 Thread Jukka Palko
Hello,

I'm basically completely new to OFBiz but not new to system administration in 
general with more than 20 years of Linux and Unix experience.

My question is what are the upgrade procedures for an OFBiz installation. I 
have done a MariaDB database on Debian 10 and configured OFBiz to use that as 
the backend.

The installation was built using command
./gradlew --parallel-threads=8 cleanAll loadDefault

I configured a systemd service file for the installation as follows:
--
[Unit]
Description=OFBiz Service Daemon
After=network.target auditd.service
After=network-online.target
Wants=network-online.target

[Service]
User=ofbiz
WorkingDirectory=/srv/ofbiz/apache-ofbiz
ExecStart=/srv/ofbiz/apache-ofbiz/gradlew ofbiz
ExecStop=/srv/ofbiz/apache-ofbiz/gradlew 'ofbiz --shutdown'

[Install]
WantedBy=multi-user.target
--

The installation is running fine I guess which is to say that it does not seem 
to complain on any web page I've browsed on it thus far.

However, I did the install while 16.11.07 was the newest version and now there 
is the version 17.12.01 available. What are the update/upgrade steps to move 
my install from the previous version to the new one?


Best regards,
Jukka Palko




publickey - jpalko@pm.me.asc.pgp
Description: application/pgp-key


signature.asc
Description: OpenPGP digital signature


Re: Demos down

2020-04-25 Thread Jacques Le Roux

Le 25/04/2020 à 12:52, Jacques Le Roux a écrit :

Hi All,

Just started my machine and the problem seems more the VM. I can't connect 
there. I'll ask Infra and let you know

Jacques


Swapnil M Mane created https://issues.apache.org/jira/browse/INFRA-20189 for 
the demos issue

Jacques



Demos down

2020-04-25 Thread Jacques Le Roux

Hi All,

Just started my machine and the problem seems more the VM. I can't connect 
there. I'll ask Infra and let you know

Jacques



Re: Valid Item Status for partial shipment

2020-04-25 Thread Shikha Jaiswal
Thanks, everyone for your help.

Best,
Shikha Jaiswal
Senior Enterprise Software Engineer

On Sat, Apr 25, 2020 at 1:02 PM Suraj Khurana 
wrote:

> Yes.
>
> Adding up to this, in fact, OrderReadHelper.*getItemShippedQuantity*
> handles *cancelQuantity* effectively. So we can efficiently get desired
> results using these methods.
>
> HTH.
>
> --
> Best Regards,
> Suraj Khurana
> Senior Technical Consultant
>
> On Sat, Apr 25, 2020 at 12:19 PM Mridul Pathak <
> mridul.pat...@hotwaxsystems.com> wrote:
>
> > The way order statuses works today seems to be fine, OrderReadHelper has
> > the necessary methods to get additional details for the order item.
> >
> > 1) If order item is partially shipped and remaining quantity is pending
> > you could get the shipped quantity from OrderReadHelper. Approved status
> > seems valid here.
> >
> > 2) If order item is partially shipped and remaining quantity is
> cancelled,
> > the cancelled quantity is stored in OrderItem.cancelQuantity. Again you
> > could get the shipped quantity and cancelled quantity from
> OrderReadHelper.
> > Completed status seems valid here.
> >
> > Thanks.
> > Mridul Pathak
> >
> >
> > > On 25-Apr-2020, at 10:57 AM, Mohammad Kathawala <
> > mohammad.kathaw...@hotwaxsystems.com> wrote:
> > >
> > > Hello Shikha,
> > >
> > > The statuses mentioned by you in all the scenarios seem correct to me
> and
> > > AFAIK it works in the same way in OFBiz. We can definitely improve it
> by
> > > adding a 'Partially Complete/Partially Fulfilled' status to an order
> item
> > > as mentioned by Pawan.
> > >
> > > Thanks & Regards
> > > Mohammad Kathawala
> > >
> > > On Tue, Apr 14, 2020 at 6:03 PM Suraj Khurana  >
> > > wrote:
> > >
> > >> Adding Dev ML.
> > >>
> > >> --
> > >> Best Regards,
> > >> Suraj Khurana
> > >> Senior Technical Consultant
> > >>
> > >> On Tue, Apr 14, 2020 at 5:13 PM Shikha Jaiswal <
> > >> shikha.jais...@hotwaxsystems.com> wrote:
> > >>
> > >>> Hello team,
> > >>>
> > >>> From the business point of view, please share what should be the
> exact
> > >>> status of an item after approval, if it is being shipped partially.
> > >>>
> > >>> Suppose an order item is of 3 qty and all three are split down into
> > >>> separate ship groups and shipped one by one, what should be the ideal
> > >>> status on each following instances, as we maintain item status on
> > >> OrderItem
> > >>> level only, not specific to OISGA:
> > >>>
> > >>> - One item is shipped, two are pending.
> > >>> -- IMO, it should be Approved as there are still pending items,
> please
> > >>> confirm.
> > >>>
> > >>> - Two items are shipped, one is pending.
> > >>> -- IMO, it should be Approved as there are still pending items,
> please
> > >>> confirm.
> > >>>
> > >>> - Two items are shipped, one is canceled.
> > >>> -- IMO, it should be Completed as it is shipped or canceled, please
> > >>> confirm.
> > >>>
> > >>> OR
> > >>>
> > >>> - All three items are shipped
> > >>> -- IMO, it should be Completed as all items are shipped.
> > >>>
> > >>> Please let me know your thoughts on this.
> > >>>
> > >>> --
> > >>> Thanks & Regards,
> > >>> Shikha Jaiswal
> > >>> Senior Enterprise Software Engineer
> > >>>
> > >>
> >
> >
>


Re: Multiple Websites

2020-04-25 Thread Mohammed Rehan Khan
Hello James,

We have implemented the multisite feature in Ofbiz under the task OFBIZ-7120
. You can find all the
necessary details from here.

To enable the feature, we need to load CmsMultiSiteDemoData.xml
and CmsSiteDemoData.xml data only. These are sample data for multisite. you
can also change it as per your need.

Here are the URLs for accessing these directly.

1) CmsSite(Default) = https://demo-trunk.ofbiz.apache.org/cmssite/
2) WebSite-1 = https://demo-trunk.ofbiz.apache.org/cmssite/website-1
3) WebSite-2 = https://demo-trunk.ofbiz.apache.org/cmssite/website-2

--
Thanks & Regards,
Rehan Khan
Sr. Technical Consultant



On Fri, Apr 24, 2020 at 8:15 PM Suraj Khurana 
wrote:

> Hello James,
>
> Please explore WebSite entity [1] for all the configurations. You can
> associate *ProductStores* created using productStoreId field
> Here is a document [2] for your reference.
>
> [1]
> https://demo-trunk.ofbiz.apache.org/webtools/control/entity/find/WebSite
> [2]
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=6553736
>
> HTH.
>
> --
> Best Regards,
> Suraj Khurana
> Senior Technical Consultant
>
> On Fri, Apr 24, 2020 at 6:45 PM  wrote:
>
> > Hello - Can someone point me in the right direction to configure
> > multiple web sites in Ofbiz.  We have one instance and we have 3 stores
> > configured.  We now need to know how we can configure for these ofbiz
> > stores to have different physical websites.
> >
> > Thanks,
> >
> > James
> >
>


Re: Valid Item Status for partial shipment

2020-04-25 Thread Suraj Khurana
Yes.

Adding up to this, in fact, OrderReadHelper.*getItemShippedQuantity*
handles *cancelQuantity* effectively. So we can efficiently get desired
results using these methods.

HTH.

--
Best Regards,
Suraj Khurana
Senior Technical Consultant

On Sat, Apr 25, 2020 at 12:19 PM Mridul Pathak <
mridul.pat...@hotwaxsystems.com> wrote:

> The way order statuses works today seems to be fine, OrderReadHelper has
> the necessary methods to get additional details for the order item.
>
> 1) If order item is partially shipped and remaining quantity is pending
> you could get the shipped quantity from OrderReadHelper. Approved status
> seems valid here.
>
> 2) If order item is partially shipped and remaining quantity is cancelled,
> the cancelled quantity is stored in OrderItem.cancelQuantity. Again you
> could get the shipped quantity and cancelled quantity from OrderReadHelper.
> Completed status seems valid here.
>
> Thanks.
> Mridul Pathak
>
>
> > On 25-Apr-2020, at 10:57 AM, Mohammad Kathawala <
> mohammad.kathaw...@hotwaxsystems.com> wrote:
> >
> > Hello Shikha,
> >
> > The statuses mentioned by you in all the scenarios seem correct to me and
> > AFAIK it works in the same way in OFBiz. We can definitely improve it by
> > adding a 'Partially Complete/Partially Fulfilled' status to an order item
> > as mentioned by Pawan.
> >
> > Thanks & Regards
> > Mohammad Kathawala
> >
> > On Tue, Apr 14, 2020 at 6:03 PM Suraj Khurana 
> > wrote:
> >
> >> Adding Dev ML.
> >>
> >> --
> >> Best Regards,
> >> Suraj Khurana
> >> Senior Technical Consultant
> >>
> >> On Tue, Apr 14, 2020 at 5:13 PM Shikha Jaiswal <
> >> shikha.jais...@hotwaxsystems.com> wrote:
> >>
> >>> Hello team,
> >>>
> >>> From the business point of view, please share what should be the exact
> >>> status of an item after approval, if it is being shipped partially.
> >>>
> >>> Suppose an order item is of 3 qty and all three are split down into
> >>> separate ship groups and shipped one by one, what should be the ideal
> >>> status on each following instances, as we maintain item status on
> >> OrderItem
> >>> level only, not specific to OISGA:
> >>>
> >>> - One item is shipped, two are pending.
> >>> -- IMO, it should be Approved as there are still pending items, please
> >>> confirm.
> >>>
> >>> - Two items are shipped, one is pending.
> >>> -- IMO, it should be Approved as there are still pending items, please
> >>> confirm.
> >>>
> >>> - Two items are shipped, one is canceled.
> >>> -- IMO, it should be Completed as it is shipped or canceled, please
> >>> confirm.
> >>>
> >>> OR
> >>>
> >>> - All three items are shipped
> >>> -- IMO, it should be Completed as all items are shipped.
> >>>
> >>> Please let me know your thoughts on this.
> >>>
> >>> --
> >>> Thanks & Regards,
> >>> Shikha Jaiswal
> >>> Senior Enterprise Software Engineer
> >>>
> >>
>
>


Re: Multiple services run immediately

2020-04-25 Thread Nameet Jain
Hi Ingo,

To execute two or more independent processes immediately without waiting
for each other to finish, use async mode. The example you shared will do
the thing for you. Here JobPoller takes care of the services in "action".
So if you add one more async service, it will execute independently.

the runSyncIgnore will just ignore the result of service.

Thanks

--
Regards
Nameet Jain


On Fri, Apr 24, 2020 at 11:01 PM Ingo Wolfmayr 
wrote:

> Hi everybody,
>
> I want to run two or more services immediately after another service has
> finished.
>
> For example printing creating/printing the invoice and starting the pick
> process should be done immediately after orderchange  Invoicing and picking
> are two different processes that should be initiated at the same time.
> Picking should not wait until the invoice process is finished.
>
> Right no I have:
>
> 
> value="SALES_ORDER"/>
>  value="ORDER_APPROVED"/>
>  to-field-name="oldStatusId"/>
>  persist="true"/>
> 
> 
>
> The problem with that is, that if there are other tasks in the queue (solr
> product update, ...) it may come to unwanted delays.
>
> Would runSyncIgnore work?
>
> It would be great if I could use th eca service definitions to to it.
>
> Best regards
> Ingo
>


Re: Multiple services run immediately

2020-04-25 Thread Pawan Verma
Hi Ingo,

I hope you are well!

Have you tried with mode="sync" instead of mode="async"? It should run both
services simultaneously.

runSyncIgnore is noting but calling service in sync mode without expecting
the output of the service.

If you wanna call services inline you can even try addCommitService.

HTH!

-- 
Thanks & Regards
Pawan Verma
ofbiz.apache.org


On Sat, Apr 25, 2020 at 11:36 AM Suraj Khurana 
wrote:

> Hello Ingo,
>
> Hope you are doing good.
>
> I am not sure about the environment you are currently trying to achieve
> this. IMO, there are two ways:
>
> - For improving performance, we can set up multiple OFBiz servers in
> parallel. Yes, we can set up two OFBiz servers, one calling sync service
> and another dedicated for async services only.
> Here [1] is a reference blog for more details.
>
> - You can increase jobs count in service engine [2], so that your OFBiz
> server will be picking more jobs to complete at a time, be careful various
> factors are responsible with this approach, like CPU core, deployed OFBiz
> memory allocation, maximum DB threads enabled etc.
>
> [1]
>
> https://www.hotwaxsystems.com/ofbiz/ofbiz-tutorials/apache-ofbiz-performance/
> [2] framework/service/config/serviceengine.xml
>
> HTH.
> --
> Best Regards,
> Suraj Khurana
> Senior Techincal Consultant
>
>
> On Fri, Apr 24, 2020 at 11:01 PM Ingo Wolfmayr 
> wrote:
>
> > Hi everybody,
> >
> > I want to run two or more services immediately after another service has
> > finished.
> >
> > For example printing creating/printing the invoice and starting the pick
> > process should be done immediately after orderchange  Invoicing and
> picking
> > are two different processes that should be initiated at the same time.
> > Picking should not wait until the invoice process is finished.
> >
> > Right no I have:
> >
> > 
> > > value="SALES_ORDER"/>
> >  > value="ORDER_APPROVED"/>
> >  > to-field-name="oldStatusId"/>
> >  > persist="true"/>
> > 
> > 
> >
> > The problem with that is, that if there are other tasks in the queue
> (solr
> > product update, ...) it may come to unwanted delays.
> >
> > Would runSyncIgnore work?
> >
> > It would be great if I could use th eca service definitions to to it.
> >
> > Best regards
> > Ingo
> >
>


Re: Multiple services run immediately

2020-04-25 Thread Suraj Khurana
Hello Ingo,

Hope you are doing good.

I am not sure about the environment you are currently trying to achieve
this. IMO, there are two ways:

- For improving performance, we can set up multiple OFBiz servers in
parallel. Yes, we can set up two OFBiz servers, one calling sync service
and another dedicated for async services only.
Here [1] is a reference blog for more details.

- You can increase jobs count in service engine [2], so that your OFBiz
server will be picking more jobs to complete at a time, be careful various
factors are responsible with this approach, like CPU core, deployed OFBiz
memory allocation, maximum DB threads enabled etc.

[1]
https://www.hotwaxsystems.com/ofbiz/ofbiz-tutorials/apache-ofbiz-performance/
[2] framework/service/config/serviceengine.xml

HTH.
--
Best Regards,
Suraj Khurana
Senior Techincal Consultant


On Fri, Apr 24, 2020 at 11:01 PM Ingo Wolfmayr 
wrote:

> Hi everybody,
>
> I want to run two or more services immediately after another service has
> finished.
>
> For example printing creating/printing the invoice and starting the pick
> process should be done immediately after orderchange  Invoicing and picking
> are two different processes that should be initiated at the same time.
> Picking should not wait until the invoice process is finished.
>
> Right no I have:
>
> 
> value="SALES_ORDER"/>
>  value="ORDER_APPROVED"/>
>  to-field-name="oldStatusId"/>
>  persist="true"/>
> 
> 
>
> The problem with that is, that if there are other tasks in the queue (solr
> product update, ...) it may come to unwanted delays.
>
> Would runSyncIgnore work?
>
> It would be great if I could use th eca service definitions to to it.
>
> Best regards
> Ingo
>