Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#contribution
This Business Rule will reset previous workflow changes, when the model field on a change record changes to a different model.
Table - Change Request (change_request)
Advanced set to True
When to Run - Before Update
Filter Conditions: Model changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//This Business rule will reset a change workflow ,when the change model changes
(function executeRule(current, previous /*null when async*/) {

// Create a new instance of the Workflow class
var wkfw = new Workflow();

// Delete the workflow associated with the current record
wkfw.deleteWorkflow(current);

})(current, previous);
Loading