--- alias: user-guide-business-workflow-task-entity-save-pre render_macros: false description: "Starts a workflow before a material, container, or resource is saved." --- # Before Entity Save Starts a workflow before a **Material**, **Container**, or **Resource** is saved. ![Screenshot of a Business Workflow using If and Throw error to require an entity description before saving.](images/business-workflow-task-entity-save-pre.png) ## Event Context The event provides `Entity`, `EntityType`, `PersistedEntity`, `OperationContext` to tasks in its branch. Select these values in the value editor when configuring child tasks. ??? example "Before Entity Save" Inspect a **Material**, **Container**, or **Resource** about to be saved; reject an invalid pending value with Throw error. ## Behavior The handler runs inside the operation's transaction. An error in the handler can cancel or roll back the operation. An After event runs after the operation boundary, while the transaction is still active.