Invoking the "Borrow Item" operation from the Item form
This scenario is quite similar to the previous one. In this scenario users need to click a button starting the “Borrow Item” operation while they are working with the form of an item. The system already knows the item that is to be borrowed (this is the item being viewed/edited) but it needs to ask the user to identify the member who borrows the item. Once the user identifies the member the system needs to create an instance of the Loan object.
Just like in the previous scenario we create a process (called BorrowItem2
) with the Item object as its input and the following actions:
PICK FROM Member CREATE Loan WITH Loan.Item = Item, Loan.Member = Member
We configure this process in a very similar fashion to the BorrowItem
process. Then we define an operation that starts the BorrowItem2
process from the form of the Item
object in much the same way we did it for the form of the Member
object.