manage-strategies

Guide OFBiz service implementation toward Groovy and EntityQuery over XML.

175|216|Updated Mar 5, 2017
One-click install
npx skills add https://github.com/apache/ofbiz-plugins --skill manage-strategies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-strategies
Source: https://github.com/apache/ofbiz-plugins/tree/main/ai-agent-skills/manage-strategies
Command: npx skills add https://github.com/apache/ofbiz-plugins --skill manage-strategies

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides clear guidance on preferred implementation patterns and architectural decisions when multiple options exist within the OFBiz framework, ensuring consistency and maintainability.

Core Features & Use Cases

  • Service Implementation Guidance: Recommends Groovy or Java for new services, deprecating XML (MiniLang).
  • Logic Placement: Encourages moving logic out of XML and into dedicated Groovy/Java files.
  • Data Retrieval Standards: Promotes the use of EntityQuery for data access.
  • Use Case: When deciding whether to implement a new business process as an XML service or a Groovy script, consult this Skill for the recommended approach.

Quick Start

Use the manage-strategies skill to determine the best approach for implementing a new OFBiz service.

Frequently Asked Questions about manage-strategies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Should I implement OFBiz services using XML or Groovy?

OFBiz services should be implemented using Groovy or Java rather than XML. This strategy deprecates XML (MiniLang) for new services to ensure consistency and maintainability across the framework.

How do I migrate legacy XML logic in OFBiz to a modern approach?

To modernize OFBiz logic placement, move business rules out of XML files and into dedicated Groovy or Java files. This enforces modern, script-based approaches over legacy XML-heavy methods.

What is the recommended way to retrieve entity data in OFBiz?

The recommended approach for data retrieval in OFBiz is using EntityQuery. This standard promotes consistent data access patterns when implementing service logic or querying the database.

When do I need development strategy guidance for OFBiz?

You need development strategy guidance for OFBiz when deciding between multiple implementation options, such as choosing whether a new business process should be an XML service or a Groovy script.

What are the limitations of using XML for OFBiz service implementation?

Using XML for OFBiz service implementation limits maintainability and is considered a legacy approach. The framework strategy enforces modern script-based methods, deprecating XML (MiniLang) in favor of Groovy or Java.