Rule: An item is deleted

Lori Dingman
Member
When you create a rule with even An item is Deleted, which triggers a BPM with true conditions, does the BPM run after or before item is deleted?
0
Answers
-
Hi Lori,
An interesting question that triggered a try-out from my side.
Spoiler: It's running before!This is what I did:
- Create a test entity with one property "name"
- Add webservices with the UPDATE operation (and add a service container to support it)
- Add the deletion Rule with no condition starting a BPM
- The BPM does the UPDATE operation via the rootEntityInstanceId setting the name with "Set before delete!"
- Add the History BB to prove the outcome (with retaining the data after deletion!)
- Publish it all, create an instance, and delete it.
- Now have a look in the database (Postgres in my case) for the result:
SELECT s_audit_id, convert_from(s_history_data, 'UTF8') from o2aw_tipsprj_generichistoryloglist;
You might find this "AppWorks Tips" post also interesting!
//Antal
0 -
@Lori Dingman , The BPM will get triggered before deletion of item but the entire process will be in a single transaction. You can make the BPM as long lived if you want it to be out of transaction.
0
Categories
- All Categories
- 124 Developer Announcements
- 54 Articles
- 156 General Questions
- 155 Thrust Services
- 56 Developer Hackathon
- 38 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9.1K Extended ECM
- 920 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 35 eDOCS
- 195 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 11 XM Fax
- Follow Categories