We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db61544 commit 37dc367Copy full SHA for 37dc367
Server-Side Components/Business Rules/Reset Change model workflow when model changes/code.js
@@ -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