K2 BLACKPEARL PRODUCT DOCUMENTATION: USER GUIDE
Expression Wizard using Data Fields

Inline Functions Scenario - Using Data Fields

We have a customer who is recruiting people with specific skills. In order to provide them with details as to who is available with the required skills, we've created a SmartBox SmartObject with details related to potential candidates and built a process around this SmartObject to identify candidates who conform to the specified requirements.

Our customer would like details on the candidates with Programming and InfoPath skills. After completion of the process, a Custom Report can be created using the Report Designer in K2 Workspace. By using the filtering option in the Report Designer Wizard, only those candidates who conform to the specified requirements will be displayed and can be exported into another format to suit the customer's needs.

In this scenario we're using the Forms Generation Client Event to create the information for potential candidates within our SmartObject. We then use the SmartObject Event to map the values of the Programming and InfoPath properties to process data fields. The Inline Functions then use the values of the data fields to update the Valid Candidate property in our SmartObject.  

We then use the Inline Functions within the SmartObject Event to get the values of the Programming and InfoPath properties and use that to populate the Valid Candidate property.  

K2 Features used

The following K2 Features are used in this scenario and specific references are made to the Process and SmartObject as described in the steps above should you wish to recreate this scenario:

Feature Description

Candidates SmartObject

Contains properties that are required to send and receive information

PotentialCandidates Process

Links to the SmartObject to send and receive information

Candidates SmartObject:

This SmartObject contains the following Properties:

PotentialCandidates Process:

Process

Activity 1

 Activity 2

Activity 3

How to configure the Expression

Use the SmartObject Save method in the SmartObject Event. On the Input Mapping screen select the Valid Candidate property and click Assign.

Fig. 1. SmartObject Event - Input Mapping

The Assign Mapping screen opens. Click on the ellipse to open the Object Browser. Select the Function Browser tab, expand the Expression node, select Expression and click Add.

Fig. 2. Function Browser - Expression

The Expression Wizard opens. Build the expression using the data fields.

Fig. 3. Function Browser - Expression Wizard

Click Finish and complete the SmartObject Event. When used in runtime, the expression will update the Valid Candidate property with the status where both data fields InfoPath and Programming are equal to True.

 

 


K2 blackpearl Help 4.6.11 (4.12060.1731.0)