1) Attached is a bsv that demonstrates failure rules, see below for more details
2) Sorry can not help you
3) I have stopped trying to get that to work, let me know if you have any success.
4) I am not 100% sure this is correct, but try \047
FailureRules.bsv details
This BSV has 2 BOs: UpdatedBO and UpdateData
UpdatedBO has the following attributes: Name, Description, Total and LastUpdate.
It also has 2 rules:
A) if the BO was changed, update the LastUpdate to CURRENT_TIMESTAMP
B) if Total > 10000, REPORT ERROR 'Total Too High'
UpdateData has the following attributes: Name, Number1, Number2, Description and ErrorMessage.
This BO has no rules.
UpdatData has data to be used to update UpdatedBO.
This BSV has several processes
CreateDate => deletes any existing test data and creates new test data
FindUpdateData1 => finds all UpdateData in batches of 1 and calls WithFailureRules
WithFailureRules => basically, it finds the UpdatedBO with the same name as UpdatdData and sets UpdatedBO.Total = Updatedata.Number1 * Updatedata.Number2. If there is no UpdatedBO with the smae name as the UpdateDate, REPORT ERROR 'record not found' is executed.
This process has failure rules that save the error message in the UpdateData.ErrorMessage field and if the error message was 'Total Too High' the UpdatedBO.Total is set to -1.
FindUpdateData2 => just like FindUpdateData2 except executes NoFailureRules after the find.
NoFailureRules => just like WithFailureRules but (surprise) it does not have any failure rules.
To use this BSV:
load it into your Aware system and sign in as admin.
select the menu item "Create Test Data" to create the test data
select the menu item "Run No Failure Rules" to executd FindUpdateData2 and NoFailureRules. The first UpdatedBO will be updated successfully, but you will get an error "Total Too High" for the second UpdateBO and it will not be updated. Also the process will be terminated and the third UpdateData record will not be processed.
select the menu item "Run With Failure Rules" to execute FindUpdateData1 and WithFailureRules. No errors will be displayed, both UpdateBO records will be updated and the last 2 UpdateData records will have the errors saved in the Error Message field.
I do not use failure rules on processes run by users, since I want the user to see the error and let them choose what action to take. But I have multiple processes that run via the scheduler and they all have failure rules so that they run to completion even if there are errors.