- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2015 01:51 AM
Hi SNC,
I am trying to write a Business Rule but whatever I do I get this message: Missing function declaration for onBefore.
I am on Fuji, and have never seen this so far.
Would appreciate any tips on what I am doing wrong.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2015 01:56 AM
Hi..
In fuji, write the code inside that function
function onBefore(current, previous) {
//This function will be automatically called when this rule is processed.
// your code here
}
or
function onBefore(current, previous) {
//This function will be automatically called when this rule is processed
}
// your code here
Thanks'
Harish
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2015 01:56 AM
Hi..
In fuji, write the code inside that function
function onBefore(current, previous) {
//This function will be automatically called when this rule is processed.
// your code here
}
or
function onBefore(current, previous) {
//This function will be automatically called when this rule is processed
}
// your code here
Thanks'
Harish
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2015 02:08 AM
Thanks, that was the case. Fuji stuff:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2015 02:19 AM
A quick follow up question. We are on eureka and dont have this "function onBefore" etc. on for example our business rules. Do we need to fix this before upgrading to fuji?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2015 05:07 AM
@Göran Lundqvist - you don't need to do anything. Just go and upgrade and don't worry about it.
For already existing rules you don't have to edit. You have to write in the new syntax for the new ones which you will create.
Cheers!