SAPP blog
Two business processes change the same record: preventing another decision from being lost
Detecting concurrent changes and designing write rules so parallel workflows do not overwrite each other’s results.
The problem is not limited to integrations
Two approval workflows read the same record in the morning. The first approved a new deadline; later, the second saved the set of fields captured that morning, including the old deadline. Both workflows are formally complete, but the approved decision is lost. This is a change conflict, not merely a delayed notification.
Start by listing the workflows that can write to the same object. Include manual editing as well as automation. One shared stage does not always suit independent results: budget approval and technical readiness can be completed separately.
The related article Parallel approval: defining a sufficient set of decisions covers an adjacent stage. Here we address a separate task: preserving an agreed state when multiple workflows operate on one record simultaneously.
Data for a working register
| What to record | Purpose | Monitoring |
|---|---|---|
| What to recordObject and original data version | PurposeUnderstand exactly what was reviewed | MonitoringVersion marker or agreed comparison method |
| What to recordWorkflow and fields being changed | PurposeIdentify the overlap | MonitoringList of values being written |
| What to recordCondition for applying the decision | PurposeDo not overwrite a newer state | MonitoringCheck that data is current before writing |
| What to recordConflict and next action | PurposePreserve both results | MonitoringOwner of the reconsideration |
Procedure
1. Identify shared writes
Create a table of “workflow — field — write condition”. Pay particular attention to actions that send the entire field set rather than only the changed portion. They can restore an old value without intentionally trying to modify it.
2. Separate the results
If two workflows answer different questions, store their results separately. Determine the overall outcome using an explicit rule once the required decisions arrive. Do not let the last process to finish declare readiness on behalf of the others.
3. Define the protection
Agree on what to do when the original version changes: stop the write, read the data again, or request a new decision. Do not assume that a specific system has such a check; its implementation must be confirmed by the developer and tests.
4. Test the overlap
On a training record, run two scenarios with a deliberately changed completion order. Check every affected field, not only the final status. Repeat the test with a manual edit between the read and write.
Example of a practical solution
Hypothetical example, not a customer case study
Technical review authorised execution of specification V2. While financial approval was reviewing V2, the account manager saved V3. The financial decision remains in the history but must not automatically authorise execution of V3 without checking its scope.
Separate result fields show that the technical decision concerns V2, the financial decision also concerns V2, and the current order version V3 requires reconsideration. This is clearer than a single green stage with no version.
Exceptions and automation
If a conflict is discovered after an external action, moving a stage backwards does not cancel a document already sent or a request already created. First establish the actual consequences, then agree on a compensating action. Do not delete the decision history.
Bitrix24 allows custom fields to be configured for smart processes. That does not imply a ready-made universal lock against competing workflows. Versioning, write conditions, and retry requirements must be checked separately for the specific implementation.
This workflow describes organisational requirements, not a promise of a ready-made software feature. Before configuration, agree on the data owner, transitions, and checks. Integration with other systems must be designed separately; first test the workflow using training examples.
Implementation can begin with business process automation. Before configuring the system, it is useful to compare the rules with the article Changing a Bitrix24 business process: checking the new workflow before launch.
Pre-event check
- All workflows that change the shared object are known.
- Independent results are not combined in one status without a rule.
- A version change before writing triggers an explicit action.
- Different completion orders and manual edits have been tested.
Frequently asked questions
Is banning manual editing enough?
No. Two automated workflows can also conflict. Field ownership rules and checks that a decision applies to current data are needed.
Can the last write always be considered correct?
The latest write may contain the oldest source data. The version on which the decision was based matters, not just when it was saved.
Should the process simply be restarted?
First establish which actions it has already completed. Restarting without checking may repeat external operations or overwrite data again.
Let's discuss automating your workflow
Tell us which workflows change the same record and what disappears after saving. We will discuss field ownership, versions, and test scenarios.