Designers > K2 Designer for Visual Studio > Design Tools > Inline Functions > Scenarios > AND Inline Function - Using K2 Designer for SharePoint and Process Portals | Send feedback |
In this scenario, we're using SharePoint columns and the K2 Designer for SharePoint as the designing tool.
Our customer would like details on the candidates with Programming and InfoPath skills. After completion of the process, the Process Instances Report can be generated which will show the status of the Valid Candidate data field.
The following K2 Features are used in this scenario and specific references are made to the Process and SharePoint columns as described in the scenario above should you wish to recreate this scenario:
Feature | Description |
---|---|
SharePoint library |
SharePoint library containing columns that are required to update the validity status of the candidate |
Potential Candidates Process |
K2 Designer for SharePoint process that uses the statuses of the columns to update a process data field |
The SharePoint library contains the following additional columns:
Start Activity
Activity 1
Use the Set data fields action from the General tab in the K2 Process Designer.
Fig. 1. Set data fields
On the Provide datafield values screen, select the Valid Candidate data field and drag and drop the AND Inline Function in the textbox next to it.
Fig. 2. Set data fields
The And (Value, Value) screen opens. Drag and drop the InfoPath and Programming SharePoint columns into the Value fields. Click OK.
Fig. 3. AND Function Values
The AND function is displayed. When used in runtime it will perform an And operation on the two Boolean values, returning True if both values are True and False if any value is False. The result will be updated in the Valid Candidate datafield. Click Finish.
Fig. 4. Valid Candidate - And Function
Start the process and complete the details. We've selected True for both the InfoPath and Programming options.
Navigate to the Process Portal site and open the Process Instances Report. Click on the Process Folio of the process instance to open the Activity Instances Report. Click on the Data link.
Fig. 5. Activity Instances Report
Fig. 6. Valid Candidate - Data Field