on 2020 May 29 2:05 PM
Can somebody please help with some documentation on what are the exact steps to set up Business Events in PaPM Functions so that when a PaPM Function fails in the Process it raises an event and that can be handled via Business Event Manager?
We are using PaPM Processes and we would like to set up some rules so that if Allocations produces some errors due to unallocated balances then they can be ignored or some actions taken depending on the unallocated balances.
Request clarification before answering.
Hi Chayan,
Good day.
We have documentation for the Business Event topic on our Help portal. I am providing you the link below for your reference:
To address the question that you have raised, we need to create and configure the allocation function, create a process and activity on the calculation unit, execute the allocation function, process the unassigned items on My Events and lastly check the result.
Now I am going to ask you to log in to your PaPM environment and follow the steps below.
Allocation Function
1.Create an allocation function with its Event handling set to “Management”.
Note: if the event handling is set to “Logging” the unassigned items will not be transferred to My Events for further processing.
2.Proceed with your allocation function configuration:
3.Activate the function
Calculation Unit Function
4.On the Calculation Unit function assign a Process
5.On the Activities tab assign the allocation function that you created and assign a Performer and Reviewer.
6.Activate the Calculation Unit.
Execution
7. Run the Allocation function
Note:
- Function=ZZZZZ has unprocessed Business Events of Volume=XXXX and Quantity=Y
Where:
XXXX - is the aggregate value of all key figures
Y- is the number of unassigned items
ZZZZZ – is the function ID
8.Choose the Processes tile and create a new process.
9.Choose the Add button, Create process Instance window will appear.
10.Search for the process that you have assigned on the calculation unit (steps 4 - 6), choose the process and click on Create button.
11.Process ID and Description window will appear, assign the following:
Choose the Create button.
12.Generate New Report window will appear, assign the following:
Choose the Generate button.
13.Choose the created process then choose the Deploy button.
14.Once the process has been deployed, go to My Activities by choosing the My Activities tile from the Fiori.
15.Search and choose for your deployed process.
16. On the right part of the screen select the activity and choose the Run button, notice that the state of the run is “Errors”
17.To handle the errors, choose the Go To button and select Business Event Management.
Note: if you execute the allocation function both on the environment and via process and deploy, you would notice that there are two events that will appear on My Events, the reason is that the system creates an entry for each process instance.
18.My Events and Rules window will appear, choose the allocation function with unassigned items,
19. Choose the Edit button located on the upper right corner of the screen.
20. The Selection section on My Events represents your sender data or unallocated data, while the Assignment Section represents the receiver data. You may set the values on the Assignment section on which you want to the unallocated amount be assigned.
21.Once the configurations are done, choose the Event Type button and change it to Adjustment.
22.Click on the Run button and choose Partial Restart.
23.Go back to My Activities, notice that the state is now “OK”
You may check your result by going back to the Environment, choose your allocation function then choose the Show button. You can see that the unassigned amount/items are already distributed. The Y table for the allocation function is updated after each process on Business Events.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
11 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.