This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision |
| 6000_case_study:0400_configuration:0700_operations:1000_renew_loan [2022/08/21 22:48] – ↷ Links adapted because of a move operation administrator | 6000_case_study:0400_configuration:0700_operations:1000_renew_loan [2026/08/13 00:55] (current) – ↷ Links adapted because of a move operation localdev |
|---|
| To renew a loan the system would need to increment the ''RenewalCount'' attribute of the ''Loan'' object and the rest will be taken care by the [[6000_case_study:0400_configuration:0600_business_rules:0300_loan_object|business rules of the ''Loan'' object]]. In order to do this we would need to define the process called ''RenewLoan'' that requires the ''Loan'' object as its input and which has the single action: | To renew a loan the system would need to increment the ''RenewalCount'' attribute of the ''Loan'' object and the rest will be taken care by the [[6000_case_study:0400_configuration:0600_business_rules:0300_loan_object|business rules of the ''Loan'' object]]. In order to do this we would need to define the process called ''RenewLoan'' that requires the ''Loan'' object as its input and which has the single action: |
| |
| <code aim>INCREASE Loan.RenewalCount BY 1</code> | <code aim>INCREASE Loan.RenewalCount BY 1 </code> |
| |
| In fact, we will also add another action to the process that will report to the user the date that the loan has been extended to(( If renewal attempt fails the corresponding validation rules of the Loan object would issue the ''[[3100_actions:0150_report_error|REPORT ERROR]]'' action which would abort the execution of the process and the system would never execute the ''[[3100_actions:0330_display_message|DISPLAY MESSAGE]]'' action )): | In fact, we will also add another action to the process that will report to the user the date that the loan has been extended to(( If renewal attempt fails the corresponding validation rules of the Loan object would issue the ''[[ref:a_f:a:report_error|REPORT ERROR]]'' action which would abort the execution of the process and the system would never execute the ''[[ref:a_f:a:display_message|DISPLAY MESSAGE]]'' action )): |
| |
| <code aim>DISPLAY MESSAGE 'Loan has been extended until <<Loan.DueDate>>'</code> | <code aim>DISPLAY MESSAGE 'Loan has been extended until <<Loan.DueDate>>' </code> |
| |
| We configure this process in the same fashion as we configured the [[6000_case_study:0400_configuration:0700_operations:0900_borrow_items|''BorrowItem'' process]]. //**Aware IM**// will also automatically define the operation to invoke the process from the form of the ''Loan'' object. | We configure this process in the same fashion as we configured the [[6000_case_study:0400_configuration:0700_operations:0900_borrow_items|''BorrowItem'' process]]. //**AwareIM**// will also automatically define the operation to invoke the process from the form of the ''Loan'' object. |
| |