Extend a business action

The captured example lets a project owner register the next delivery action from the record and inspect it in a dedicated workspace. The added entry retains record context and connects a command with registered UI contributions.

These historical images show follow-up entry and a workspace, not a newly implemented domain-verification algorithm. They require the corresponding scenario contributions. Use the handler or external-service contract when a specialized algorithm is actually needed.

1. Define the operation

Write down the input record, parameters, permitted actor, allowed business states and expected result. For a delivery check, distinguish a read-only inspection from an operation that creates or changes records. Decide what should happen when the check fails.

2. Choose the smallest fitting extension

NeedMechanism
Existing command with different page placementPage Action binding
Declared conditions or field mappingSupported DSL/rule configuration
Domain algorithmJava command handler or service
New reusable interactionRegistered component/block/property editor
Independently operated systemConnector or external service with explicit credentials and results

Use the Command Handler SPI for the actual interface and CommandContext accessors. It describes primary selection, chained secondary behavior and dry-run support. Do not infer that every registered handler executes.

3. Bind it to the existing page

Configure the business action on the intended record page and bind its input context. Use a confirmation dialog when a person needs to inspect parameters. Keep permission and state feedback understandable to the page user.

An extension command in its record context

4. Package and verify

Declare the contribution and dependencies in the plugin. Validate resource references before import, then check the actual application composition has enabled the extension.

Run one successful request, one invalid-state request and one unauthorized request. Reload the record and inspect the actual result. If there is an external side effect, verify that separately. Use the execution trace to diagnose a failure rather than adding a parallel bypass endpoint.

5. Grow into a workspace when needed

A dedicated workspace can combine data, action areas and result panels when a single dialog is insufficient. Reuse the block and contribution contracts and preserve the same business execution boundary.

A dedicated delivery workspace

Plugin development · Component contracts · Event Listener SPI