Creating a Consumer Model in the Portal Modeling Perspective
As the provider model is ready, you can create another model in which you reference the elements of this provider
model.
In this chapter, we are going to reference the Collect Customer Information process and the
CustomerData data by dragging and dropping them to the consumer model.
Creating the Consumer Model
Create a model named ConsumerWeb.xpdl and start setting up the workflow:
- Create a new process Consumer Process
- Create a lane with participant Administrator
- Create a manual start event
- Create a follow-up manual activity named CustEnquiry
The following sections describe how to continue with the workflow by referencing elements from the provider model:
Referencing the Process of the Provider Model
Now we reference the process of our provider model:
- From the Outline view drag process Collect Customer Information in the provider model
ProviderWeb.xpdl and drop it to the diagram of the Consumer Process.

Figure: Drag and drop referenced process
- Open the property page of the created subprocess activity and see the implementation set to
ProviderWeb/Collect Customer Information.

Figure: Subprocess implementation
Adding Workflow
We continue by adding the following elements to our workflow:
- Add a connection from activity CustEnquiry
- Create an XOR gateway from subprocess activity Collect Customer Information.
- Outgoing from the gateway create two more manual activities named Sanction Loan and
Do not Sanction Loan

Figure: Workflow with gateway
- Create a primitive data named LoanAmount of integer type and provide it as in data mapping
for activities Sanction Loan and Do not Sanction Loan.
- Also provide data LoanAmount as out data mappings of activity CustEnquiry.
Dragging and dropping Structured Data from the Provider Model
Now we add structured data from our provider model:
- Drag and drop structured data CustomerData from process
Collect Customer Information of the provider model to the diagram of the
Consumer Process.

Figure: Drag and drop referenced data
- Add an in and an out data mapping from this data to
subprocess activity Collect Customer Information.
- Edit the properties page of this data mapping.
- In the Input Access Point drop-down list select
Process Interface/Formal Parameter 1.

Figure: Select Input Access Point
- Select the same in the Output Access Point drop-down list.

Figure: Data Flow settings
Setting Condition Expressions
In the following steps we set condition expressions outgoing from the XOR gateway:
- Edit the property page of the sequence flow from the gateway to activity
Sanction Loan and define the following Condition Expression:
CustomerData.AssetSalary > 10000 && LoanAmount < 5000;

Figure: Condition Expression
- Similarly edit the property page of the sequence flow from the gateway to activity
Do not Sanction Loan and define the following Condition Expression:
CustomerData.AssetSalary <= 10000 && LoanAmount == 5000;
The created consumer model workflow should now look like in the following screenshot:

Figure: Consumer Model
Executing the Workflow of the Consumer Model
To test our workflow, we first deploy our provider model and then the consumer model in the Stardust Portal.
For details on how to deploy a model please refer to section
Deploying a Model
of chapter
Model Operations
in the
Business Process Modeling Handbook.
As per the defined workflow of the consumer model, the process definition of the consumer is triggered
and then the referenced process definition Collect Customer Information is invoked.
Let's see how this is performed in the Stardust Portal.
Perform the following steps:
- Start the Stardust Portal as described in chapter
Logging in the Stardust Portal of the
End User Handbook.
- Login as administrator (
motu/motu). You can use the Shift-F8 short key.
- In the Workflow Perspective, start the process from the consumer model named
Consumer Process.

Figure: Start Consumer Process
- Enter the loan amount as
4000 and complete the activity CustEnquiry.

Figure: Complete Activity
- As soon as you complete this activity, the Collect Customer Information process
is referenced from the provider model.
- Enter an Asset Salary of
20000 along with the customer name and ID and complete
the activity.

Figure: Complete the Collect Customer Information Process
- As soon as you complete the activity, the mail recipient entered in the mail data receives an email with the
following content:

Figure: Email content
- The provider process Collect Customer Information is now completed and the workflow
returns to the consumer model. The next activity of the consumer model gets triggered.
- Activity Sanction Loan is triggered as it satisfies the given condition in the
modeler. Complete the activity.

Figure: Sanction Loan
- Similarly, if you enter a loan amount equal
5000 and an asset salary less than 10000,
activity Do not Sanction Loan is called instead.