Invoking the "Borrow Item" operation from query results

In this scenario we assume that a user has run the Item query and is looking at the screen that shows one or more items. We want the user to be able to click on the “Borrow” item button located next to the item if the user wants to create a loan for this particular item. The system is then expected to ask the user to identify the member that borrows the item and create the corresponding loan.

We already have the process (BorrowItem2) that performs the required action – we just need to invoke it from the query results screen. In order to do this we open the Item query for editing and define the new operation called “Borrow” of the “Start Process” type. We select the BorrowItem2 process as the process to be started. Then we save the changes to the query.

note

AwareIM will automatically put the instance of the Item object, on which the user clicked when she invoked the operation, into the context and will use it as process input.
  • Last modified: 2025/06/12 02:35