Re: Override SECA Definition

2020-11-02 Thread Sakthivel Vellingiri
Thanks Deepak for the prompt response and noted, and also providing
insights on the object equal check being done, will make the change
accordingly.

regards

On Mon, Nov 2, 2020 at 12:22 AM Deepak Dixit  wrote:

> Hi Sakthi,
>
> You need to override each and every seca rule that you want to disable.
> The System performs an equal check on seca rule object, that includes the
> condition and actions
> So if you have 4 seca rule for an service with the same event name, but
> condition is different, you need to override all rules.
>
> Also please make sure your plugin loads after the scrums plugins.
>
>
> Kind Regards,
> Deepak Dixit
> DIRECTOR OF PRODUCT ENGINEERING
> mobile: +91 9826754548
> email: deepak.di...@hotwax.co
> *www.hotwax.co *
>
>
> On Mon, Nov 2, 2020 at 3:48 AM Sakthivel Vellingiri <
> info.integ...@gmail.com>
> wrote:
>
> > Deepak / Framework Gurus -
> > Sorry to dig this from the grave, we are upgrading to 17.12 and wanted to
> > leverage the *enabled="false" *attribute for disabling some OOTB eca
> rules,
> > and have run into a question, there are 4 OOTB eca rules in scrum that i
> > would like to disable, because they are configured for CustRequest >>
> > Status that is interfering with our custom workflow that is planning to
> > leverage CustRequest;
> >
> > Below are the OOTB rules on *service=setCustRequestStatus and
> > event="commit"*; My understanding is that to disable all the rules with
> > same service and event i just have to create ONE overriding  rule for
> > *service="setCustRequestStatus"
> > event="commit" *and do not have to override *each rule separately *pls
> can
> > you provide some insights
> >
> >  
> >  > value="CRQ_REVIEWED"/>
> >  > value="CRQ_ACCEPTED"/>
> > 
> > 
> > 
> > 
> > 
> >  > value="CRQ_REVIEWED"/>
> > 
> > 
> > 
> > 
> > 
> >  > value="CRQ_COMPLETED"/>
> > 
> > 
> > 
> > 
> > 
> >  > value="CRQ_CANCELLED"/>
> > 
> > 
> > 
> > 
> >
> > regards
> > Sakthi
> >
> >
> > On Tue, Jun 2, 2020 at 9:25 AM Sakthivel Vellingiri <
> > info.integ...@gmail.com>
> > wrote:
> >
> > > Great Deepak, thanks for the follow through, After your message i was
> > able
> > > to locate the Jira -> https://issues.apache.org/jira/browse/OFBIZ-9826
> > and
> > > this is exactly the feature that i was looking for, We are scheduled to
> > > upgrade to 17.12 by the end of the year and we should be good by then,
> > > Appreciate your time & effort
> > >
> > > regards
> > > Sakthi
> > >
> > > On Tue, Jun 2, 2020 at 7:42 AM Deepak Dixit  wrote:
> > >
> > >> Hi Sakthi,
> > >>
> > >> Yes, disable seca feature added in 17.12 release.
> > >>
> > >> Thanks & Regards
> > >> --
> > >> Deepak Dixit
> > >> ofbiz.apache.org
> > >>
> > >>
> > >> On Tue, Jun 2, 2020 at 8:50 AM Sakthivel Vellingiri <
> > >> info.integ...@gmail.com>
> > >> wrote:
> > >>
> > >> > Thanks Deepak for your prompt response, that looked promising,
> > however i
> > >> > could not get that to work when i copied the SECA to my
> > customComponent
> > >> > (that extended order) and added enabled="false", but that did not
> > >> suppress
> > >> > the existing SECA, Just for verification i added enabled="false" in
> > the
> > >> > original order component itself but for whatever reason that did not
> > >> work
> > >> > either, BTW, i'm still on 12.04.03, yea it is long due for upgrade
> :(;
> > >> it
> > >> > is possible it is fixed in a later version, but for now i have
> > created a
> > >> > new SECA in my customComponent (that extended order) with a
> different
> > >> event
> > >> > i.e. event="return" instead of event="commit", that created an
> > >> additional
> > >> > event with the message that i need, however it did not suppress the
> > >> > original event/message, but i guess will have to live with that or
> > >> comment
> > >> > out the original SECA in the original order component. But i really
> > >> > appreciate your time to answer my question.
> > >> >
> > >> > Sakthi
> > >> >
> > >> >
> > >> >
> > >> >
> > >> > On Mon, Jun 1, 2020 at 1:52 AM Deepak Dixit 
> > wrote:
> > >> >
> > >> > > Hi Sakthi,
> > >> > >
> > >> > > Which ofbiz version are you using?
> > >> > >
> > >> > > You can disable seca rule, copy seca rule in custom component and
> > set
> > >> > > enabled="false"
> > >> > > it will disable the existing seca rule.
> > >> > > Please refer the [1] service-eca.xsd for reference
> > >> > >
> > >> > > [1] http://ofbiz.apache.org/dtds/service-eca.xsd
> > >> > > Thanks & Regards
> > >> > > --
> > >> > > Deepak Dixit
> > >> > > ofbiz.apache.org
> > >> > >
> > >> > >
> > >> > >
> > >> > > On Fri, May 29, 2020 at 9:24 PM Sakthivel Vellingiri <
> > >> > > info.integ...@gmail.com> wrote:
> > >> > >
> > >> > > > Thanks Jason for immediate response, yes we do have below in our
> > >> > extended
> > >> > > > component; i understood, we

Re: How to return to a previous plugin version?

2020-11-02 Thread Michael Brohl
Additionally, I'd recommend putting a component-load.xml in the plugins 
directory where you can specify which plugin(s) should be loaded and in 
which order.


For a quick change, simply comment out the plugins you do not need and 
restart ofbiz.


component-load.xml

http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/component-loader.xsd";>
    
    
   


You should be able to see the loading of your plugin(s) in the log like 
this:


2020-11-02 14:56:23,028 |main |CatalinaContainer |I| 
Creating context [mytest]



Best regards,

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 02.11.20 um 07:19 schrieb Aditya Sharma:

Hi Georg,

What I suspect with a cursory reading is as you made a replica the values
of mount point etc may be the same
https://github.com/apache/ofbiz-plugins/blob/trunk/ecommerce/ofbiz-component.xml#L55

As you are new to OFBiz, I would recommend using the Gradle task to create
a new plugin instead of replicating it.

if you just want to play with it with various versions of same plugin. I
would recommend you is to initialise plugin as a local git repo and create
separate branches for drastic changes. This way it would easy to track the
changes also.
https://git-scm.com/docs/git-init

HTH

Thanks and Regards,
Aditya Sharma

On Mon, Nov 2, 2020 at 2:11 AM Georg Potthast 
wrote:


For testing I create a plugin, e.g. mytest: “gradlew
createPlugin -PpluginId=mytest”. To be able to fall back to a working
version, I frequently copy this plugin directory to e.g. mytest-1,
mytest-2
etc. When I decide to use the mytest-1 directory again, I rename the
directory I am currently working with to mytest-current and copy mytest-1
to
mytest. Then I restart ofbiz and expect that to work with this mytest
directory.

However, OFBiz seems to continue to work with the former current
directory.
E.g. I have made three menu items in mytest-current while I had just two
menu items in the older mytest-1 directory. After copying the mytest-1
directory to mytest and restarting OFBiz, I still have three menu items
displayed although there should be only two.

What could be the reason for this and what do I have to do to properly
fall
back to the state of mytest-1?






smime.p7s
Description: S/MIME Cryptographic Signature


Re: How Default 'Find' works

2020-11-02 Thread Emad Radwan
Many thanks Aditya. It looks like I need to understand actions and the 
mini-lang well to be able to understand Ofbiz. I'll appreciate it if you can 
refer to a good documentation for the same as I failed to find a complete one. 
On the other hand and with the example of the 'main_role' role concept its 
starts getting fun but again is this only mentioned in code? Or documented 
somehow? I feel I understand the Party and Roles model from the book but the 
role of a certain party like 'main_role' is for sure not there.

Please shed some light if you can.

Regards,

Emad.

On 2020/11/02 05:33:23, Aditya Sharma  wrote: 
> Hi Edmad,
> 
> In row-actions, we define actions related to each row which helps us to get
> related data for each record
> https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/widget/partymgr/PartyForms.xml#L136
> 
> Here you can see the mainRole is populated by calling getPartyMainRole
> service
> https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/widget/partymgr/PartyForms.xml#L141
> 
> HTH
> 
> Thanks and Regards,
> Aditya Sharma
> 
> 
> On Sun, Nov 1, 2020 at 8:51 PM Emad Radwan  wrote:
> 
> > Hello everyone,
> >
> > Would you please have a look at my last reply and help if you can?
> >
> > Regards,
> >
> > Emad
> >
> > On 2020/10/30 10:34:21, Emad Radwan  wrote:
> > > Hello Aditya,
> > >
> > > Reference to the above that was helpful, in the Parties grid I'm finding
> > > difficulty understanding how the 'main role' column was fetched from the
> > > DB. I think the following line is the configuration of the column in the
> > > grid -  > title="${uiLabelMap.PartyMainRole}"> > > description="${mainRole.description}"/> - and I went thru
> > > 'PerformFindPart'
> > > in mentioned PartyServices and although I'm not a Java expert but I guess
> > > the code is building the conditions based on the search parameter, but
> > > where
> > > I can see the link between Party & Party_Role and how the main role is
> > > calculated specially that there is no indicator in Party_Role for that,
> > is
> > > it based on the date
> > > the role is linked to certain party?
> > >
> > > Thanks for help,
> > >
> > > Emad
> > >
> > >
> > > On Tue, Oct 27, 2020 at 7:59 AM Aditya Sharma 
> > > wrote:
> > >
> > > > Hi Edmad,
> > > >
> > > > Here is how you can trace out the flow based on the request
> > > >
> > > > controller request
> > > >
> > > >
> > https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml#L511
> > > >
> > > > view mapping
> > > >
> > > >
> > https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml#L1415
> > > >
> > > > Screen & Forms
> > > >
> > > >
> > https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/widget/partymgr/PartyScreens.xml#L25
> > > >
> > > >
> > https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/groovyScripts/party/FindParty.groovy
> > > >
> > > >
> > https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/widget/partymgr/PartyForms.xml#L131
> > > >
> > > > performFindParty service which returns the results based upon the
> > > > parameters
> > > >
> > > >
> > https://github.com/apache/ofbiz-framework/blob/trunk/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java#L1519
> > > >
> > > > HTH
> > > >
> > > > Thanks and regards,
> > > > Aditya Sharma
> > > >
> > > > On Sun, Oct 25, 2020 at 4:46 PM Emad Radwan 
> > wrote:
> > > >
> > > > > Hi There,
> > > > >
> > > > > While testing the Parties module I noticed that default find party
> > > > results
> > > > > - returned records - are not all there in the database, this is
> > while I
> > > > > didn't specify any parameters. What are the logic behind this and
> > where
> > > > its
> > > > > configured.
> > > > >
> > > > > Regards,
> > > > >
> > > > > Emad.
> > > > >
> > > >
> > >
> >
> 


OFBiz as OMS Session: Pre-order management Challenges

2020-11-02 Thread Devanshu Vyas
Hello,

We are continuing our series OFBiz as open-source OMS and the new session
we are undertaking is Pre-Order management challenges and its solutions.

Here are the details of our session:
Time: Nov 4, 2020, 04:00 PM Mumbai, Kolkata, New Delhi

Join Zoom Meeting
https://us04web.zoom.us/j/78433782856?pwd=NTJlRFBuZFVISGNXdDVFL2l0Um43Zz09

Meeting ID: 784 3378 2856
Passcode: gU6uNf

We have also decided to shift our weekly session from Tuesday to Wednesday.
Looking forward to seeing you guys there.


Thanks & Regards,
Devanshu Vyas.


Re: How to return to a previous plugin version?

2020-11-02 Thread Georg Potthast

Thank you Aditya and Michael,

I worked with various versions of the same plugin. So I had several mytest* 
plugins in the plugin directory with the same mount point in the 
ofbiz-component.xml file. I did not remember that OFBiz runs through all 
directories and reads the ofbiz-component.xml files for each.


Now I moved all the directories I made for backup into a directory outside 
of the ofbiz directory. Now it works as far as I can tell. I use WinMerge to 
compare the directories for changes.


Georg

-Ursprüngliche Nachricht- 
From: Michael Brohl

Sent: Monday, November 2, 2020 6:36 PM
To: user@ofbiz.apache.org
Subject: Re: How to return to a previous plugin version?

Additionally, I'd recommend putting a component-load.xml in the plugins
directory where you can specify which plugin(s) should be loaded and in
which order.

For a quick change, simply comment out the plugins you do not need and
restart ofbiz.

component-load.xml

http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/component-loader.xsd";>
    
    
   


You should be able to see the loading of your plugin(s) in the log like
this:

2020-11-02 14:56:23,028 |main |CatalinaContainer             |I|
Creating context [mytest]


Best regards,

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 02.11.20 um 07:19 schrieb Aditya Sharma:

Hi Georg,

What I suspect with a cursory reading is as you made a replica the values
of mount point etc may be the same
https://github.com/apache/ofbiz-plugins/blob/trunk/ecommerce/ofbiz-component.xml#L55

As you are new to OFBiz, I would recommend using the Gradle task to create
a new plugin instead of replicating it.

if you just want to play with it with various versions of same plugin. I
would recommend you is to initialise plugin as a local git repo and create
separate branches for drastic changes. This way it would easy to track the
changes also.
https://git-scm.com/docs/git-init

HTH

Thanks and Regards,
Aditya Sharma

On Mon, Nov 2, 2020 at 2:11 AM Georg Potthast 
wrote:


For testing I create a plugin, e.g. mytest: “gradlew
createPlugin -PpluginId=mytest”. To be able to fall back to a working
version, I frequently copy this plugin directory to e.g. mytest-1,
mytest-2
etc. When I decide to use the mytest-1 directory again, I rename the
directory I am currently working with to mytest-current and copy mytest-1
to
mytest. Then I restart ofbiz and expect that to work with this mytest
directory.

However, OFBiz seems to continue to work with the former current
directory.
E.g. I have made three menu items in mytest-current while I had just two
menu items in the older mytest-1 directory. After copying the mytest-1
directory to mytest and restarting OFBiz, I still have three menu items
displayed although there should be only two.

What could be the reason for this and what do I have to do to properly
fall
back to the state of mytest-1?