Skip to article
KaeshinOntology handbook

What are you trying to do?

Find a concept, a how-to, or a plant example.
Ontology/Make changes with actions
Make changes with actions5 min read

Define useful actions

Describe a repeatable business change, its inputs and the conditions for running it.

Kaeshin Data Platform · For workspace admins and business teams

A named way to change the business

An action type describes a repeatable operation, such as putting an order on review or reassigning stock. A run is one attempt to carry out that operation on particular targets with particular inputs. Publishing an action makes its definition available; it does not run it.

An action can act on an object record, a relation between records, or nothing in particular. Choose the narrowest scope that matches the task. In the illustrative factory, a “Review bearing delay” action might act on a production order. A “Reassign stock” action needs explicit logic connecting the chosen warehouse stock to the selected order; its name alone does not perform allocation.

Create a rule-based draft

You need permission to edit the schema and an editable draft. Have the relevant types, properties and relation types in the model. Start with a small local change that you can explain and test before adding outside-system effects.

  1. Open Schema → Actions → New action. Enter a clear name, check the generated key and choose Acts on and the relevant object or relation type.

  2. Under How it works, select Rules and choose Create and set up. The action opens in the draft.

  3. In Overview, describe its business purpose, inspect Inputs and configure the values the person must supply. Prefer a record selector for a specific stock entry over a free-text warehouse name.

  4. Review Allowed when for the business conditions that must hold. For example, require the order to be open. A condition description should agree with the configured checks.

  5. In Logic → Change the ontology, choose Add a change. Select Set a value, Link or another appropriate change, then choose the exact field, records and values. Use Only if for conditional steps and Check a value or Check a link for checks that must stop an invalid change.

Test both the intended and refused case

Open Test, pick A real record or Sample, supply the simple inputs and choose Run test. Review Changes and Result against the business purpose. Nothing is saved and no outside system is called. Test a passing case and a case that should be refused, such as a closed production order. Save as test can keep a useful example for later review.

A test confirms the modeled behavior for those inputs. It does not give the eventual caller access or replace Governor approval. Review the action’s Policies with the responsible access administrator, then publish through Versions when the draft is ready. A draft action is not available for normal published runs.

Know where effects happen

Actions may include a call before saving, local changes and notifications after saving. An outside operation must already be configured by the responsible connection maintainer. If that first call fails, local changes are not saved; if a notification after saving fails, saved changes remain. A change in an outside system may need later source confirmation.

For a stock reassignment, state whether the action only changes the ontology or also updates the warehouse system. Do not promise a physical stock move or a new delivery date unless those steps are configured and their outcomes checked.

✳

Take the next step in your own business.