Hello, now we are ready to test our process. We have deployed it before we configure the email notification last video. So, now we are ready to test this process as I as I told you this process will be initiated using a web service call. So that it would be a process can be initiated. So the first question is how I can get a URL or the wisdom URL of this web surface so that they can call it once you get the wisdom you can call this web surface from anywhere you can if you have a wide application, you can call it you can call it from the soap UI application from the postman, you can call it even from the WebLogic I will show you how you can do it. So now First, I need to know what is the web surface wisdom, which I should use to call this process To know the wisdom of this web surface you should go to the Enterprise Manager and log into the Enterprise Manager.
Here you expand his way and press on so in Xin go to deployed composite Do you remember once we deploy our process BPM we deployed a composite version 1.0 you will find here supply chain project this is our project I will go to inside this supply chain. Once you get inside this process you will get all the human task which we which this process has volume a task to notice the wisdom of this process you can select here test. So, once you press the test button you will find here. So, with the URL, this is our wizard you can take this wisdom and you can call it from any where there is an option you can invoke this wisdom from the interest measure itself you will find here this is the SU body and this is a parameter you can expand it you will find it take object of customer order and if you expand it you will find here all parameter which we should send to the web so, to the process was to restore to initiate the process Okay.
Now, that is now know what is the scenario which we need to test I think we should test a habit was first which we need to call need an item Which is already exist in the stock. So let's see the item okay. So, let us open our stock and let us pick one item. So, I need to for example, get this item we have quantity two, we can use the two or take one of this quantity. So, now I will back again here and I will item could is says description would be keyboard quantity, maybe we need one. Okay, customer name, we can write name, customer, address, Island and customer email will be We can use my image so that I can see the definition okay.
So, now we have entered all the customer order object data and ready to test so web service so, I will press now, this web service Okay. So now it is working fine. So, surface is invoke was successful as you can see the web surface invoked success see it means, now there is one in a sense should be created now. So let's have a look if you go to, so, in for if you go to the deploy composite, select is a composite. If you see the flow instance how many in this tense in this flow is created. We should search and see we should find one As you can see one instant now is running okay to know where exactly is this in the flow you can open it this is how you can trace it.
So we know it is initiated and it go for requisition approval requisition approval. So, once we go to the workspace I should see this task. So, back again to our flow once here, so once it is initiated it will go for requisition approval. So now the user in Zurich position approval should look into the workspace and he should be able to see the task. Okay, this is shifts a minute here refresh. As you can see here, I receive an email With a task action required, here's a minute maybe it is.
Here as you can see, I received a mail was a task a customer name, address email. So because this task is assigned to me, I can receive a minute's vacation. This task has come to me. So now I will go to the workspace. And I will log in as an approved user because approve user is assigned in this role. Okay, so I'll go for our approve user should see one task Yes.
So you'll find here Decision approval when it does come to me because I already received email, there is requisition approval coming. So, I will open this task I will see all the data which I have here. So, now, once I approve it what will happen? It will go and check the stock if it exists the quantity exists or not, it should be yes. So it should go straight away and it should update unsaved you notification and in Cyprus. So, let's try to test is this happy boss I will approve it and see.
Okay so it is approved and the task is done. If you want to know if it is completed or not. If you just refresh the instance here It is in the state running now, if I MC search it is now completed. So, this is finished. Let's have a look in the stock the stock sorry no this stock here was two. So let us refresh and see if the amount is the quantity is was thrown here from you or not.
Yes, as you can see the quantity become one because it is used and I should receive email that this is finished so, it goes back to my email and see refresh. Yes, your order is ready for item keyboard. So, now all the application is running fine and the first scenario of this process is working fine. Next video let us try another scenario, we can try to order an item which has no enough quantity To stop and see what will happen. So see you next activity