--- alias: user-guide-business-workflow-task-data-collection-instance-perform-immediate-pre render_macros: false description: "Starts a workflow before immediate data collection." --- # Before Immediate Data Collection Starts a workflow before immediate data collection. ![Screenshot of a Business Workflow checking pending readings before immediate data collection.](images/business-workflow-task-data-collection-instance-perform-immediate-pre.png) ## Event Context The event provides `DataCollectionInstance`, `PendingPoints`, `Material`, `Resource` to tasks in its branch. Select these values in the value editor when configuring child tasks. ??? example "Before Immediate Data Collection" Check the pending readings and reject a collection that fails the workflow's validation rule. ## 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.