Taher,

What you are saying is not off topic. Thus it is good to bring these to the
table. And they need to be addressed before a solution can gather consensus
and gets implemented.

Best regards,

Pierre Smits

ORRTIZ.COM <http://www.orrtiz.com>
OFBiz based solutions & services

OFBiz Extensions Marketplace
http://oem.ofbizci.net/oci-2/

On Tue, Jul 19, 2016 at 11:27 AM, Taher Alkhateeb <
slidingfilame...@gmail.com> wrote:

> By the way, this is a good example of the problems of interactive tasks. If
> we create an interactive task for createComponent then we have to update
> its implementation because it will break based on these new requirements.
>
> So everytime we change something on which an interactive task depends, we
> have to update that task as well. Usually interactive tasks have more
> business logic for validation and hence are more brittle to such changes. I
> know this is off topic but couldn't help notice it.
>
> On Tue, Jul 19, 2016 at 12:22 PM, Jacopo Cappellato <
> jacopo.cappell...@hotwaxsystems.com> wrote:
>
> > +1 to the idea, with defaults for optional resources (1 mandatory, 3
> > optional).
> >
> > Wish: it would be nice to have more control on the component structure;
> for
> > example create a component without a webapp, add a webapp to an existing
> > component etc...
> >
> > Jacopo
> >
> > On Tue, Jul 19, 2016 at 11:15 AM, Taher Alkhateeb <
> > slidingfilame...@gmail.com> wrote:
> >
> > > Noted, thank you.
> > >
> > > On Tue, Jul 19, 2016 at 12:09 PM, Pierre Smits <pierre.sm...@gmail.com
> >
> > > wrote:
> > >
> > > > Hi Taher,
> > > >
> > > > OFBTOOLS is not required as it is already defined in the template to
> be
> > > > included. When added in basePermission it leads to duplication in the
> > > > generated ofbiz-component.xml file.
> > > >
> > > > I already created an issue for that, see
> > > > https://issues.apache.org/jira/browse/OFBIZ-7785
> > > >
> > > > Best regards,
> > > >
> > > > Pierre Smits
> > > >
> > > > ORRTIZ.COM <http://www.orrtiz.com>
> > > > OFBiz based solutions & services
> > > >
> > > > OFBiz Extensions Marketplace
> > > > http://oem.ofbizci.net/oci-2/
> > > >
> > > > On Tue, Jul 19, 2016 at 11:04 AM, Taher Alkhateeb <
> > > > slidingfilame...@gmail.com> wrote:
> > > >
> > > > > Hi Pierre,
> > > > >
> > > > > Hmmm, that's actually a nice idea. I suggest however we avoid
> > > componentId
> > > > > and just apply the following to the variables:
> > > > >
> > > > > componentName: mandatory
> > > > > componentResourceName: optional, defaults to componentName
> > > > > webappName: optional, defaults to componentName
> > > > > basePermission: optional, defaults to OFBTOOLS (or whatever
> defaults
> > > > were)
> > > > >
> > > > > This way, You get a real nice and simple command for end-users to
> > > create
> > > > > new components while at the same time allowing more expressiveness.
> > > This
> > > > > becomes similar to the createTenant task which also has everything
> > > > optional
> > > > > except the tenantId and tenantName
> > > > >
> > > > > Taher Alkhateeb
> > > > >
> > > > > On Tue, Jul 19, 2016 at 11:58 AM, Pierre Smits <
> > pierre.sm...@gmail.com
> > > >
> > > > > wrote:
> > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > Currently our create component process (./gradlew
> createComponent)
> > is
> > > > > error
> > > > > > prone.
> > > > > >
> > > > > > It requires 4 variables to successfully create a new component in
> > the
> > > > > > hot-deploy folder to jumpstart development with a component
> > skeleton.
> > > > > These
> > > > > > variables are:
> > > > > >
> > > > > >    - componentName
> > > > > >    - componentResourceName
> > > > > >    - webappName
> > > > > >    - basePermission
> > > > > >
> > > > > > I believe we should reduce the number of variables to just 1
> > variable
> > > > > (e.g.
> > > > > > componentId) to create consistency throughout the skeleton and
> its
> > > > > > associated datasets. The developer can, after a skeleton has been
> > > > built,
> > > > > > then apply any kind of changes according to his/her requirements
> an
> > > > > needs.
> > > > > >
> > > > > > What is your opinion on this?
> > > > > >
> > > > > > Best regards,
> > > > > >
> > > > > > Pierre Smits
> > > > > >
> > > > > > ORRTIZ.COM <http://www.orrtiz.com>
> > > > > > OFBiz based solutions & services
> > > > > >
> > > > > > OFBiz Extensions Marketplace
> > > > > > http://oem.ofbizci.net/oci-2/
> > > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to