Skip to content

Commit 29975d9

Browse files
committed
document post-active switch and behavior
1 parent 0b683bc commit 29975d9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

java/fiori-drafts.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ It's possible to create and update data directly without creating intermediate d
146146

147147
These events have the same semantics as described in section [Handling CRUD events](./cqn-services/application-services#crudevents).
148148

149+
::: tip
150+
With the 4.8.0 release CAP Java introduced a mode where POST without `IsActiveEnitity=true` results in the `CqnService.EVENT_CREATE` (creation of an active entity) for the given entity. This mode is only active when the CDS property `cds.draft.post-active` is set to `true` and an the entity is annotated with `@Common.DraftRoot.NewAction`. The value of entity should be the name of an unbound action in the same service of the entity. In case the entity has a key with the type `UUID` the action needs no further parameter. Otherwise the action needs the key value(s) of the entity as parameters.
151+
:::
152+
149153
::: warning
150154
Directly updating the active entity does **not** bypass the [Draft Lock](#draft-lock). If an existing draft locks the active entity, the system blocks any attempt to update it. This ensures that the system does not lose changes to the active entity when you subsequently activate a draft.
151155
:::

0 commit comments

Comments
 (0)