Business rule doesn't work with custom functions.

Business rule doesn't work with custom functions.

i write a request custom function for modify the asset's status in a request..
Example:  - a request subject contains "returned",  then change the asset's status to "In Store"

this script works fine in the editor interface. Click save and run - select a request.. - the asset's status will be modified to "In Storeā€œ.
but it couldn't run in the business rule.
what is the different between them? Thanks.

Here is the error log..


                New to ADSelfService Plus?