While testing, we will run the process as you will log in with various sample end users. You will initiate the process and then advance it to all possible paths, that is, you will test it across all possible flows by performing actions on the task in the work list and you will ensure that the expected paths are followed.
For each process in which you have been assigned a role, the Workspace displays your current tasks. The participants in the process and their roles and groups have already been created. Remember that the Enter Quote
activity will be performed by the user SalesRepresentative, user and approval of terms and deals will be carried out by the users, Approver, and Contracts. You have not taken users with names such as 'Adam' as SalesRepresentative and so on. You have followed a generalized approach by making a role of SalesRepresentative to be assigned to a user created with the same name.
Role |
User |
Task |
---|---|---|
SalesRepresentative |
salesrepresentative |
Enter Quote Activity |
BusinessAnalyst |
businessanalyst |
Business Review Activity |
Approvers |
approver |
Approve Deal Activity |
Contracts |
contracts |
Approve terms and Finalize Contacts activities |
As a user, you can log in to Workspace . It's the common place where end users log in to participate in the process.
http://localhost:8001/bpm/workspace/
.salesrepresentative/Welcome1
.salesrepresentative
. This is the user that has the role SalesRepresentative
, which has an Initiator Task. When you click on the application, it will generate a task which will be available in the Inbox of the user, SalesRepresentative
.SalesRepresentative)
is listed on the right-hand side of the screen, that is, the Enter Quote task.Quote
, they are available here. You can change them too, but keep them as it is for now.salesrepresentative
.salesRepresentative
user.approver/Welcome1
.contracts/Welcome1
to perform the Approve Terms and Finalize Contract tasks.contracts
user.contracts
user.SaveQuote
, which is a file adapter. In my case, it's TEMP/QuoteOutput
. You can find a quotation file created there.When you log in as the user salesrepresentative
(the Initiator of the process) and click on the application name SalesToContractv1.0, the process gets triggered. The Enter Quote task is assigned to salesrepresentative
. Once you submit the Enter Quote task, the token moves to another task.
As you have already set the BusinessAnalystReviewRequired Data object to false()
in the Script Task Initialize Quote
, so when the token Is business Analyst Review Required? is switched on, it will not move to the Yes path but take the No Path, as shown in the following screenshot:
Hence the token will reach the Approve Deal and Approve Quote simultaneously, as you have used a parallel Gateway. Once both are approved, the contracts
role user will finalize the contract and the SaveQuote service will save the quote in a file location.
Files can be attached to tasks and also you can add notes in the comments section.
In this section, you will learn to add files and notes to tasks as follows:
salesrepresentative
credentials.Enter Quote
task.salesrepresentative/Welcome1
.You can also find an instance being created in the EM (Enterprise Manager) console and you can use it to view the Audit Trail of the process.
weblogic/Welcome1
.3.14.251.128