To wait for the onFault
and onEvent
callbacks, we will do the following:
Add two additional
<onMessage>
branches to the<pick>
activity. We will achieve this by clicking on the Add OnMessage icon next to the<pick>
activity icon. To add two branches, we should click on it twice. We should see the following:We need to configure each
<onMessage>
branch. The first branch will react on the onFault message. We will specify the following parameters:The second branch will react on the onEvent message. We will specify the following parameters:
Next, we will need to specify the activities that should happen in both branches. We have decided to throw a fault in both cases. We should see the following: