/orocommerce-skills:oro-workflowfrom orocommerce-skills
Use when creating OroCommerce v6.1 approval workflows, customizing checkout flow, defining workflow steps and transitions, configuring transition conditions and actions, setting up operations, or working with workflow scopes. Relevant when the user mentions 'workflow', 'checkout customization', 'approval process', 'state machine', 'transitions', 'operations.yml', 'workflows.yml', or any OroCommerce business process automation.
Ships in orocommerce-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Resources/config/oro/workflows.ymlResources/config/oro/operations.ymlEach workflow requires label, entity, start_step, steps, and transitions:
workflows:
document_approval:
label: Document Approval
entity: Acme\Bundle\DemoBundle\Entity\Document
start_step: submitted
steps:
submitted:
label: Submitted
allowed_transitions: [approve, reject]
approved:
label: Approved
allowed_transitions: [publish, reject]
rejected:
label: Rejected
allowed_transitions: [resubmit]
published:
label: Published
transitions:
approve:
label: Approve
step_to: approved
message: Document approved
reject:
label: Reject
step_to: rejected
resubmit:
label: Resubmit
step_to: submitted
publish:
label: Publish
step_to: published
Steps without allowed_transitions are terminal states. Step names must be unique across all active workflows on the same entity.
transition_definitions:
approve_definition:
preconditions:
'@and':
- '@eq': [$is_manager, true]
- '@gte': [$document_priority, 3]
actions:
- '@assign_value': [$approved_at, $.now]
- '@call_method':
object: $entity
method: markApproved
transitions:
approve:
label: Approve
step_to: approved
definition: approve_definition
Preconditions block the transition if false. Actions execute only on success. See references/condition-expressions.md for the full expression list.
Customize checkout by importing and overriding b2b_flow_checkout:
workflows:
custom_checkout:
import:
- workflow: b2b_flow_checkout
label: Custom Checkout
metadata:
is_checkout_workflow: true
CRITICAL: Preserve is_checkout_workflow: true in metadata. Without it, checkout breaks silently. Override individual steps or transitions by redeclaring them under the same key.
Step/transition name uniqueness: Names must be unique across ALL active workflows on the same entity type. Use prefixes: document_pending, order_pending.
Import path correctness: Reference the original workflow name exactly. Typos silently fail without error.
Condition syntax: Conditions use @ prefix for functions and $ prefix for attributes. Missing either causes parsing errors:
- '@eq': [$is_manager, true] # Correct
- 'eq': [$is_manager, true] # Wrong — no @ prefix
- '@eq': [is_manager, true] # Wrong — missing $ prefix
references/workflow-patterns.md — Attributes, operations, event-triggered transitions, scopes, common patterns, testing/debugging, WorkflowManager APIreferences/condition-expressions.md — Full expression referenceWhat SKILL.md sets; muted values are Claude Code's defaults
orocommerce@netresearch-claude-code-marketplace is listed by netresearch/claude-code-marketplace — review the source before installing
npx claudepluginhub netresearch/claude-code-marketplace --plugin orocommerce14 skills in this plugin
/oro-apiUse when exposing OroCommerce v6.1 entities via REST API, configuring api.yml or api_frontend.yml, creating custom API processors, setting up filters/sorters/subresources, or working with JSON:API endpoints. Relevant when the user mentions 'API endpoint', 'expose entity via API', 'api.yml', 'REST API', 'JSON:API', 'storefront API', or 'API processor'./oro-behat-ciUse when running Oro Commerce 6.1 Behat tests in CI/CD — Jenkins (Oro's canonical platform), GitLab CI (community territory per oroinc/platform#954), or any Docker pipeline. Covers compose fanout, headless Chrome, the formatter combo, consumer parallelisation maths, artifacts and init-image state transfer. Also on sight of .gitlab-ci.yml, Jenkinsfile, compose behat stages, compose-common.yaml. Triggers on 'behat ci', 'gitlab ci oro', 'jenkins oro', 'parallel behat', 'chrome headless', 'init-test image', 'behat hang'./oro-behat-debugging