Skip to content

Commit 37dc367

Browse files
authored
Create code.js
1 parent db61544 commit 37dc367

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • Server-Side Components/Business Rules/Reset Change model workflow when model changes
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//This Business rule will reset a change workflow ,when the change model changes
2+
(function executeRule(current, previous /*null when async*/) {
3+
4+
// Create a new instance of the Workflow class
5+
var wkfw = new Workflow();
6+
7+
// Delete the workflow associated with the current record
8+
wkfw.deleteWorkflow(current);
9+
10+
})(current, previous);

0 commit comments

Comments
 (0)